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

123

/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Basic/
H A DSourceLocation.cpp81 return SrcMgr->getFileID(*this);
87 return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr);
92 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr);
97 return SrcMgr->getExpansionLineNumber(*this, Invalid);
102 return SrcMgr->getExpansionColumnNumber(*this, Invalid);
107 return SrcMgr->getSpellingLineNumber(*this, Invalid);
112 return SrcMgr->getSpellingColumnNumber(*this, Invalid);
117 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...]
/freebsd-9.3-release/contrib/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) {
31 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer);
60 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer);
62 CurBuffer = SrcMgr.FindBufferContainingLoc(ParentIncludeLoc);
63 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer);
305 CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr),
316 SrcMgr.PrintMessage(Found->second, SourceMgr::DK_Note,
322 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer);
H A DTGLexer.h63 SourceMgr &SrcMgr; member in class:llvm::TGLexer
85 TGLexer(SourceMgr &SrcMgr);
/freebsd-9.3-release/contrib/llvm/tools/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,
129 SrcMgr::CharacteristicKind getDirCharacteristic() const {
130 return (SrcMgr::CharacteristicKind)DirCharacteristic;
135 return getDirCharacteristic() != SrcMgr::C_User;
H A DHeaderSearch.h48 /// SrcMgr::CharacteristicKind.
102 : isImport(false), isPragmaOnce(false), DirInfo(SrcMgr::C_User),
407 SrcMgr::CharacteristicKind getFileDirFlavor(const FileEntry *File) {
408 return (SrcMgr::CharacteristicKind)getFileInfo(File).DirInfo;
422 getFileInfo(File).DirInfo = SrcMgr::C_System;
H A DPPCallbacks.h50 SrcMgr::CharacteristicKind FileType,
63 SrcMgr::CharacteristicKind FileType) {
333 SrcMgr::CharacteristicKind FileType,
341 SrcMgr::CharacteristicKind FileType) {
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/Basic/
H A DSourceManager.h69 namespace SrcMgr { namespace in namespace:clang
425 } // end SrcMgr namespace.
552 llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*> FileInfos;
584 std::vector<SrcMgr::ContentCache*> MemBufferInfos;
590 SmallVector<SrcMgr::SLocEntry, 0> LocalSLocEntryTable;
596 mutable SmallVector<SrcMgr::SLocEntry, 0> LoadedSLocEntryTable;
636 mutable SrcMgr::ContentCache *LastLineNoContentCache;
675 mutable SrcMgr::ContentCache *FakeContentCacheForRecovery;
738 SrcMgr::CharacteristicKind Kind = SrcMgr
737 createMainFileIDForMemBuffer(const llvm::MemoryBuffer *Buffer, SrcMgr::CharacteristicKind Kind = SrcMgr::C_User) argument
752 createMainFileID(const FileEntry *SourceFile, SrcMgr::CharacteristicKind Kind = SrcMgr::C_User) argument
796 createFileIDForMemBuffer(const 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(0) {}
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;
/freebsd-9.3-release/contrib/llvm/include/llvm/TableGen/
H A DError.h34 extern SourceMgr SrcMgr;
/freebsd-9.3-release/contrib/llvm/utils/TableGen/
H A DCTagsEmitter.cpp28 namespace llvm { extern SourceMgr SrcMgr; }
41 int BufferID = SrcMgr.FindBufferContainingLoc(Loc);
42 MemoryBuffer *CurMB = SrcMgr.getBufferInfo(BufferID).Buffer;
44 std::pair<unsigned, unsigned> LineAndColumn = SrcMgr.getLineAndColumn(Loc);
/freebsd-9.3-release/contrib/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp242 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, tool_output_file *Out) { argument
245 Lexer.setBuffer(SrcMgr.getMemoryBuffer(0));
253 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning,
321 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str,
323 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, Ctx,
373 SourceMgr SrcMgr; local
375 // Tell SrcMgr about this buffer, which is what the parser will pick up.
376 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
380 SrcMgr.setIncludeDirs(IncludeDirs);
391 MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &SrcMgr);
320 AssembleInput(const char *ProgName, const Target *TheTarget, SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, MCAsmInfo &MAI, MCSubtargetInfo &STI, MCInstrInfo &MCII) argument
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Rewrite/Frontend/
H A DInclusionRewriter.cpp36 SrcMgr::CharacteristicKind FileType;
53 bool Process(FileID FileId, SrcMgr::CharacteristicKind FileType);
59 SrcMgr::CharacteristicKind FileType,
63 SrcMgr::CharacteristicKind FileType);
74 SrcMgr::CharacteristicKind FileType,
108 SrcMgr::CharacteristicKind FileType,
124 if (FileType == SrcMgr::C_System)
128 else if (FileType == SrcMgr::C_ExternCSystem)
146 SrcMgr::CharacteristicKind NewFileType,
162 SrcMgr
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Frontend/
H A DDependencyFile.cpp43 SrcMgr::CharacteristicKind FileType);
57 SrcMgr::CharacteristicKind FileType,
92 SrcMgr::CharacteristicKind FileType) {
99 return FileType == SrcMgr::C_User;
104 SrcMgr::CharacteristicKind FileType,
H A DHeaderIncludeGen.cpp44 SrcMgr::CharacteristicKind FileType,
79 SrcMgr::CharacteristicKind NewFileType,
H A DInitHeaderSearch.cpp146 SrcMgr::CharacteristicKind Type;
148 Type = SrcMgr::C_User;
150 Type = SrcMgr::C_ExternCSystem;
152 Type = SrcMgr::C_System;
549 if (CurEntry.getDirCharacteristic() != SrcMgr::C_User) {
577 if (SearchList[FirstDir].getDirCharacteristic() == SrcMgr::C_User)
H A DPrintPreprocessedOutput.cpp92 SrcMgr::CharacteristicKind FileType;
109 FileType = SrcMgr::C_User;
128 SrcMgr::CharacteristicKind FileType,
207 if (FileType == SrcMgr::C_System)
209 else if (FileType == SrcMgr::C_ExternCSystem)
263 SrcMgr::CharacteristicKind NewFileType,
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Index/
H A DSimpleFormatContext.h56 return Sources.createFileID(Entry, SourceLocation(), SrcMgr::C_User);
/freebsd-9.3-release/contrib/llvm/tools/clang/utils/TableGen/
H A DClangCommentHTMLNamedCharacterReferenceEmitter.cpp63 SrcMgr.PrintMessage(Tag.getLoc().front(),
/freebsd-9.3-release/contrib/llvm/lib/MC/
H A DMCContext.cpp42 SrcMgr(mgr), MAI(mai), MRI(mri), MOFI(mofi),
61 if (SrcMgr && SrcMgr->getNumBuffers() > 0)
62 MainFileName = SrcMgr->getMemoryBuffer(0)->getBufferIdentifier();
415 if (!SrcMgr || Loc == SMLoc())
419 SrcMgr->PrintMessage(Loc, SourceMgr::DK_Error, Msg);
/freebsd-9.3-release/contrib/llvm/tools/clang/tools/driver/
H A Dcc1as_main.cpp282 SourceMgr SrcMgr; local
284 // Tell SrcMgr about this buffer, which is what the parser will pick up.
285 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
289 SrcMgr.setIncludeDirs(Opts.IncludePaths);
305 MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &SrcMgr);
367 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, Ctx,
/freebsd-9.3-release/contrib/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinterInlineAsm.cpp88 SourceMgr SrcMgr; local
100 SrcMgr.setDiagHandler(srcMgrDiagHandler, &DiagInfo);
110 // Tell SrcMgr about this buffer, it takes ownership of the buffer.
111 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
113 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr,

Completed in 317 milliseconds

123