Home
last modified time | relevance | path

Searched refs:SrcMgr (Results 1 – 25 of 66) sorted by relevance

123

/external/clang/lib/Basic/
DSourceLocation.cpp82 return SrcMgr->getFileID(*this); in getFileID()
88 return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr); in getExpansionLoc()
93 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr); in getSpellingLoc()
98 return SrcMgr->getExpansionLineNumber(*this, Invalid); in getExpansionLineNumber()
103 return SrcMgr->getExpansionColumnNumber(*this, Invalid); in getExpansionColumnNumber()
108 return SrcMgr->getSpellingLineNumber(*this, Invalid); in getSpellingLineNumber()
113 return SrcMgr->getSpellingColumnNumber(*this, Invalid); in getSpellingColumnNumber()
118 return SrcMgr->isInSystemHeader(*this); in isInSystemHeader()
123 return SrcMgr->isBeforeInTranslationUnit(*this, Loc); in isBeforeInTranslationUnitThan()
127 SourceLocation::dump(*SrcMgr); in dump()
[all …]
DSourceManager.cpp31 using namespace SrcMgr;
197 SrcMgr::CharacteristicKind Kind = SrcMgr::C_User; in AddLineNote()
224 SrcMgr::CharacteristicKind FileKind) { in AddLineNote()
300 const SrcMgr::FileInfo &FileInfo = Entry.getFile(); in AddLineNote()
303 const_cast<SrcMgr::FileInfo&>(FileInfo).setHasLineDirectives(); in AddLineNote()
330 const SrcMgr::FileInfo &FileInfo = Entry.getFile(); in AddLineNote()
333 const_cast<SrcMgr::FileInfo&>(FileInfo).setHasLineDirectives(); in AddLineNote()
338 SrcMgr::CharacteristicKind FileKind; in AddLineNote()
340 FileKind = SrcMgr::C_ExternCSystem; in AddLineNote()
342 FileKind = SrcMgr::C_System; in AddLineNote()
[all …]
/external/clang/include/clang/Basic/
DSourceManager.h70 namespace SrcMgr {
553 llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*> FileInfos;
585 std::vector<SrcMgr::ContentCache*> MemBufferInfos;
591 SmallVector<SrcMgr::SLocEntry, 0> LocalSLocEntryTable;
597 mutable SmallVector<SrcMgr::SLocEntry, 0> LoadedSLocEntryTable;
637 mutable SrcMgr::ContentCache *LastLineNoContentCache;
676 mutable std::unique_ptr<SrcMgr::ContentCache> FakeContentCacheForRecovery;
764 SrcMgr::CharacteristicKind FileCharacter,
766 const SrcMgr::ContentCache *
768 /*isSystemFile=*/FileCharacter != SrcMgr::C_User);
[all …]
DSourceLocation.h268 const SourceManager *SrcMgr; variable
271 explicit FullSourceLoc() : SrcMgr(nullptr) {} in FullSourceLoc()
274 : SourceLocation(Loc), SrcMgr(&SM) {} in FullSourceLoc()
278 assert(SrcMgr && "SourceManager is NULL."); in getManager()
279 return *SrcMgr; in getManager()
318 assert(SrcMgr == Loc.SrcMgr && "Loc comes from another SourceManager!"); in isBeforeInTranslationUnitThan()
338 LHS.SrcMgr == RHS.SrcMgr;
DSourceManagerInternals.h41 SrcMgr::CharacteristicKind FileKind;
50 SrcMgr::CharacteristicKind FileKind, in get()
108 unsigned EntryExit, SrcMgr::CharacteristicKind FileKind);
/external/llvm/lib/TableGen/
DError.cpp22 SourceMgr SrcMgr; variable
35 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); in PrintMessage()
37 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, in PrintMessage()
46 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); in PrintWarning()
58 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); in PrintError()
DTGLexer.cpp29 TGLexer::TGLexer(SourceMgr &SM) : SrcMgr(SM) { in TGLexer()
30 CurBuffer = SrcMgr.getMainFileID(); in TGLexer()
31 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in TGLexer()
60 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in getNextChar()
62 CurBuffer = SrcMgr.FindBufferContainingLoc(ParentIncludeLoc); in getNextChar()
63 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in getNextChar()
305 CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr), in LexInclude()
316 SrcMgr.PrintMessage(Found->second, SourceMgr::DK_Note, in LexInclude()
322 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in LexInclude()
DMain.cpp90 SrcMgr.AddNewSourceBuffer(std::move(*FileOrErr), SMLoc()); in TableGenMain()
94 SrcMgr.setIncludeDirs(IncludeDirs); in TableGenMain()
96 TGParser Parser(SrcMgr, Records); in TableGenMain()
DTGLexer.h67 SourceMgr &SrcMgr; variable
89 TGLexer(SourceMgr &SrcMgr);
/external/clang/include/clang/Lex/
DDirectoryLookup.h68 DirectoryLookup(const DirectoryEntry *dir, SrcMgr::CharacteristicKind DT, in DirectoryLookup()
78 DirectoryLookup(const HeaderMap *map, SrcMgr::CharacteristicKind DT, in DirectoryLookup()
133 SrcMgr::CharacteristicKind getDirCharacteristic() const { in getDirCharacteristic()
134 return (SrcMgr::CharacteristicKind)DirCharacteristic; in getDirCharacteristic()
139 return getDirCharacteristic() != SrcMgr::C_User; in isSystemHeaderDirectory()
DHeaderSearch.h105 : isImport(false), isPragmaOnce(false), DirInfo(SrcMgr::C_User), in HeaderFileInfo()
427 SrcMgr::CharacteristicKind getFileDirFlavor(const FileEntry *File) { in getFileDirFlavor()
428 return (SrcMgr::CharacteristicKind)getFileInfo(File).DirInfo; in getFileDirFlavor()
442 getFileInfo(File).DirInfo = SrcMgr::C_System; in MarkFileSystemHeader()
DPPCallbacks.h50 SrcMgr::CharacteristicKind FileType,
63 SrcMgr::CharacteristicKind FileType) { in FileSkipped()
333 SrcMgr::CharacteristicKind FileType, in FileChanged()
341 SrcMgr::CharacteristicKind FileType) override { in FileSkipped()
/external/llvm/tools/llvm-mc/
Dllvm-mc.cpp240 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, in AsLexInput() argument
244 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); in AsLexInput()
252 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning, in AsLexInput()
320 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, in AssembleInput() argument
324 createMCAsmParser(SrcMgr, Ctx, Str, MAI)); in AssembleInput()
378 SourceMgr SrcMgr; in main() local
381 SrcMgr.AddNewSourceBuffer(std::move(*BufferPtr), SMLoc()); in main()
385 SrcMgr.setIncludeDirs(IncludeDirs); in main()
405 MCContext Ctx(MAI.get(), MRI.get(), &MOFI, &SrcMgr); in main()
493 Res = AsLexInput(SrcMgr, *MAI, Out->os()); in main()
[all …]
/external/llvm/tools/llvm-mcmarkup/
Dllvm-mcmarkup.cpp73 MarkupParser(MarkupLexer &lex, SourceMgr &SrcMgr) : Lex(lex), SM(SrcMgr) {} in MarkupParser() argument
146 SourceMgr SrcMgr; in parseMCMarkup() local
151 SrcMgr.AddNewSourceBuffer(std::move(Buffer), SMLoc()); in parseMCMarkup()
154 MarkupParser Parser(Lex, SrcMgr); in parseMCMarkup()
203 SrcMgr.PrintMessage(Tag.getLoc(), SourceMgr::DK_Error, in parseMCMarkup()
/external/clang/lib/Frontend/Rewrite/
DInclusionRewriter.cpp36 SrcMgr::CharacteristicKind FileType;
55 bool Process(FileID FileId, SrcMgr::CharacteristicKind FileType);
62 SrcMgr::CharacteristicKind FileType,
65 SrcMgr::CharacteristicKind FileType) override;
72 SrcMgr::CharacteristicKind FileType,
105 SrcMgr::CharacteristicKind FileType, in WriteLineInfo()
121 if (FileType == SrcMgr::C_System) in WriteLineInfo()
125 else if (FileType == SrcMgr::C_ExternCSystem) in WriteLineInfo()
142 SrcMgr::CharacteristicKind NewFileType, in FileChanged()
158 SrcMgr::CharacteristicKind /*FileType*/) { in FileSkipped()
[all …]
/external/llvm/utils/TableGen/
DCTagsEmitter.cpp27 namespace llvm { extern SourceMgr SrcMgr; }
41 SrcMgr.getMemoryBuffer(SrcMgr.FindBufferContainingLoc(Loc)); in emit()
43 std::pair<unsigned, unsigned> LineAndColumn = SrcMgr.getLineAndColumn(Loc); in emit()
/external/clang/tools/libclang/
DCIndexInclusionStack.cpp42 const SrcMgr::SLocEntry &(SourceManager::*Getter)(unsigned, bool*) const; in clang_getInclusions()
51 const SrcMgr::SLocEntry &SL = (SM.*Getter)(i, &Invalid); in clang_getInclusions()
56 const SrcMgr::FileInfo &FI = SL.getFile(); in clang_getInclusions()
/external/clang/lib/Frontend/
DDependencyFile.cpp40 SrcMgr::CharacteristicKind FileType, in FileChanged()
64 FileType != SrcMgr::C_User, in FileChanged()
155 SrcMgr::CharacteristicKind FileType);
168 SrcMgr::CharacteristicKind FileType,
229 SrcMgr::CharacteristicKind FileType) { in FileMatchesDepCriteria()
236 return FileType == SrcMgr::C_User; in FileMatchesDepCriteria()
241 SrcMgr::CharacteristicKind FileType, in FileChanged()
DHeaderIncludeGen.cpp44 SrcMgr::CharacteristicKind FileType,
82 SrcMgr::CharacteristicKind NewFileType, in FileChanged()
DPrintPreprocessedOutput.cpp92 SrcMgr::CharacteristicKind FileType;
109 FileType = SrcMgr::C_User; in PrintPPOutputPPCallbacks()
125 SrcMgr::CharacteristicKind FileType,
195 if (FileType == SrcMgr::C_System) in WriteLineInfo()
197 else if (FileType == SrcMgr::C_ExternCSystem) in WriteLineInfo()
251 SrcMgr::CharacteristicKind NewFileType, in FileChanged()
DInitHeaderSearch.cpp145 SrcMgr::CharacteristicKind Type; in AddUnmappedPath()
147 Type = SrcMgr::C_User; in AddUnmappedPath()
149 Type = SrcMgr::C_ExternCSystem; in AddUnmappedPath()
151 Type = SrcMgr::C_System; in AddUnmappedPath()
569 if (CurEntry.getDirCharacteristic() != SrcMgr::C_User) { in RemoveDuplicates()
597 if (SearchList[FirstDir].getDirCharacteristic() == SrcMgr::C_User) in RemoveDuplicates()
/external/llvm/lib/MC/
DMCContext.cpp36 : SrcMgr(mgr), MAI(mai), MRI(mri), MOFI(mofi), Allocator(), in MCContext()
51 if (SrcMgr && SrcMgr->getNumBuffers()) in MCContext()
53 SrcMgr->getMemoryBuffer(SrcMgr->getMainFileID())->getBufferIdentifier(); in MCContext()
457 if (!SrcMgr || Loc == SMLoc()) in FatalError()
461 SrcMgr->PrintMessage(Loc, SourceMgr::DK_Error, Msg); in FatalError()
/external/clang/lib/Parse/
DParseStmtAsm.cpp335 SourceManager &SrcMgr = PP.getSourceManager(); in ParseMicrosoftAsmStatement() local
359 SrcMgr.getDecomposedExpansionLoc(EndLoc); in ParseMicrosoftAsmStatement()
361 LineNo = SrcMgr.getLineNumber(FID, ExpAsmLoc.second); in ParseMicrosoftAsmStatement()
386 SrcMgr.getDecomposedExpansionLoc(TokLoc); in ParseMicrosoftAsmStatement()
388 LineNo = SrcMgr.getLineNumber(FID, ExpSemiLoc.second); in ParseMicrosoftAsmStatement()
394 SrcMgr.getDecomposedExpansionLoc(TokLoc); in ParseMicrosoftAsmStatement()
396 SrcMgr.getLineNumber(ExpLoc.first, ExpLoc.second) != LineNo) { in ParseMicrosoftAsmStatement()
407 LineNo = SrcMgr.getLineNumber(ExpLoc.first, ExpLoc.second); in ParseMicrosoftAsmStatement()
/external/clang/unittests/Tooling/
DRewriterTestContext.h57 return Sources.createFileID(Entry, SourceLocation(), SrcMgr::C_User); in createInMemoryFile()
79 return Sources.createFileID(File, SourceLocation(), SrcMgr::C_User); in createOnDiskFile()
/external/clang/tools/driver/
Dcc1as_main.cpp297 SourceMgr SrcMgr; in ExecuteAssembler() local
300 SrcMgr.AddNewSourceBuffer(std::move(*Buffer), SMLoc()); in ExecuteAssembler()
304 SrcMgr.setIncludeDirs(Opts.IncludePaths); in ExecuteAssembler()
326 MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &SrcMgr); in ExecuteAssembler()
398 createMCAsmParser(SrcMgr, Ctx, *Str.get(), *MAI)); in ExecuteAssembler()

123