/external/clang/include/clang/Basic/ |
H A D | SourceLocation.h | 173 void print(raw_ostream &OS, const SourceManager &SM) const; 174 void dump(const SourceManager &SM) const; 277 explicit FullSourceLoc(SourceLocation Loc, const SourceManager &SM) argument 278 : SourceLocation(Loc), SrcMgr(&SM) {}
|
H A D | SourceManager.h | 174 const SourceManager &SM, 1572 SourceManager &SM; 1575 explicit BeforeThanCompare(SourceManager &SM) : SM(SM) { } 1578 return SM.isBeforeInTranslationUnit(LHS, RHS); 1585 SourceManager &SM; 1588 explicit BeforeThanCompare(SourceManager &SM) : SM(SM) { } [all...] |
/external/clang/unittests/Tooling/ |
H A D | RefactoringTest.cpp | 217 clang::SourceManager *SM; member in class:clang::tooling::__anon4861::TestVisitor 238 Visitor->SM = &compiler.getSourceManager(); 261 Replace = Replacement(*SM, Record, ""); 284 Replace = Replacement(*SM, Call, "");
|
H A D | TestVisitor.h | 189 void UpdateFor(StringRef Name, FullSourceLoc Location, SourceManager &SM) { argument 196 Location.print(Stream, SM);
|
/external/apache-http/src/org/apache/http/impl/cookie/ |
H A D | RFC2965Spec.java | 47 import org.apache.http.cookie.SM; 119 if (header.getName().equals(SM.SET_COOKIE2)) { 251 buffer.append(SM.COOKIE2);
|
H A D | RFC2109Spec.java | 45 import org.apache.http.cookie.SM; 159 buffer.append(SM.COOKIE);
|
/external/clang/lib/ARCMigrate/ |
H A D | TransEmptyStatementsAndDealloc.cpp | 45 SourceManager &SM = Ctx.getSourceManager(); 48 BeforeThanCompare<SourceLocation>(SM)); 58 if (!SM.isInSameSLocAddrSpace(AfterMacroLoc, SemiLoc, &RelOffs))
|
H A D | TransAutoreleasePool.cpp | 289 SourceManager &SM = Ctx.getSourceManager(); 290 if (SM.isBeforeInTranslationUnit(loc, ScopeRange.getBegin())) 292 return SM.isBeforeInTranslationUnit(loc, ScopeRange.getEnd());
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UnreachableCodeChecker.cpp | 161 const SourceManager &SM = B.getSourceManager(); local 162 if (SM.isInSystemHeader(SL) || SM.isInExternCSystemHeader(SL))
|
/external/srec/tools/cmd/ |
H A D | srecres2utd.pl | 234 open(SM,"<$semfile") || die "error: opening $semfile\n"; 235 while(<SM>) { 248 close(SM);
|
/external/llvm/utils/TableGen/ |
H A D | DAGISelMatcherOpt.cpp | 474 if (ScopeMatcher *SM = dyn_cast<ScopeMatcher>(PrevMatcher)) { 475 SM->setNumChildren(SM->getNumChildren()+1); 476 SM->resetChild(SM->getNumChildren()-1, MatcherWithoutCTM);
|
H A D | DAGISelMatcherEmitter.cpp | 144 const ScopeMatcher *SM = cast<ScopeMatcher>(N); local 145 assert(SM->getNext() == 0 && "Shouldn't have next after scope"); 150 for (unsigned i = 0, e = SM->getNumChildren(); i != e; ++i) { 176 ChildSize = EmitMatcherList(SM->getChild(i), Indent+1, 187 OS.PadToColumn(CommentIndent) << "// " << SM->getNumChildren() 717 if (const ScopeMatcher *SM = dyn_cast<ScopeMatcher>(M)) { 718 for (unsigned i = 0, e = SM->getNumChildren(); i != e; ++i) 719 BuildHistogram(SM->getChild(i), OpcodeFreq);
|
/external/clang/lib/Lex/ |
H A D | LiteralSupport.cpp | 1096 : SM(PP.getSourceManager()), Features(PP.getLangOpts()), 1186 Lexer::getSpelling(StringToks[i], ThisTokBuf, SM, Features, 1293 FullSourceLoc(StringToks[i].getLocation(), SM), 1300 FullSourceLoc(StringToks[i].getLocation(), SM), 1383 Diag(Diags, Features, FullSourceLoc(Tok.getLocation(), SM), TokBegin, 1409 unsigned TokLen = Lexer::getSpelling(Tok, SpellingPtr, SM, Features, 1467 FullSourceLoc(Tok.getLocation(), SM),
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | BugReporter.cpp | 417 static void CompactPathDiagnostic(PathPieces &path, const SourceManager& SM); 924 SourceManager &SM = PDB.getSourceManager(); local 925 SourceLocation ContainerRBeg = SM.getExpansionLoc(ContainerR.getBegin()); 926 SourceLocation ContainerREnd = SM.getExpansionLoc(ContainerR.getEnd()); 927 SourceLocation ContaineeRBeg = SM.getExpansionLoc(ContaineeR.getBegin()); 928 SourceLocation ContaineeREnd = SM.getExpansionLoc(ContaineeR.getEnd()); 930 unsigned ContainerBegLine = SM.getExpansionLineNumber(ContainerRBeg); 931 unsigned ContainerEndLine = SM.getExpansionLineNumber(ContainerREnd); 932 unsigned ContaineeBegLine = SM.getExpansionLineNumber(ContaineeRBeg); 933 unsigned ContaineeEndLine = SM 1151 const SourceManager& SM = PDB.getSourceManager(); local 1758 CompactPathDiagnostic(PathPieces &path, const SourceManager& SM) argument [all...] |
/external/clang/lib/Frontend/ |
H A D | CacheTokens.cpp | 469 SourceManager &SM = PP.getSourceManager(); local 472 for (SourceManager::fileinfo_iterator I = SM.fileinfo_begin(), 473 E = SM.fileinfo_end(); I != E; ++I) { 481 const llvm::MemoryBuffer *B = C.getBuffer(PP.getDiagnostics(), SM); 484 FileID FID = SM.createFileID(FE, SourceLocation(), SrcMgr::C_User); 485 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); 486 Lexer L(FID, FromFile, SM, LOpts);
|
H A D | PrintPreprocessedOutput.cpp | 83 SourceManager &SM; member in class:__anon113::PrintPPOutputPPCallbacks 101 : PP(pp), SM(PP.getSourceManager()), 141 PresumedLoc PLoc = SM.getPresumedLoc(Loc); 242 SourceManager &SourceMgr = SM; 427 unsigned ColNo = SM.getExpansionColumnNumber(Tok.getLocation());
|
/external/clang/tools/libclang/ |
H A D | IndexingContext.cpp | 629 SourceManager &SM = Ctx->getSourceManager(); 630 SourceLocation FileLoc = SM.getFileLoc(Loc); 631 FileID FID = SM.getFileID(FileLoc); 632 return SM.getFileEntryForID(FID) == 0; 707 SourceManager &SM = Ctx->getSourceManager(); 710 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SM.getFileLoc(Loc)); 715 const FileEntry *FE = SM.getFileEntryForID(FID); 805 SourceManager &SM = Ctx->getSourceManager(); 806 Loc = SM [all...] |
H A D | CIndex.cpp | 76 static RangeComparisonResult RangeCompare(SourceManager &SM, argument 82 SM.isBeforeInTranslationUnit(R1.getEnd(), R2.getBegin())) 85 SM.isBeforeInTranslationUnit(R2.getEnd(), R1.getBegin())) 92 static RangeComparisonResult LocationCompare(SourceManager &SM, argument 98 if (SM.isBeforeInTranslationUnit(L, R.getBegin())) 100 if (SM.isBeforeInTranslationUnit(R.getEnd(), L)) 111 CXSourceRange cxloc::translateSourceRange(const SourceManager &SM, argument 117 if (EndLoc.isValid() && EndLoc.isMacroID() && !SM.isMacroArgExpansion(EndLoc)) 118 EndLoc = SM.getExpansionRange(EndLoc).second; 120 unsigned Length = Lexer::MeasureTokenLength(SM 200 SourceManager &SM = Visitor.getASTUnit()->getSourceManager(); local 222 SourceManager &SM = Unit->getSourceManager(); local 268 SourceManager &SM = Unit->getSourceManager(); local 364 SourceManager &SM = AU->getSourceManager(); local 880 addRangedDeclsInContainer(DeclIt *DI_current, DeclIt DE_current, SourceManager &SM, SourceLocation EndLoc, SmallVectorImpl<Decl *> &Decls) argument 902 SourceManager &SM; member in struct:__anon4830::ContainerDeclsSort 927 SourceManager &SM = AU->getSourceManager(); local 3652 GetCursorData(SourceManager &SM, SourceLocation tokenBegin, CXCursor &outputCursor) argument 4579 SourceManager &SM = FD->getASTContext().getSourceManager(); local 5225 SourceManager &SM; member in class:__anon4835::MarkMacroArgTokensVisitor 5231 MarkMacroArgTokensVisitor(SourceManager &SM, CXToken *tokens, unsigned numTokens) argument [all...] |
H A D | Indexing.cpp | 58 SourceManager &SM = PP.getSourceManager(); 59 SourceLocation MainFileLoc = SM.getLocForStartOfFile(SM.getMainFileID()); 63 IndexCtx.enteredMainFile(SM.getFileEntryForID(SM.getMainFileID()));
|
/external/clang/lib/Rewrite/Frontend/ |
H A D | RewriteObjC.cpp | 64 SourceManager *SM; member in class:__anon152::RewriteObjC 603 SM = &Context->getSourceManager(); 633 MainFileID = SM->getMainFileID(); 634 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID); 653 Loc = SM->getExpansionLoc(Loc); 723 if (SM->isFromMainFile(Loc)) 732 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); 733 StringRef MainBuf = SM->getBufferData(MainFileID); 774 const char *startBuf = SM->getCharacterData(startLoc); 904 const char *startBuf = SM [all...] |
H A D | RewriteModernObjC.cpp | 64 SourceManager *SM; member in class:__anon149::RewriteModernObjC 623 SM = &Context->getSourceManager(); 653 MainFileID = SM->getMainFileID(); 654 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID); 673 Loc = SM->getExpansionLoc(Loc); 750 if (SM->isFromMainFile(Loc)) 759 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); 760 StringRef MainBuf = SM->getBufferData(MainFileID); 874 const char *startBuf = SM->getCharacterData(startLoc); 1010 const char *startBuf = SM [all...] |
/external/llvm/lib/Support/ |
H A D | YAMLParser.cpp | 254 Scanner(const StringRef Input, SourceMgr &SM); 264 SM.PrintMessage(Loc, Kind, Message, Ranges); 463 SourceMgr &SM; member in class:llvm::yaml::Scanner 540 SourceMgr SM; local 541 Scanner scanner(Input, SM); 621 llvm::SourceMgr SM; local 622 llvm::yaml::Scanner scanner(Input, SM); 697 : SM(sm) 706 SM.AddNewSourceBuffer(InputBuffer, SMLoc()); 1524 Stream::Stream(StringRef Input, SourceMgr &SM) argument [all...] |
/external/llvm/utils/yaml-bench/ |
H A D | YAMLBench.cpp | 147 llvm::SourceMgr SM; local 148 llvm::yaml::Stream stream(JSONText, SM);
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
H A D | AnalysisConsumer.cpp | 221 SourceManager &SM = Mgr->getASTContext().getSourceManager(); 222 PresumedLoc Loc = SM.getPresumedLoc(D->getLocation()); 528 SourceManager &SM = Ctx->getSourceManager(); 529 SourceLocation SL = SM.getExpansionLoc(D->getLocation()); 530 if (!Opts->AnalyzeAll && !SM.isFromMainFile(SL))
|
/external/clang/include/clang/Frontend/ |
H A D | ASTUnit.h | 193 SourceRange getSourceRange(const SourceManager &SM) const { 194 SourceLocation FileLoc = SM.getLocForStartOfFile(SM.getPreambleFileID());
|