|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/Lex/Preprocessor.h 1056 DI = MD->findDirectiveAtLoc(Loc, getSourceManager());
tools/clang/lib/ARCMigrate/ARCMT.cpp 225 Diags->setSourceManager(&PP.getSourceManager());
tools/clang/lib/ARCMigrate/ObjCMT.cpp 173 return canModifyFile(PP.getSourceManager().getFileEntryForID(FID));
186 FileID FID = PP.getSourceManager().getFileID(D->getLocation());
309 const char *colon = PP.getSourceManager().getCharacterData(EndLoc);
927 PP.getSourceManager().getFileID(TypedefDcl->getLocation());
929 PP.getSourceManager().getFileID(EnumDcl->getLocation());
1448 FileId = PP.getSourceManager().getFileID(Decl->getLocation());
1454 FileId = PP.getSourceManager().getFileID(Decl->getLocation());
1857 FileID FID = PP.getSourceManager().getFileID((*D)->getLocation());
tools/clang/lib/Analysis/ReachableCode.cpp 157 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/CodeGen/MacroPPCallbacks.cpp 120 if (PP.getSourceManager().isWrittenInCommandLineFile(Loc))
140 if (!PP.getSourceManager().isWrittenInBuiltinFile(Loc))
tools/clang/lib/Frontend/ASTUnit.cpp 634 SourceMgr = &PP->getSourceManager();
tools/clang/lib/Frontend/CompilerInstance.cpp 401 InitializeFileRemapping(PP->getDiagnostics(), PP->getSourceManager(),
484 auto *Context = new ASTContext(getLangOpts(), PP.getSourceManager(),
1336 SourceManager &SourceMgr = PP.getSourceManager();
tools/clang/lib/Frontend/DependencyFile.cpp 172 *this, PP.getSourceManager(), PP.getDiagnostics()));
tools/clang/lib/Frontend/DependencyGraph.cpp 82 SourceManager &SM = PP->getSourceManager();
tools/clang/lib/Frontend/FrontendActions.cpp 733 SourceManager &SM = PP.getSourceManager();
922 SourceManager &SM = CI.getPreprocessor().getSourceManager();
tools/clang/lib/Frontend/HeaderIncludeGen.cpp 35 : SM(PP->getSourceManager()), OutputFile(OutputFile_), DepOpts(DepOpts),
tools/clang/lib/Frontend/ModuleDependencyCollector.cpp 107 *this, PP.getSourceManager()));
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp 102 : PP(pp), SM(PP.getSourceManager()), ConcatInfo(PP), OS(os),
913 const SourceManager &SourceMgr = PP.getSourceManager();
tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp 111 : PP(PP), SM(PP.getSourceManager()), OS(OS), MainEOL("\n"),
386 Lexer RawLex(FileId, &FromFile, PP.getSourceManager(), PP.getLangOpts());
540 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp 63 SourceManager &SM = PP.getSourceManager();
90 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Frontend/Rewrite/RewriteTest.cpp 19 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp 670 setSourceManager(PP->getSourceManager());
748 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Lex/Lexer.cpp 135 FileLoc(PP.getSourceManager().getLocForStartOfFile(FID)),
190 SourceManager &SM = PP.getSourceManager();
1110 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Lex/LiteralSupport.cpp 1330 FullSourceLoc(Loc, PP.getSourceManager()),
1344 FullSourceLoc(Loc,PP.getSourceManager()),
1456 : SM(PP.getSourceManager()), Features(PP.getLangOpts()),
tools/clang/lib/Lex/PPCaching.cpp 149 if ((!getSourceManager().isInSameSLocAddrSpace(
tools/clang/lib/Lex/PPDirectives.cpp 673 auto &SM = getSourceManager();
1246 SourceManager &SM = PP.getSourceManager();
2791 if (getSourceManager().isInMainFile(MI->getDefinitionLoc()) &&
2903 getSourceManager().isInMainFile(DirectiveTok.getLocation());
2954 getSourceManager().isInMainFile(IfToken.getLocation());
3025 getSourceManager().isInMainFile(Result.getLocation());
3070 getSourceManager().isInMainFile(ElifToken.getLocation());
tools/clang/lib/Lex/PPExpressions.cpp 182 PP.getSourceManager()
183 .getSLocEntry(PP.getSourceManager().getFileID(beginLoc))
tools/clang/lib/Lex/PPLexerChange.cpp 80 getSourceManager().getBuffer(FID, Loc, &Invalid);
291 if (!getSourceManager().hasFileInfo(*Header)) {
tools/clang/lib/Lex/Preprocessor.cpp 503 auto &SM = getSourceManager();
722 getSourceManager().isInSystemHeader(Identifier.getLocation()))
1399 Record = new PreprocessingRecord(getSourceManager());
tools/clang/lib/Lex/PreprocessorLexer.cpp 27 InitialNumSLocEntries = pp->getSourceManager().local_sloc_entry_size();
51 return PP->getSourceManager().getFileEntryForID(getFileID());
tools/clang/lib/Lex/TokenConcatenation.cpp 53 SourceManager &SM = PP.getSourceManager();
136 SourceManager &SM = PP.getSourceManager();
171 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Lex/TokenLexer.cpp 60 SourceManager &SM = PP.getSourceManager();
638 SourceManager &SM = PP.getSourceManager();
821 SourceManager &SourceMgr = PP.getSourceManager();
852 SourceManager &SM = PP.getSourceManager();
900 SourceManager &SM = PP.getSourceManager();
970 SourceManager &SM = PP.getSourceManager();
1057 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Parse/ParseAST.cpp 71 Tok.getLocation().print(OS, PP.getSourceManager());
78 const SourceManager &SM = P.getPreprocessor().getSourceManager();
tools/clang/lib/Parse/ParseDecl.cpp 94 SourceManager &SM = PP.getSourceManager();
227 auto &SM = PP.getSourceManager();
tools/clang/lib/Parse/ParseDeclCXX.cpp 3881 PP.getSourceManager().getExpansionLoc(Tok.getLocation());
3886 PP.getSourceManager().getExpansionLoc(Tok.getEndLoc()));
3911 PP.getSourceManager().getSpellingLoc(Tok.getLocation());
tools/clang/lib/Parse/ParseExpr.cpp 374 const SourceManager &SM = PP.getSourceManager();
2409 if (!PP.getSourceManager().isInSystemHeader(BridgeKeywordLoc))
2465 if (!PP.getSourceManager().isInSystemHeader(BridgeKeywordLoc))
3012 PrettyStackTraceLoc CrashInfo(PP.getSourceManager(), CaretLoc,
tools/clang/lib/Parse/ParseExprCXX.cpp 43 SourceManager &SM = PP.getSourceManager();
1098 Loc, 0, PP.getSourceManager(), getLangOpts());
1222 PrettyStackTraceLoc CrashInfo(PP.getSourceManager(), LambdaBeginLoc,
2572 PP.getSourceManager(), getLangOpts());
tools/clang/lib/Parse/ParseObjc.cpp 3687 if (PP.getSourceManager().isBeforeInTranslationUnit(Tok.getLocation(),
tools/clang/lib/Parse/ParseStmt.cpp 1013 PrettyStackTraceLoc CrashInfo(PP.getSourceManager(),
tools/clang/lib/Parse/ParseStmtAsm.cpp 395 SourceManager &SrcMgr = PP.getSourceManager();
tools/clang/lib/Parse/ParseTemplate.cpp 942 TokLoc, Lexer::AdvanceToTokenCharacter(TokLoc, 2, PP.getSourceManager(),
969 TokLoc, 1, PP.getSourceManager(), getLangOpts());
tools/clang/lib/Parse/Parser.cpp 2355 auto &SrcMgr = PP.getSourceManager();
tools/clang/lib/Rewrite/HTMLRewrite.cpp 447 const SourceManager &SM = PP.getSourceManager();
536 const SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Sema/Sema.cpp 135 SourceMgr(PP.getSourceManager()), CollectStats(false),
tools/clang/lib/Sema/SemaCodeComplete.cpp 2953 GetDefaultValueString(Param, PP.getSourceManager(), PP.getLangOpts());
tools/clang/lib/Serialization/ASTReader.cpp12226 SourceMgr(PP.getSourceManager()), FileMgr(PP.getFileManager()),
tools/clang/lib/Serialization/ASTWriter.cpp 2482 if (PP.getSourceManager().getFileID(Loc) == PP.getPredefinesFileID())
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp 200 const SourceManager &SM = PP.getSourceManager();
231 const SourceManager &SM = PP.getSourceManager();
257 const SourceManager &SM = PP.getSourceManager();
314 const SourceManager &SM = PP.getSourceManager();
395 const SourceManager &SM = PP.getSourceManager();
429 const SourceManager &SM = PP.getSourceManager();
458 const SourceManager &SM = PP.getSourceManager();
605 const SourceManager& SM = PP.getSourceManager();
952 const SourceManager &SM = PP.getSourceManager();
1054 const SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Tooling/Syntax/Tokens.cpp 297 Collector->PP.getSourceManager().isBeforeInTranslationUnit(
331 this->PP.getSourceManager())
556 PP.getSourceManager(), PP.getLangOpts())
tools/clang/tools/c-index-test/core_main.cpp 162 SourceManager &SM = PP->getSourceManager();
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/PragmaCommentHandler.cpp 24 PP.getSourceManager(), PP.getLangOpts());
30 PP.getSourceManager().getFilename(Range.getBegin()),
tools/clang/tools/extra/clang-tidy/google/TodoCommentCheck.cpp 27 PP.getSourceManager(), PP.getLangOpts());
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp 66 llvm::StringRef FileName = PP->getSourceManager().getFilename(
102 llvm::StringRef FileName = PP->getSourceManager().getFilename(
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp 149 Check->checkMacro(PP->getSourceManager(), MacroNameTok, MD->getMacroInfo());
tools/clang/tools/extra/clang-tidy/readability/RedundantPreprocessorCheck.cpp 39 PP.getSourceManager(), PP.getLangOpts());
74 if (PP.getSourceManager().isInMainFile(Loc)) {
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.cpp 38 SourceManager &SM = PP->getSourceManager();
71 SourceManager &SM = PP->getSourceManager();
139 const char *EndIfData = PP->getSourceManager().getCharacterData(EndIf);
217 SourceManager &SM = PP->getSourceManager();
tools/clang/tools/extra/clangd/SourceCode.cpp 982 const auto &SM = PP.getSourceManager();
tools/clang/tools/extra/clangd/index/CanonicalIncludes.cpp 71 PP.getSourceManager(), PP.getLangOpts());
76 Includes->addMapping(PP.getSourceManager().getFilename(Range.getBegin()),
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp 351 const auto &SM = PP->getSourceManager();
454 PP->getSourceManager().getDecomposedExpansionLoc(Loc).first;
476 if (auto ID = getSymbolID(*II, MI, PP->getSourceManager()))
483 if (auto ID = getSymbolID(*II, MI, PP->getSourceManager()))
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp 274 return Loc.printToString(PP.getSourceManager());
291 clang::PresumedLoc PLoc = PP.getSourceManager().getPresumedLoc(Loc);
306 const char *BeginPtr = PP.getSourceManager().getCharacterData(BeginLoc);
307 const char *EndPtr = PP.getSourceManager().getCharacterData(EndLoc);
316 PP.getSourceManager().getBuffer(PP.getSourceManager().getFileID(Loc));
316 PP.getSourceManager().getBuffer(PP.getSourceManager().getFileID(Loc));
319 const char *BeginPtr = PP.getSourceManager().getCharacterData(Loc);
341 const llvm::MemoryBuffer *MemBuffer = PP.getSourceManager().getBuffer(FileID);
381 const char *BeginPtr = PP.getSourceManager().getCharacterData(BeginLoc);
386 const char *EndPtr = PP.getSourceManager().getCharacterData(EndLoc) + 1;
859 clang::FileID FileID = PP.getSourceManager().getFileID(BlockStartLoc);
1310 PP.getSourceManager().getFileEntryForID(PrevFID);
tools/clang/tools/extra/pp-trace/PPCallbacksTracker.cpp 30 PresumedLoc PLoc = PP.getSourceManager().getPresumedLoc(Loc);
481 const FileEntry *FileEntry = PP.getSourceManager().getFileEntryForID(Value);
657 const char *B = PP.getSourceManager().getCharacterData(Range.getBegin());
658 const char *E = PP.getSourceManager().getCharacterData(Range.getEnd());
tools/clang/tools/libclang/Indexing.cpp 252 SourceManager &SM = PP.getSourceManager();
363 auto *PPRec = new PPConditionalDirectiveRecord(PP.getSourceManager());
tools/clang/unittests/Tooling/CommentHandlerTest.cpp 40 SourceManager &SM = PP.getSourceManager();