reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
908 SourceManager &getSourceManager() const { return SourceMgr; } 1669 return Lexer::getSpelling(loc, buffer, SourceMgr, LangOpts, invalid); 1681 return Lexer::getSpelling(Tok, SourceMgr, LangOpts, Invalid); 1698 return Lexer::getSpelling(Tok, Buffer, SourceMgr, LangOpts, Invalid); 1713 return Lexer::getRawToken(Loc, Result, SourceMgr, LangOpts, IgnoreWhiteSpace); 1731 return *SourceMgr.getCharacterData(Tok.getLocation(), Invalid); 1743 return Lexer::getImmediateMacroName(Loc, SourceMgr, getLangOpts()); 1776 return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, LangOpts); 1786 return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, LangOpts, 1797 return Lexer::isAtEndOfMacroExpansion(loc, SourceMgr, LangOpts, MacroEnd); 1810 return Lexer::AdvanceToTokenCharacter(TokStart, Char, SourceMgr, LangOpts);tools/clang/lib/Lex/PPDirectives.cpp
281 if (!SourceMgr.isInSystemHeader(MacroNameLoc) && 282 (SourceMgr.getBufferName(MacroNameLoc) != "<built-in>")) { 381 SourceMgr.getDecomposedLoc(HashLoc); 382 const llvm::MemoryBuffer *Buf = SourceMgr.getBuffer(HashFileOffset.first); 629 if (!SourceMgr.isInMainFile(Loc)) { 632 FileID IDOfIncl = SourceMgr.getFileID(SourceMgr.getExpansionLoc(Loc)); 632 FileID IDOfIncl = SourceMgr.getFileID(SourceMgr.getExpansionLoc(Loc)); 633 if (const FileEntry *EntryOfIncl = SourceMgr.getFileEntryForID(IDOfIncl)) { 726 bool RequestingModuleIsModuleInterface = !SourceMgr.isInMainFile(FilenameLoc); 735 const FileEntry *FileEnt = SourceMgr.getFileEntryForID(FID); 750 if (FID == SourceMgr.getMainFileID() && MainFileDir) { 754 SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()))) 754 SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()))) 1201 FilenameID = SourceMgr.getLineTableFilenameID(Literal.GetString()); 1214 SourceMgr.getFileCharacteristic(DigitTok.getLocation()); 1216 SourceMgr.AddLineNote(DigitTok.getLocation(), LineNo, FilenameID, false, 1329 FileKind = SourceMgr.getFileCharacteristic(DigitTok.getLocation()); 1351 FilenameID = SourceMgr.getLineTableFilenameID(Literal.GetString()); 1359 SourceMgr.AddLineNote(DigitTok.getLocation(), LineNo, FilenameID, IsFileEntry, 1942 SourceMgr.translateFile(&File->getFileEntry()) == 1943 SourceMgr.getMainFileID()) { 2036 SourceMgr.getFileCharacteristic(FilenameTok.getLocation()); 2166 IncludePos = SourceMgr.getExpansionRange(IncludePos).getEnd(); 2167 FileID FID = SourceMgr.createFileID(*File, IncludePos, FileCharacter); 2290 if (SourceMgr.getBufferName(Loc) != "<built-in>") { 2746 SourceMgr.getFileID(OtherMI->getDefinitionLoc()) 2751 !SourceMgr.isInSystemHeader(DefineTok.getLocation())) && 2764 !SourceMgr.isInSystemHeader(DefineTok.getLocation())) {tools/clang/lib/Lex/PPExpressions.cpp
844 SourceLocation ExprStartLoc = SourceMgr.getExpansionLoc(Tok.getLocation());
tools/clang/lib/Lex/PPLexerChange.cpp82 SourceLocation FileStart = SourceMgr.getLocForStartOfFile(FID); 84 << std::string(SourceMgr.getBufferName(FileStart)) << ""; 89 SourceMgr.getFileEntryForID(FID) == CodeCompletionFile) { 90 CodeCompletionFileLoc = SourceMgr.getLocForStartOfFile(FID); 118 SourceMgr.getFileCharacteristic(CurLexer->getFileLoc()); 270 SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); 270 SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); 407 SourceMgr.getLocForStartOfFile(CurPPLexer->getFileID()) == 420 SourceMgr.getIncludeLoc(CurPPLexer->getFileID()).isValid()) { 424 SourceMgr.local_sloc_entry_size() - 426 SourceMgr.setNumCreatedFIDsForFileID(CurPPLexer->getFileID(), NumFIDs); 455 SourceMgr.getFileEntryForID(CurPPLexer->getFileID()))) 467 SourceMgr.getFileCharacteristic(CurPPLexer->getSourceLocation());tools/clang/lib/Lex/PPMacroExpansion.cpp
232 IsSystemMacro &= SourceMgr.isInSystemHeader(DMD->getLocation()); 251 SourceMgr.isInSystemHeader(NewMI->getDefinitionLoc()); 593 SourceMgr.createExpansionLoc(Identifier.getLocation(), ExpandLoc, 1480 Loc = SourceMgr.getExpansionRange(Loc).getEnd(); 1481 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Loc); 1490 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); 1497 PLoc = SourceMgr.getPresumedLoc(NextLoc); 1531 Tok.setLocation(SourceMgr.createExpansionLoc(DATELoc, Tok.getLocation(), 1541 Tok.setLocation(SourceMgr.createExpansionLoc(TIMELoc, Tok.getLocation(), 1550 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); 1552 PLoc = SourceMgr.getPresumedLoc(PLoc.getIncludeLoc()); 1554 PLoc = SourceMgr.getPresumedLoc(PLoc.getIncludeLoc()); 1571 CurFile = SourceMgr.getFileEntryForID(TheLexer->getFileID());tools/clang/lib/Lex/Pragma.cpp
469 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); 473 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); 483 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine() + 1, 875 SourceMgr.isInMainFile(Tok.getLocation())) {tools/clang/lib/Lex/Preprocessor.cpp
86 ScratchBuf(new ScratchBuffer(SourceMgr)), HeaderInfo(Headers), 244 const char *Start = SourceMgr.getCharacterData(Tok.getLocation()); 255 Loc.print(llvm::errs(), SourceMgr); 358 Def = I->second.findDirectiveAtLoc(Loc, SourceMgr); 369 SourceMgr.isBeforeInTranslationUnit(BestLocation, Location))) { 397 const MemoryBuffer *Buffer = SourceMgr.getMemoryBufferForFile(File, &Invalid); 422 SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()) == File) { 422 SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()) == File) { 439 SourceMgr.overrideFileContents(File, std::move(NewBuffer)); 491 Loc = SourceMgr.createExpansionLoc(Loc, ExpansionLocStart, 536 FileID MainFileID = SourceMgr.getMainFileID(); 540 if (!SourceMgr.isLoadedFileID(MainFileID)) { 552 if (const FileEntry *FE = SourceMgr.getFileEntryForID(MainFileID)) 560 FileID FID = SourceMgr.createFileID(std::move(SB)); 583 SourceMgr.createFileID(*File, SourceLocation(), SrcMgr::C_User)); 601 return FE == SourceMgr.getFileEntryForID(PCHThroughHeaderFileID);