Searched refs:SrcMgr (Results 1 - 25 of 64) sorted by relevance

123

/external/clang/lib/Basic/
H A DSourceLocation.cpp82 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
[all...]
H A DSourceManager.cpp31 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
[all...]
/external/llvm/lib/TableGen/
H A DError.cpp22 SourceMgr SrcMgr; member in namespace:llvm
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);
H A DMain.cpp93 // 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);
H A DTGLexer.cpp29 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();
H A DTGLexer.h63 SourceMgr &SrcMgr; member in class:llvm::TGLexer
85 TGLexer(SourceMgr &SrcMgr);
/external/clang/include/clang/Lex/
H A DDirectoryLookup.h51 /// 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;
H A DHeaderSearch.h48 /// SrcMgr::CharacteristicKind.
105 : isImport(false), isPragmaOnce(false), DirInfo(SrcMgr::C_User),
425 SrcMgr::CharacteristicKind getFileDirFlavor(const FileEntry *File) {
426 return (SrcMgr::CharacteristicKind)getFileInfo(File).DirInfo;
440 getFileInfo(File).DirInfo = SrcMgr::C_System;
/external/clang/tools/libclang/
H A DCIndexInclusionStack.cpp42 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/Basic/
H A DSourceManager.h70 namespace SrcMgr { namespace in namespace:clang
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
791 createFileID(llvm::MemoryBuffer *Buffer, SrcMgr::CharacteristicKind FileCharacter = SrcMgr::C_User, int LoadedID = 0, unsigned LoadedOffset = 0, SourceLocation IncludeLoc = SourceLocation()) argument
[all...]
H A DSourceManagerInternals.h41 SrcMgr::CharacteristicKind FileKind;
50 SrcMgr::CharacteristicKind FileKind,
113 unsigned EntryExit, SrcMgr::CharacteristicKind FileKind);
H A DSourceLocation.h268 const SourceManager *SrcMgr; member in class:clang::SourceLocation::FullSourceLoc
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;
/external/llvm/include/llvm/TableGen/
H A DError.h34 extern SourceMgr SrcMgr;
/external/llvm/utils/TableGen/
H A DCTagsEmitter.cpp27 namespace llvm { extern SourceMgr SrcMgr; }
41 SrcMgr.getMemoryBuffer(SrcMgr.FindBufferContainingLoc(Loc));
43 std::pair<unsigned, unsigned> LineAndColumn = SrcMgr.getLineAndColumn(Loc);
/external/llvm/tools/llvm-mcmarkup/
H A Dllvm-mcmarkup.cpp73 MarkupParser(MarkupLexer &lex, SourceMgr &SrcMgr) : Lex(lex), SM(SrcMgr) {} argument
146 SourceMgr SrcMgr; local
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/lib/Frontend/
H A DDependencyFile.cpp39 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,
H A DHeaderIncludeGen.cpp44 SrcMgr::CharacteristicKind FileType,
80 SrcMgr::CharacteristicKind NewFileType,
/external/llvm/lib/MC/
H A DMCContext.cpp35 : 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/lib/Rewrite/Frontend/
H A DInclusionRewriter.cpp36 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
[all...]
/external/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp241 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, argument
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; local
380 // Tell SrcMgr about this buffer, which is what the parser will pick up.
381 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
385 SrcMgr
320 AssembleInput(const char *ProgName, const Target *TheTarget, SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, MCAsmInfo &MAI, MCSubtargetInfo &STI, MCInstrInfo &MCII, MCTargetOptions &MCOptions) argument
[all...]
/external/clang/unittests/Tooling/
H A DRewriterTestContext.h56 return Sources.createFileID(Entry, SourceLocation(), SrcMgr::C_User);
77 return Sources.createFileID(File, SourceLocation(), SrcMgr::C_User);
/external/clang/lib/Index/
H A DSimpleFormatContext.h55 return Sources.createFileID(Entry, SourceLocation(), SrcMgr::C_User);
/external/clang/utils/TableGen/
H A DClangCommentHTMLNamedCharacterReferenceEmitter.cpp63 SrcMgr.PrintMessage(Tag.getLoc().front(),
/external/clang/tools/driver/
H A Dcc1as_main.cpp295 SourceMgr SrcMgr; local
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/clang/lib/Parse/
H A DParseStmtAsm.cpp321 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.

Completed in 627 milliseconds

123