/external/clang/lib/Basic/ |
D | SourceLocation.cpp | 82 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 …]
|
D | SourceManager.cpp | 31 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/ |
D | SourceManager.h | 70 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 …]
|
D | SourceLocation.h | 268 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;
|
D | SourceManagerInternals.h | 41 SrcMgr::CharacteristicKind FileKind; 50 SrcMgr::CharacteristicKind FileKind, in get() 108 unsigned EntryExit, SrcMgr::CharacteristicKind FileKind);
|
/external/llvm/lib/TableGen/ |
D | Error.cpp | 22 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()
|
D | TGLexer.cpp | 29 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()
|
D | Main.cpp | 90 SrcMgr.AddNewSourceBuffer(std::move(*FileOrErr), SMLoc()); in TableGenMain() 94 SrcMgr.setIncludeDirs(IncludeDirs); in TableGenMain() 96 TGParser Parser(SrcMgr, Records); in TableGenMain()
|
D | TGLexer.h | 67 SourceMgr &SrcMgr; variable 89 TGLexer(SourceMgr &SrcMgr);
|
/external/clang/include/clang/Lex/ |
D | DirectoryLookup.h | 68 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()
|
D | HeaderSearch.h | 105 : 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()
|
D | PPCallbacks.h | 50 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/ |
D | llvm-mc.cpp | 240 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/ |
D | llvm-mcmarkup.cpp | 73 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/ |
D | InclusionRewriter.cpp | 36 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/ |
D | CTagsEmitter.cpp | 27 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/ |
D | CIndexInclusionStack.cpp | 42 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/ |
D | DependencyFile.cpp | 40 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()
|
D | HeaderIncludeGen.cpp | 44 SrcMgr::CharacteristicKind FileType, 82 SrcMgr::CharacteristicKind NewFileType, in FileChanged()
|
D | PrintPreprocessedOutput.cpp | 92 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()
|
D | InitHeaderSearch.cpp | 145 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/ |
D | MCContext.cpp | 36 : 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/ |
D | ParseStmtAsm.cpp | 335 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/ |
D | RewriterTestContext.h | 57 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/ |
D | cc1as_main.cpp | 297 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()
|