/external/clang/lib/Rewrite/Core/ |
H A D | TokenRewriter.cpp | 21 TokenRewriter::TokenRewriter(FileID FID, SourceManager &SM, argument 23 ScratchBuf.reset(new ScratchBuffer(SM)); 26 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); 27 Lexer RawLex(FID, FromFile, SM, LangOpts);
|
H A D | HTMLRewrite.cpp | 34 SourceManager &SM = R.getSourceMgr(); local 35 B = SM.getExpansionLoc(B); 36 E = SM.getExpansionLoc(E); 37 FileID FID = SM.getFileID(B); 38 assert(SM.getFileID(E) == FID && "B/E not in the same file!"); 40 unsigned BOffset = SM.getFileOffset(B); 41 unsigned EOffset = SM.getFileOffset(E); 47 const char *BufferStart = SM.getBufferData(FID, &Invalid).data(); 360 const SourceManager &SM = PP.getSourceManager(); local 361 const llvm::MemoryBuffer *FromFile = SM 448 const SourceManager &SM = PP.getSourceManager(); local [all...] |
/external/llvm/tools/llvm-mc/ |
H A D | Disassembler.h | 36 SourceMgr &SM,
|
/external/clang/include/clang/Lex/ |
H A D | Lexer.h | 109 const SourceManager &SM, const LangOptions &LangOpts); 284 const SourceManager &SM, 290 const SourceManager &SM, 297 const SourceManager &SM, 305 const SourceManager &SM, 324 const SourceManager &SM, 333 const SourceManager &SM, 343 const SourceManager &SM, 374 const SourceManager &SM, 379 const SourceManager &SM, [all...] |
/external/clang/lib/Frontend/ |
H A D | TextDiagnostic.cpp | 685 const SourceManager *SM, 691 emitDiagnosticLoc(Loc, PLoc, Level, Ranges, *SM); 773 const SourceManager &SM) { 776 FileID FID = SM.getFileID(Loc); 778 const FileEntry* FE = SM.getFileEntryForID(FID); 821 SM.getFileID(SM.getExpansionLoc(Loc)); 830 SourceLocation B = SM.getExpansionLoc(RI->getBegin()); 831 SourceLocation E = SM.getExpansionLoc(RI->getEnd()); 839 E = SM [all...] |
H A D | VerifyDiagnosticConsumer.cpp | 55 SourceManager &SM; member in class:__anon15282::VerifyFileTracker 58 VerifyFileTracker(VerifyDiagnosticConsumer &Verify, SourceManager &SM) argument 59 : Verify(Verify), SM(SM) { } 66 Verify.UpdateParsedFileStatus(SM, SM.getFileID(Loc), 285 static bool ParseDirective(StringRef S, ExpectedData *ED, SourceManager &SM, argument 288 DiagnosticsEngine &Diags = PP ? PP->getDiagnostics() : SM.getDiagnostics(); 357 unsigned ExpectedLine = SM.getSpellingLineNumber(Pos, &Invalid); 361 ExpectedLoc = SM 483 SourceManager &SM = PP.getSourceManager(); local 540 findDirectives(SourceManager &SM, FileID FID, const LangOptions &LangOpts) argument 626 IsFromSameFile(SourceManager &SM, SourceLocation DirectiveLoc, SourceLocation DiagnosticLoc) argument 715 UpdateParsedFileStatus(SourceManager &SM, FileID FID, ParsedStatus PS) argument [all...] |
H A D | HeaderIncludeGen.cpp | 20 SourceManager &SM; member in class:__anon15276::HeaderIncludesCallback 32 : SM(PP->getSourceManager()), OutputFile(OutputFile_), 81 PresumedLoc UserLoc = SM.getPresumedLoc(Loc);
|
H A D | DependencyGraph.cpp | 83 SourceManager &SM = PP->getSourceManager(); 85 = SM.getFileEntryForID(SM.getFileID(SM.getExpansionLoc(HashLoc)));
|
/external/clang/include/clang/AST/ |
H A D | RawCommentList.h | 114 unsigned getBeginLine(const SourceManager &SM) const; 115 unsigned getEndLine(const SourceManager &SM) const; 175 const SourceManager &SM; member in class:clang::BeforeThanCompare 178 explicit BeforeThanCompare(const SourceManager &SM) : SM(SM) { } argument 181 return SM.isBeforeInTranslationUnit(LHS.getSourceRange().getBegin(),
|
/external/clang/lib/Lex/ |
H A D | TokenLexer.cpp | 46 SourceManager &SM = PP.getSourceManager(); local 47 MacroStartSLocOffset = SM.getNextLocalOffset(); 59 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation()); 60 MacroDefLength = Macro->getDefinitionLength(SM); 61 MacroExpansionStart = SM.createExpansionLoc(MacroDefStart, 439 SourceManager &SM = PP.getSourceManager(); local 468 SM.isBeforeInSLocAddrSpace(Tok.getLocation(), MacroStartSLocOffset)) { 471 instLoc = SM.createExpansionLoc(Tok.getLocation(), 621 SourceManager &SM = PP.getSourceManager(); local 623 SM 659 SourceManager &SM = PP.getSourceManager(); local 727 SourceManager &SM = PP.getSourceManager(); local 745 updateConsecutiveMacroArgTokens(SourceManager &SM, SourceLocation InstLoc, Token *&begin_tokens, Token * end_tokens) argument 811 SourceManager &SM = PP.getSourceManager(); local [all...] |
H A D | MacroInfo.cpp | 35 unsigned MacroInfo::getDefinitionLengthSlow(SourceManager &SM) const { 52 startInfo = SM.getDecomposedExpansionLoc(macroStart); 54 endInfo = SM.getDecomposedExpansionLoc(macroEnd); 154 MacroDirective::findDirectiveAtLoc(SourceLocation L, SourceManager &SM) const { 158 SM.isBeforeInTranslationUnit(Def.getLocation(), L)) 160 SM.isBeforeInTranslationUnit(L, Def.getUndefLocation()))
|
H A D | TokenConcatenation.cpp | 54 SourceManager &SM = PP.getSourceManager(); 55 const char *Ptr = SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); 129 SourceManager &SM = PP.getSourceManager(); local 130 return *SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); 159 SourceManager &SM = PP.getSourceManager(); local 160 SourceLocation PrevSpellLoc = SM.getSpellingLoc(PrevTok.getLocation()); 161 SourceLocation SpellLoc = SM.getSpellingLoc(Tok.getLocation());
|
H A D | PreprocessingRecord.cpp | 41 PreprocessingRecord::PreprocessingRecord(SourceManager &SM) argument 42 : SourceMgr(SM), 67 SourceManager &SM) { 76 if (SM.isInFileID(SM.getFileLoc(Loc), FID)) 174 const SourceManager &SM; member in struct:__anon15297::PPEntityComp 176 explicit PPEntityComp(const SourceManager &SM) : SM(SM) { } argument 181 return SM 66 isPreprocessedEntityIfInFileID(PreprocessedEntity *PPE, FileID FID, SourceManager &SM) argument [all...] |
/external/clang/lib/AST/ |
H A D | RawCommentList.cpp | 93 unsigned RawComment::getBeginLine(const SourceManager &SM) const { 97 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Range.getBegin()); 98 BeginLine = SM.getLineNumber(LocInfo.first, LocInfo.second); 103 unsigned RawComment::getEndLine(const SourceManager &SM) const { 107 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Range.getEnd()); 108 EndLine = SM.getLineNumber(LocInfo.first, LocInfo.second); 192 bool onlyWhitespaceBetween(SourceManager &SM, argument 194 std::pair<FileID, unsigned> Loc1Info = SM.getDecomposedLoc(Loc1); 195 std::pair<FileID, unsigned> Loc2Info = SM.getDecomposedLoc(Loc2); 202 const char *Buffer = SM [all...] |
/external/clang/include/clang/Frontend/ |
H A D | VerifyDiagnosticConsumer.h | 215 void setSourceManager(SourceManager &SM) { argument 216 assert((!SrcManager || SrcManager == &SM) && "SourceManager changed!"); 217 SrcManager = &SM; 263 void UpdateParsedFileStatus(SourceManager &SM, FileID FID, ParsedStatus PS);
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | AnalyzerStatsChecker.cpp | 45 const SourceManager &SM = B.getSourceManager(); local 93 PresumedLoc Loc = SM.getPresumedLoc(D->getLocation()); 116 output.str(), PathDiagnosticLocation(D, SM)); 133 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC));
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | HTMLDiagnostics.cpp | 279 SourceManager &SM = R.getSourceMgr(); 280 assert(&Pos.getManager() == &SM && "SourceManagers are different!"); 281 std::pair<FileID, unsigned> LPosInfo = SM.getDecomposedExpansionLoc(Pos); 286 const llvm::MemoryBuffer *Buf = SM.getBuffer(LPosInfo.first); 291 unsigned ColNo = SM.getColumnNumber(LPosInfo.first, LPosInfo.second); 414 Lexer rawLexer(SM.getLocForStartOfFile(LocInfo.first), PP.getLangOpts(), 469 SM.getLocForStartOfFile(LPosInfo.first).getLocWithOffset(DisplayPos); 523 SourceManager &SM = R.getSourceMgr(); local 526 SourceLocation InstantiationStart = SM.getExpansionLoc(Range.getBegin()); 527 unsigned StartLineNo = SM [all...] |
H A D | PathDiagnostic.cpp | 335 const SourceManager &SM = XL.getManager(); local 342 return SM.isBeforeInTranslationUnit(XR.getBegin(), YR.getBegin()); 343 return SM.isBeforeInTranslationUnit(XR.getEnd(), YR.getEnd()); 402 const SourceManager &SM = XL.getManager(); local 403 return SM.isBeforeInTranslationUnit(XDL, YDL); 545 const SourceManager &SM) { 552 SM, CallerCtx); 556 SM, CallerCtx); 561 SM, CallerCtx); 567 return PathDiagnosticLocation::createEnd(CallerBody, SM, CallerCt 543 getLocationForCaller(const StackFrameContext *SFC, const LocationContext *CallerCtx, const SourceManager &SM) argument 579 createBegin(const Decl *D, const SourceManager &SM) argument 585 createBegin(const Stmt *S, const SourceManager &SM, LocationOrAnalysisDeclContext LAC) argument 594 createEnd(const Stmt *S, const SourceManager &SM, LocationOrAnalysisDeclContext LAC) argument 604 createOperatorLoc(const BinaryOperator *BO, const SourceManager &SM) argument 610 createMemberLoc(const MemberExpr *ME, const SourceManager &SM) argument 616 createBeginBrace(const CompoundStmt *CS, const SourceManager &SM) argument 623 createEndBrace(const CompoundStmt *CS, const SourceManager &SM) argument 630 createDeclBegin(const LocationContext *LC, const SourceManager &SM) argument 644 createDeclEnd(const LocationContext *LC, const SourceManager &SM) argument 726 createEndOfPath(const ExplodedNode *N, const SourceManager &SM) argument 868 construct(const ExplodedNode *N, const CallExitEnd &CE, const SourceManager &SM) argument 887 setCallee(const CallEnter &CE, const SourceManager &SM) argument [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
H A D | PathDiagnostic.h | 133 const SourceManager *SM; member in class:clang::ento::PathDiagnosticLocation 139 : K(kind), S(0), D(0), SM(&sm), 153 : K(SingleLocK), S(0), D(0), SM(0) {} 161 D(0), SM(&sm), 171 : K(DeclK), S(0), D(d), SM(&sm), 182 : K(SingleLocK), S(0), D(0), SM(&sm), Loc(loc, sm), Range(genRange()) { 189 const SourceManager &SM) { 190 return PathDiagnosticLocation(D, SM); 195 const SourceManager &SM); 199 const SourceManager &SM, 188 create(const Decl *D, const SourceManager &SM) argument [all...] |
/external/clang/include/clang/Tooling/ |
H A D | JSONCompilationDatabase.h | 85 : Database(Database), YAMLStream(Database->getBuffer(), SM) {} 108 llvm::SourceMgr SM; member in class:clang::tooling::JSONCompilationDatabase
|
/external/clang/include/clang/Edit/ |
H A D | Commit.h | 42 SourceLocation getFileLocation(SourceManager &SM) const; 43 CharSourceRange getFileRange(SourceManager &SM) const; 44 CharSourceRange getInsertFromRange(SourceManager &SM) const; 60 Commit(const SourceManager &SM, const LangOptions &LangOpts, argument 62 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(0),
|
/external/clang/unittests/Tooling/ |
H A D | CommentHandlerTest.cpp | 41 SourceManager &SM = PP.getSourceManager(); local 42 std::string C(SM.getCharacterData(Start), 43 SM.getCharacterData(Loc.getEnd())); 46 unsigned CLine = SM.getSpellingLineNumber(Start, &Invalid); 49 unsigned CCol = SM.getSpellingColumnNumber(Start, &Invalid);
|
/external/clang/lib/ARCMigrate/ |
H A D | TransformActions.cpp | 179 SourceManager &SM,Preprocessor &PP); 386 SourceManager &SM = Ctx.getSourceManager(); 387 if (SM.isInSystemHeader(SM.getExpansionLoc(loc))) 399 SourceManager &SM = Ctx.getSourceManager(); 400 if (SM.isInSystemHeader(SM.getExpansionLoc(loc))) 421 SourceManager &SM = Ctx.getSourceManager(); 422 loc = SM.getExpansionLoc(loc); 425 std::pair<FileID, unsigned> locInfo = SM 482 SourceManager &SM = Ctx.getSourceManager(); local 493 SourceManager &SM = Ctx.getSourceManager(); local 506 SourceManager &SM = Ctx.getSourceManager(); local 591 getLocForEndOfToken(SourceLocation loc, SourceManager &SM, Preprocessor &PP) argument 681 SourceManager &SM = static_cast<TransformActionsImpl*>(Impl)-> local 701 SourceManager &SM = static_cast<TransformActionsImpl*>(Impl)-> local 720 SourceManager &SM = static_cast<TransformActionsImpl*>(Impl)-> local [all...] |
/external/apache-http/src/org/apache/http/client/protocol/ |
H A D | ResponseProcessCookies.java | 49 import org.apache.http.cookie.SM; 100 HeaderIterator it = response.headerIterator(SM.SET_COOKIE); 107 it = response.headerIterator(SM.SET_COOKIE2);
|
/external/clang/lib/Rewrite/Frontend/ |
H A D | InclusionRewriter.cpp | 41 SourceManager &SM; ///< Used to read and manage source files. member in class:__anon15316::InclusionRewriter 96 : PP(PP), SM(PP.getSourceManager()), OS(OS), PredefinesBuffer(0), 149 LastInsertedFileChange->second.Id = FullSourceLoc(Loc, SM).getFileID(); 249 SM.getFileOffset(StartToken.getLocation()), EOL, Line); 256 SM.getFileOffset(DirectiveToken.getLocation()) + DirectiveToken.getLength(), 347 const MemoryBuffer &FromFile = *SM.getBuffer(FileId, &Invalid); 359 if (SM.getFileIDSize(FileId) == 0) 413 FileType = SM.getFileCharacteristic(RawToken.getLocation()); 458 OutputContentUpTo(FromFile, NextToWrite, SM.getFileOffset(Loc), 462 SM 512 SourceManager &SM = PP.getSourceManager(); local [all...] |