/external/clang/lib/Basic/ |
SourceLocation.cpp | 82 return SrcMgr->getFileID(*this); 88 return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr); 93 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr); 98 return SrcMgr->getExpansionLineNumber(*this, Invalid); 103 return SrcMgr->getExpansionColumnNumber(*this, Invalid); 108 return SrcMgr->getSpellingLineNumber(*this, Invalid); 113 return SrcMgr->getSpellingColumnNumber(*this, Invalid); 118 return SrcMgr->isInSystemHeader(*this) [all...] |
SourceManager.cpp | 31 using namespace SrcMgr; 202 SrcMgr::CharacteristicKind Kind = SrcMgr::C_User; 229 SrcMgr::CharacteristicKind FileKind) { 305 const SrcMgr::FileInfo &FileInfo = Entry.getFile(); 308 const_cast<SrcMgr::FileInfo&>(FileInfo).setHasLineDirectives(); 335 const SrcMgr::FileInfo &FileInfo = Entry.getFile(); 338 const_cast<SrcMgr::FileInfo&>(FileInfo).setHasLineDirectives(); 343 SrcMgr::CharacteristicKind FileKind; 345 FileKind = SrcMgr::C_ExternCSystem [all...] |
/external/llvm/lib/TableGen/ |
Error.cpp | 22 SourceMgr SrcMgr; 35 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); 37 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, 46 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); 58 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
|
Main.cpp | 93 // Tell SrcMgr about this buffer, which is what TGParser will pick up. 94 SrcMgr.AddNewSourceBuffer(F, SMLoc()); 98 SrcMgr.setIncludeDirs(IncludeDirs); 100 TGParser Parser(SrcMgr, Records);
|
TGLexer.cpp | 29 TGLexer::TGLexer(SourceMgr &SM) : SrcMgr(SM) { 30 CurBuffer = SrcMgr.getMainFileID(); 31 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); 60 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); 62 CurBuffer = SrcMgr.FindBufferContainingLoc(ParentIncludeLoc); 63 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); 305 CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr), 316 SrcMgr.PrintMessage(Found->second, SourceMgr::DK_Note, 322 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer();
|
TGLexer.h | 63 SourceMgr &SrcMgr; 85 TGLexer(SourceMgr &SrcMgr);
|
TGParser.h | 87 TGParser(SourceMgr &SrcMgr, RecordKeeper &records) 88 : Lex(SrcMgr), CurMultiClass(nullptr), Records(records), AnonCounter(0) {}
|
/external/llvm/tools/llvm-mcmarkup/ |
llvm-mcmarkup.cpp | 73 MarkupParser(MarkupLexer &lex, SourceMgr &SrcMgr) : Lex(lex), SM(SrcMgr) {} 146 SourceMgr SrcMgr; 148 // Tell SrcMgr about this buffer, which is what the parser will pick up. 149 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc()); 153 MarkupParser Parser(Lex, SrcMgr); 202 SrcMgr.PrintMessage(Tag.getLoc(), SourceMgr::DK_Error,
|
/external/clang/tools/libclang/ |
CIndexInclusionStack.cpp | 42 const SrcMgr::SLocEntry &(SourceManager::*Getter)(unsigned, bool*) const; 51 const SrcMgr::SLocEntry &SL = (SM.*Getter)(i, &Invalid); 56 const SrcMgr::FileInfo &FI = SL.getFile();
|
/external/clang/include/clang/Lex/ |
DirectoryLookup.h | 51 /// SrcMgr::CharacteristicKind. 68 DirectoryLookup(const DirectoryEntry *dir, SrcMgr::CharacteristicKind DT, 78 DirectoryLookup(const HeaderMap *map, SrcMgr::CharacteristicKind DT, 133 SrcMgr::CharacteristicKind getDirCharacteristic() const { 134 return (SrcMgr::CharacteristicKind)DirCharacteristic; 139 return getDirCharacteristic() != SrcMgr::C_User;
|
/external/clang/include/clang/Basic/ |
SourceManager.h | 70 namespace SrcMgr { 440 } // end SrcMgr namespace. 567 llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*> FileInfos; 599 std::vector<SrcMgr::ContentCache*> MemBufferInfos; 605 SmallVector<SrcMgr::SLocEntry, 0> LocalSLocEntryTable; 611 mutable SmallVector<SrcMgr::SLocEntry, 0> LoadedSLocEntryTable; 651 mutable SrcMgr::ContentCache *LastLineNoContentCache; 690 mutable SrcMgr::ContentCache *FakeContentCacheForRecovery; 778 SrcMgr::CharacteristicKind FileCharacter, 780 const SrcMgr::ContentCache [all...] |
SourceLocation.h | 268 const SourceManager *SrcMgr; 271 explicit FullSourceLoc() : SrcMgr(nullptr) {} 274 : SourceLocation(Loc), SrcMgr(&SM) {} 278 assert(SrcMgr && "SourceManager is NULL."); 279 return *SrcMgr; 319 assert(SrcMgr == Loc.SrcMgr && "Loc comes from another SourceManager!"); 339 LHS.SrcMgr == RHS.SrcMgr;
|
SourceManagerInternals.h | 41 SrcMgr::CharacteristicKind FileKind; 50 SrcMgr::CharacteristicKind FileKind, 113 unsigned EntryExit, SrcMgr::CharacteristicKind FileKind);
|
/external/llvm/utils/TableGen/ |
CTagsEmitter.cpp | 27 namespace llvm { extern SourceMgr SrcMgr; } 41 SrcMgr.getMemoryBuffer(SrcMgr.FindBufferContainingLoc(Loc)); 43 std::pair<unsigned, unsigned> LineAndColumn = SrcMgr.getLineAndColumn(Loc);
|
/external/clang/lib/Frontend/ |
DependencyFile.cpp | 39 SrcMgr::CharacteristicKind FileType, 63 FileType != SrcMgr::C_User, 145 SrcMgr::CharacteristicKind FileType); 158 SrcMgr::CharacteristicKind FileType, 219 SrcMgr::CharacteristicKind FileType) { 226 return FileType == SrcMgr::C_User; 231 SrcMgr::CharacteristicKind FileType,
|
HeaderIncludeGen.cpp | 44 SrcMgr::CharacteristicKind FileType, 80 SrcMgr::CharacteristicKind NewFileType,
|
/external/llvm/tools/llvm-mc/ |
llvm-mc.cpp | 241 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, 245 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); 253 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning, 321 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, 325 createMCAsmParser(SrcMgr, Ctx, Str, MAI)); 378 SourceMgr SrcMgr; 380 // Tell SrcMgr about this buffer, which is what the parser will pick up. 381 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc()); 385 SrcMgr.setIncludeDirs(IncludeDirs) [all...] |
/external/clang/lib/Rewrite/Frontend/ |
InclusionRewriter.cpp | 36 SrcMgr::CharacteristicKind FileType; 53 bool Process(FileID FileId, SrcMgr::CharacteristicKind FileType); 59 SrcMgr::CharacteristicKind FileType, 62 SrcMgr::CharacteristicKind FileType) override; 69 SrcMgr::CharacteristicKind FileType, 103 SrcMgr::CharacteristicKind FileType, 119 if (FileType == SrcMgr::C_System) 123 else if (FileType == SrcMgr::C_ExternCSystem) 141 SrcMgr::CharacteristicKind NewFileType, 157 SrcMgr::CharacteristicKind /*FileType*/) [all...] |
/external/llvm/include/llvm/TableGen/ |
Error.h | 34 extern SourceMgr SrcMgr;
|
/external/clang/lib/ARCMigrate/ |
TransformActions.cpp | 68 CharRange(CharSourceRange range, SourceManager &srcMgr, Preprocessor &PP) { 72 Begin = FullSourceLoc(srcMgr.getExpansionLoc(beginLoc), srcMgr); 73 End = FullSourceLoc(getLocForEndOfToken(endLoc, srcMgr, PP), srcMgr); 75 Begin = FullSourceLoc(srcMgr.getExpansionLoc(beginLoc), srcMgr); 76 End = FullSourceLoc(srcMgr.getExpansionLoc(endLoc), srcMgr); 99 SourceManager &SrcMgr, Preprocessor &PP) [all...] |
/external/llvm/lib/MC/ |
MCContext.cpp | 35 : SrcMgr(mgr), MAI(mai), MRI(mri), MOFI(mofi), Allocator(), 50 if (SrcMgr && SrcMgr->getNumBuffers()) 52 SrcMgr->getMemoryBuffer(SrcMgr->getMainFileID())->getBufferIdentifier(); 370 if (!SrcMgr || Loc == SMLoc()) 374 SrcMgr->PrintMessage(Loc, SourceMgr::DK_Error, Msg);
|
/external/clang/tools/driver/ |
cc1as_main.cpp | 295 SourceMgr SrcMgr; 297 // Tell SrcMgr about this buffer, which is what the parser will pick up. 298 SrcMgr.AddNewSourceBuffer(Buffer->release(), SMLoc()); 302 SrcMgr.setIncludeDirs(Opts.IncludePaths); 325 MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &SrcMgr); 389 createMCAsmParser(SrcMgr, Ctx, *Str.get(), *MAI));
|
/external/llvm/lib/Object/ |
IRObjectFile.cpp | 78 SourceMgr SrcMgr; 79 SrcMgr.AddNewSourceBuffer(Buffer.release(), SMLoc()); 81 createMCAsmParser(SrcMgr, MCCtx, *Streamer, *MAI));
|
/external/clang/lib/Parse/ |
ParseStmtAsm.cpp | 321 SourceManager &SrcMgr = PP.getSourceManager(); 344 SrcMgr.getDecomposedExpansionLoc(EndLoc); 346 LineNo = SrcMgr.getLineNumber(FID, ExpAsmLoc.second); 371 SrcMgr.getDecomposedExpansionLoc(TokLoc); 373 LineNo = SrcMgr.getLineNumber(FID, ExpSemiLoc.second); 379 SrcMgr.getDecomposedExpansionLoc(TokLoc); 381 SrcMgr.getLineNumber(ExpLoc.first, ExpLoc.second) != LineNo) { 493 // Tell SrcMgr about this buffer, which is what the parser will pick up.
|
/external/clang/unittests/Tooling/ |
RewriterTestContext.h | 56 return Sources.createFileID(Entry, SourceLocation(), SrcMgr::C_User); 77 return Sources.createFileID(File, SourceLocation(), SrcMgr::C_User);
|