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

123

/external/clang/lib/Basic/
H A DSourceLocation.cpp74 return SrcMgr->getFileID(*this);
80 return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr);
85 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr);
90 return SrcMgr->getExpansionLineNumber(*this, Invalid);
95 return SrcMgr->getExpansionColumnNumber(*this, Invalid);
100 return SrcMgr->getSpellingLineNumber(*this, Invalid);
105 return SrcMgr->getSpellingColumnNumber(*this, Invalid);
110 return SrcMgr
[all...]
H A DSourceManager.cpp32 using namespace SrcMgr;
204 SrcMgr::CharacteristicKind Kind = SrcMgr::C_User;
231 SrcMgr::CharacteristicKind FileKind) {
307 const SrcMgr::FileInfo &FileInfo = Entry.getFile();
310 const_cast<SrcMgr::FileInfo&>(FileInfo).setHasLineDirectives();
337 const SrcMgr::FileInfo &FileInfo = Entry.getFile();
340 const_cast<SrcMgr::FileInfo&>(FileInfo).setHasLineDirectives();
345 SrcMgr::CharacteristicKind FileKind;
347 FileKind = SrcMgr
[all...]
/external/llvm/lib/TableGen/
H A DError.cpp21 SourceMgr SrcMgr; member in namespace:llvm
28 SrcMgr.PrintMessage(Loc.front(), Kind, Msg);
30 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note,
39 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg);
55 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
H A DMain.cpp66 // Tell SrcMgr about this buffer, which is what TGParser will pick up.
67 SrcMgr.AddNewSourceBuffer(F, SMLoc());
71 SrcMgr.setIncludeDirs(IncludeDirs);
73 TGParser Parser(SrcMgr, Records);
H A DTGLexer.cpp30 TGLexer::TGLexer(SourceMgr &SM) : SrcMgr(SM) {
32 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer);
61 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer);
63 CurBuffer = SrcMgr.FindBufferContainingLoc(ParentIncludeLoc);
64 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer);
306 CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr),
315 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer);
H A DTGLexer.h62 SourceMgr &SrcMgr; member in class:llvm::TGLexer
80 TGLexer(SourceMgr &SrcMgr);
/external/clang/include/clang/Lex/
H A DDirectoryLookup.h50 /// SrcMgr::CharacteristicKind.
67 DirectoryLookup(const DirectoryEntry *dir, SrcMgr::CharacteristicKind DT,
77 DirectoryLookup(const HeaderMap *map, SrcMgr::CharacteristicKind DT,
118 SrcMgr::CharacteristicKind getDirCharacteristic() const {
119 return (SrcMgr::CharacteristicKind)DirCharacteristic;
H A DHeaderSearch.h46 /// SrcMgr::CharacteristicKind.
90 : isImport(false), isPragmaOnce(false), DirInfo(SrcMgr::C_User),
371 SrcMgr::CharacteristicKind getFileDirFlavor(const FileEntry *File) {
372 return (SrcMgr::CharacteristicKind)getFileInfo(File).DirInfo;
386 getFileInfo(File).DirInfo = SrcMgr::C_System;
H A DPPCallbacks.h47 SrcMgr::CharacteristicKind FileType,
60 SrcMgr::CharacteristicKind FileType) {
246 SrcMgr::CharacteristicKind FileType,
254 SrcMgr::CharacteristicKind FileType) {
/external/clang/tools/libclang/
H A DCIndexInclusionStack.cpp38 const SrcMgr::SLocEntry &(SourceManager::*Getter)(unsigned, bool*) const;
47 const SrcMgr::SLocEntry &SL = (SM.*Getter)(i, &Invalid);
52 const SrcMgr::FileInfo &FI = SL.getFile();
/external/clang/include/clang/Basic/
H A DSourceManager.h69 namespace SrcMgr { namespace in namespace:clang
420 } // end SrcMgr namespace.
538 llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*> FileInfos;
570 std::vector<SrcMgr::ContentCache*> MemBufferInfos;
576 std::vector<SrcMgr::SLocEntry> LocalSLocEntryTable;
582 mutable std::vector<SrcMgr::SLocEntry> LoadedSLocEntryTable;
622 mutable SrcMgr::ContentCache *LastLineNoContentCache;
641 mutable SrcMgr::ContentCache *FakeContentCacheForRecovery;
693 SrcMgr::CharacteristicKind Kind = SrcMgr
692 createMainFileID(const FileEntry *SourceFile, SrcMgr::CharacteristicKind Kind = SrcMgr::C_User) argument
[all...]
H A DSourceManagerInternals.h41 SrcMgr::CharacteristicKind FileKind;
50 SrcMgr::CharacteristicKind FileKind,
113 unsigned EntryExit, SrcMgr::CharacteristicKind FileKind);
H A DSourceLocation.h272 const SourceManager *SrcMgr; member in class:clang::FullSourceLoc
275 explicit FullSourceLoc() : SrcMgr(0) {}
278 : SourceLocation(Loc), SrcMgr(&SM) {}
282 assert(SrcMgr && "SourceManager is NULL.");
283 return *SrcMgr;
323 assert(SrcMgr == Loc.SrcMgr && "Loc comes from another SourceManager!");
343 LHS.SrcMgr == RHS.SrcMgr;
/external/clang/lib/Rewrite/Frontend/
H A DInclusionRewriter.cpp32 SrcMgr::CharacteristicKind FileType;
48 bool Process(FileID FileId, SrcMgr::CharacteristicKind FileType);
51 SrcMgr::CharacteristicKind FileType,
55 SrcMgr::CharacteristicKind FileType);
65 SrcMgr::CharacteristicKind FileType,
95 SrcMgr::CharacteristicKind FileType,
107 if (FileType == SrcMgr::C_System)
111 else if (FileType == SrcMgr::C_ExternCSystem)
123 SrcMgr::CharacteristicKind NewFileType,
139 SrcMgr
[all...]
/external/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp224 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, tool_output_file *Out) { argument
227 Lexer.setBuffer(SrcMgr.getMemoryBuffer(0));
235 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning,
306 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str,
308 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, Ctx,
356 SourceMgr SrcMgr; local
358 // Tell SrcMgr about this buffer, which is what the parser will pick up.
359 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
363 SrcMgr.setIncludeDirs(IncludeDirs);
375 MCContext Ctx(*MAI, *MRI, MOFI.get(), &SrcMgr);
305 AssembleInput(const char *ProgName, const Target *TheTarget, SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, MCAsmInfo &MAI, MCSubtargetInfo &STI) argument
[all...]
/external/llvm/include/llvm/TableGen/
H A DError.h44 extern SourceMgr SrcMgr;
/external/clang/lib/Frontend/
H A DHeaderIncludeGen.cpp43 SrcMgr::CharacteristicKind FileType,
77 SrcMgr::CharacteristicKind NewFileType,
H A DDependencyFile.cpp42 SrcMgr::CharacteristicKind FileType);
56 SrcMgr::CharacteristicKind FileType,
90 SrcMgr::CharacteristicKind FileType) {
97 return FileType == SrcMgr::C_User;
102 SrcMgr::CharacteristicKind FileType,
H A DInitHeaderSearch.cpp134 SrcMgr::CharacteristicKind Type;
136 Type = SrcMgr::C_User;
138 Type = SrcMgr::C_System;
140 Type = SrcMgr::C_ExternCSystem;
535 if (CurEntry.getDirCharacteristic() != SrcMgr::C_User) {
563 if (SearchList[FirstDir].getDirCharacteristic() == SrcMgr::C_User)
H A DPrintPreprocessedOutput.cpp92 SrcMgr::CharacteristicKind FileType;
108 FileType = SrcMgr::C_User;
126 SrcMgr::CharacteristicKind FileType,
182 if (FileType == SrcMgr::C_System)
184 else if (FileType == SrcMgr::C_ExternCSystem)
238 SrcMgr::CharacteristicKind NewFileType,
/external/clang/unittests/Tooling/
H A DRewriterTestContext.h60 return Sources.createFileID(Entry, SourceLocation(), SrcMgr::C_User);
83 return Sources.createFileID(File, SourceLocation(), SrcMgr::C_User);
/external/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinterInlineAsm.cpp89 SourceMgr SrcMgr; local
101 SrcMgr.setDiagHandler(srcMgrDiagHandler, &DiagInfo);
111 // Tell SrcMgr about this buffer, it takes ownership of the buffer.
112 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
114 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr,
/external/clang/include/clang/Frontend/
H A DCompilerInstance.h638 SrcMgr::CharacteristicKind Kind = SrcMgr::C_User);
645 SrcMgr::CharacteristicKind Kind,
/external/llvm/lib/MC/
H A DMCContext.cpp35 SrcMgr(mgr), MAI(mai), MRI(mri), MOFI(mofi),
331 if (!SrcMgr || Loc == SMLoc())
335 SrcMgr->PrintMessage(Loc, SourceMgr::DK_Error, Msg);
/external/clang/tools/driver/
H A Dcc1as_main.cpp275 SourceMgr SrcMgr; local
277 // Tell SrcMgr about this buffer, which is what the parser will pick up.
278 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
282 SrcMgr.setIncludeDirs(Opts.IncludePaths);
298 MCContext Ctx(*MAI, *MRI, MOFI.get(), &SrcMgr);
353 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, Ctx,

Completed in 2230 milliseconds

123