/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() 298 const SrcMgr::FileInfo &FileInfo = Entry.getFile(); in AddLineNote() 301 const_cast<SrcMgr::FileInfo&>(FileInfo).setHasLineDirectives(); in AddLineNote() 326 const SrcMgr::FileInfo &FileInfo = Entry.getFile(); in AddLineNote() 329 const_cast<SrcMgr::FileInfo&>(FileInfo).setHasLineDirectives(); in AddLineNote() 333 SrcMgr::CharacteristicKind FileKind; in AddLineNote() 335 FileKind = SrcMgr::C_ExternCSystem; in AddLineNote() 337 FileKind = SrcMgr::C_System; in AddLineNote() [all …]
|
/external/clang/include/clang/Basic/ |
D | SourceManager.h | 70 namespace SrcMgr { 563 llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*> FileInfos; 600 std::vector<SrcMgr::ContentCache*> MemBufferInfos; 606 SmallVector<SrcMgr::SLocEntry, 0> LocalSLocEntryTable; 612 mutable SmallVector<SrcMgr::SLocEntry, 0> LoadedSLocEntryTable; 652 mutable SrcMgr::ContentCache *LastLineNoContentCache; 691 mutable std::unique_ptr<SrcMgr::ContentCache> FakeContentCacheForRecovery; 779 SrcMgr::CharacteristicKind FileCharacter, 781 const SrcMgr::ContentCache * 783 /*isSystemFile=*/FileCharacter != SrcMgr::C_User); [all …]
|
D | SourceLocation.h | 269 const SourceManager *SrcMgr; variable 272 explicit FullSourceLoc() : SrcMgr(nullptr) {} in FullSourceLoc() 275 : SourceLocation(Loc), SrcMgr(&SM) {} in FullSourceLoc() 279 assert(SrcMgr && "SourceManager is NULL."); in getManager() 280 return *SrcMgr; in getManager() 319 assert(SrcMgr == Loc.SrcMgr && "Loc comes from another SourceManager!"); in isBeforeInTranslationUnitThan() 339 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 | 23 SourceMgr SrcMgr; variable 36 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); in PrintMessage() 38 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, in PrintMessage() 47 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); in PrintWarning() 59 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 | 86 SrcMgr.AddNewSourceBuffer(std::move(*FileOrErr), SMLoc()); in TableGenMain() 90 SrcMgr.setIncludeDirs(IncludeDirs); in TableGenMain() 92 TGParser Parser(SrcMgr, Records); in TableGenMain()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/ |
D | Error.cpp | 24 SourceMgr SrcMgr; variable 37 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); in PrintMessage() 39 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, in PrintMessage() 52 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); in PrintWarning() 62 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); in PrintError()
|
D | TGLexer.cpp | 31 TGLexer::TGLexer(SourceMgr &SM) : SrcMgr(SM) { in TGLexer() 32 CurBuffer = SrcMgr.getMainFileID(); in TGLexer() 33 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in TGLexer() 62 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in getNextChar() 64 CurBuffer = SrcMgr.FindBufferContainingLoc(ParentIncludeLoc); in getNextChar() 65 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in getNextChar() 306 CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr), in LexInclude() 317 SrcMgr.PrintMessage(Found->second, SourceMgr::DK_Note, in LexInclude() 323 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in LexInclude()
|
D | Main.cpp | 88 SrcMgr.AddNewSourceBuffer(std::move(*FileOrErr), SMLoc()); in TableGenMain() 92 SrcMgr.setIncludeDirs(IncludeDirs); in TableGenMain() 94 TGParser Parser(SrcMgr, Records); in TableGenMain()
|
/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()
|
/external/clang/lib/Frontend/Rewrite/ |
D | InclusionRewriter.cpp | 34 SrcMgr::CharacteristicKind FileType; 35 IncludedFile(FileID Id, SrcMgr::CharacteristicKind FileType) in IncludedFile() 55 bool Process(FileID FileId, SrcMgr::CharacteristicKind FileType); 62 SrcMgr::CharacteristicKind FileType, 65 SrcMgr::CharacteristicKind FileType) override; 72 SrcMgr::CharacteristicKind FileType, 106 SrcMgr::CharacteristicKind FileType, in WriteLineInfo() 122 if (FileType == SrcMgr::C_System) in WriteLineInfo() 126 else if (FileType == SrcMgr::C_ExternCSystem) in WriteLineInfo() 143 SrcMgr::CharacteristicKind NewFileType, in FileChanged() [all …]
|
/external/llvm/tools/llvm-mc/ |
D | llvm-mc.cpp | 249 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, in AsLexInput() argument 253 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); in AsLexInput() 261 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning, in AsLexInput() 349 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, in AssembleInput() argument 353 createMCAsmParser(SrcMgr, Ctx, Str, MAI)); in AssembleInput() 412 SourceMgr SrcMgr; in main() local 415 SrcMgr.AddNewSourceBuffer(std::move(*BufferPtr), SMLoc()); in main() 419 SrcMgr.setIncludeDirs(IncludeDirs); in main() 442 MCContext Ctx(MAI.get(), MRI.get(), &MOFI, &SrcMgr); in main() 540 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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mc/ |
D | llvm-mc.cpp | 238 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, in AsLexInput() argument 242 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); in AsLexInput() 277 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, in AssembleInput() argument 281 createMCAsmParser(SrcMgr, Ctx, Str, MAI)); in AssembleInput() 338 SourceMgr SrcMgr; in main() local 341 SrcMgr.AddNewSourceBuffer(std::move(*BufferPtr), SMLoc()); in main() 345 SrcMgr.setIncludeDirs(IncludeDirs); in main() 368 MCContext Ctx(MAI.get(), MRI.get(), &MOFI, &SrcMgr); in main() 508 Res = AsLexInput(SrcMgr, *MAI, Out->os()); in main() 511 Res = AssembleInput(ProgName, TheTarget, SrcMgr, Ctx, *Str, *MAI, *STI, in main() [all …]
|
/external/swiftshader/third_party/LLVM/lib/TableGen/ |
D | Error.cpp | 21 SourceMgr SrcMgr; variable 24 SrcMgr.PrintMessage(ErrorLoc, Msg, "error"); in PrintError() 28 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), Msg, "error"); in PrintError()
|
D | TGLexer.cpp | 28 TGLexer::TGLexer(SourceMgr &SM) : SrcMgr(SM) { in TGLexer() 30 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer); in TGLexer() 59 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in getNextChar() 61 CurBuffer = SrcMgr.FindBufferContainingLoc(ParentIncludeLoc); in getNextChar() 62 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer); in getNextChar() 263 CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr), in LexInclude() 272 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer); in LexInclude()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mc-assemble-fuzzer/ |
D | llvm-mc-assemble-fuzzer.cpp | 106 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, in AssembleInput() argument 112 createMCAsmParser(SrcMgr, Ctx, Str, MAI)); in AssembleInput() 137 SourceMgr SrcMgr; in AssembleOneInput() local 142 SrcMgr.AddNewSourceBuffer(std::move(BufferPtr), SMLoc()); in AssembleOneInput() 145 SrcMgr.setIncludeDirs(NoIncludeDirs); in AssembleOneInput() 172 MCContext Ctx(MAI.get(), MRI.get(), &MOFI, &SrcMgr); in AssembleOneInput() 238 const int Res = AssembleInput(ProgName, TheTarget, SrcMgr, Ctx, *Str, *MAI, *STI, in AssembleOneInput()
|
/external/swiftshader/third_party/LLVM/tools/llvm-mc/ |
D | llvm-mc.cpp | 241 SourceMgr SrcMgr; in AsLexInput() local 244 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc()); in AsLexInput() 248 SrcMgr.setIncludeDirs(IncludeDirs); in AsLexInput() 258 Lexer.setBuffer(SrcMgr.getMemoryBuffer(0)); in AsLexInput() 270 SrcMgr.PrintMessage(Lexer.getLoc(), "unknown token", "warning"); in AsLexInput() 354 SourceMgr SrcMgr; in AssembleInput() local 357 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc()); in AssembleInput() 361 SrcMgr.setIncludeDirs(IncludeDirs); in AssembleInput() 428 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, Ctx, in AssembleInput()
|
/external/clang/lib/Frontend/ |
D | DependencyFile.cpp | 41 SrcMgr::CharacteristicKind FileType, in FileChanged() 58 FileType != SrcMgr::C_User, in FileChanged() 168 SrcMgr::CharacteristicKind FileType); 186 SrcMgr::CharacteristicKind FileType, 261 SrcMgr::CharacteristicKind FileType) { in FileMatchesDepCriteria() 268 return FileType == SrcMgr::C_User; in FileMatchesDepCriteria() 273 SrcMgr::CharacteristicKind FileType, in FileChanged()
|
/external/llvm/utils/TableGen/ |
D | CTagsEmitter.cpp | 39 SrcMgr.getMemoryBuffer(SrcMgr.FindBufferContainingLoc(Loc)); in emit() 41 std::pair<unsigned, unsigned> LineAndColumn = SrcMgr.getLineAndColumn(Loc); in emit()
|
/external/clang/tools/libclang/ |
D | CIndexInclusionStack.cpp | 24 static void getInclusions(const SrcMgr::SLocEntry &(SourceManager::*Getter)(unsigned, bool*) const,… in getInclusions() 36 const SrcMgr::SLocEntry &SL = (SM.*Getter)(i, &Invalid); in getInclusions() 41 const SrcMgr::FileInfo &FI = SL.getFile(); in getInclusions()
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/ |
D | CTagsEmitter.cpp | 39 SrcMgr.getMemoryBuffer(SrcMgr.FindBufferContainingLoc(Loc)); in emit() 41 std::pair<unsigned, unsigned> LineAndColumn = SrcMgr.getLineAndColumn(Loc); in emit()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinterInlineAsm.cpp | 52 unsigned BufNum = DiagInfo->SrcMgr.FindBufferContainingLoc(Diag.getLoc()); in srcMgrDiagHandler() 105 Context.setInlineSourceManager(&DiagInfo->SrcMgr); in EmitInlineAsm() 111 DiagInfo->SrcMgr.setDiagHandler(srcMgrDiagHandler, DiagInfo.get()); in EmitInlineAsm() 115 SourceMgr &SrcMgr = DiagInfo->SrcMgr; in EmitInlineAsm() local 116 SrcMgr.setIncludeDirs(MCOptions.IASSearchPaths); in EmitInlineAsm() 124 unsigned BufNum = SrcMgr.AddNewSourceBuffer(std::move(Buffer), SMLoc()); in EmitInlineAsm() 133 createMCAsmParser(SrcMgr, OutContext, *OutStreamer, *MAI, BufNum)); in EmitInlineAsm()
|