Home
last modified time | relevance | path

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

123

/freebsd-9-stable/contrib/llvm/tools/clang/lib/Basic/
DSourceLocation.cpp81 return SrcMgr->getFileID(*this); in getFileID()
87 return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr); in getExpansionLoc()
92 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr); in getSpellingLoc()
97 return SrcMgr->getExpansionLineNumber(*this, Invalid); in getExpansionLineNumber()
102 return SrcMgr->getExpansionColumnNumber(*this, Invalid); in getExpansionColumnNumber()
107 return SrcMgr->getSpellingLineNumber(*this, Invalid); in getSpellingLineNumber()
112 return SrcMgr->getSpellingColumnNumber(*this, Invalid); in getSpellingColumnNumber()
117 return SrcMgr->isInSystemHeader(*this); in isInSystemHeader()
122 return SrcMgr->isBeforeInTranslationUnit(*this, Loc); in isBeforeInTranslationUnitThan()
126 SourceLocation::dump(*SrcMgr); in dump()
[all …]
DSourceManager.cpp32 using namespace SrcMgr;
204 SrcMgr::CharacteristicKind Kind = SrcMgr::C_User; in AddLineNote()
231 SrcMgr::CharacteristicKind FileKind) { in AddLineNote()
307 const SrcMgr::FileInfo &FileInfo = Entry.getFile(); in AddLineNote()
310 const_cast<SrcMgr::FileInfo&>(FileInfo).setHasLineDirectives(); in AddLineNote()
337 const SrcMgr::FileInfo &FileInfo = Entry.getFile(); in AddLineNote()
340 const_cast<SrcMgr::FileInfo&>(FileInfo).setHasLineDirectives(); in AddLineNote()
345 SrcMgr::CharacteristicKind FileKind; in AddLineNote()
347 FileKind = SrcMgr::C_ExternCSystem; in AddLineNote()
349 FileKind = SrcMgr::C_System; in AddLineNote()
[all …]
/freebsd-9-stable/contrib/llvm/tools/clang/include/clang/Basic/
DSourceManager.h69 namespace SrcMgr {
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::C_User) {
753 SrcMgr::CharacteristicKind Kind = SrcMgr::C_User) {
783 SrcMgr::CharacteristicKind FileCharacter,
[all …]
DSourceLocation.h268 const SourceManager *SrcMgr; variable
271 explicit FullSourceLoc() : SrcMgr(0) {} in FullSourceLoc()
274 : SourceLocation(Loc), SrcMgr(&SM) {} in FullSourceLoc()
278 assert(SrcMgr && "SourceManager is NULL."); in getManager()
279 return *SrcMgr; in getManager()
319 assert(SrcMgr == Loc.SrcMgr && "Loc comes from another SourceManager!"); in isBeforeInTranslationUnitThan()
339 LHS.SrcMgr == RHS.SrcMgr;
DSourceManagerInternals.h41 SrcMgr::CharacteristicKind FileKind;
50 SrcMgr::CharacteristicKind FileKind, in get()
113 unsigned EntryExit, SrcMgr::CharacteristicKind FileKind);
/freebsd-9-stable/contrib/llvm/lib/TableGen/
DError.cpp22 SourceMgr SrcMgr; variable
35 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); in PrintMessage()
37 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, in PrintMessage()
46 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); in PrintWarning()
58 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); in PrintError()
DTGLexer.cpp29 TGLexer::TGLexer(SourceMgr &SM) : SrcMgr(SM) { in TGLexer()
31 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer); in TGLexer()
60 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in getNextChar()
62 CurBuffer = SrcMgr.FindBufferContainingLoc(ParentIncludeLoc); in getNextChar()
63 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer); 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); in LexInclude()
DMain.cpp94 SrcMgr.AddNewSourceBuffer(F, SMLoc()); in TableGenMain()
98 SrcMgr.setIncludeDirs(IncludeDirs); in TableGenMain()
100 TGParser Parser(SrcMgr, Records); in TableGenMain()
DTGLexer.h63 SourceMgr &SrcMgr; variable
85 TGLexer(SourceMgr &SrcMgr);
/freebsd-9-stable/contrib/llvm/tools/clang/include/clang/Lex/
DDirectoryLookup.h68 DirectoryLookup(const DirectoryEntry *dir, SrcMgr::CharacteristicKind DT, in DirectoryLookup()
78 DirectoryLookup(const HeaderMap *map, SrcMgr::CharacteristicKind DT, in DirectoryLookup()
129 SrcMgr::CharacteristicKind getDirCharacteristic() const { in getDirCharacteristic()
130 return (SrcMgr::CharacteristicKind)DirCharacteristic; in getDirCharacteristic()
135 return getDirCharacteristic() != SrcMgr::C_User; in isSystemHeaderDirectory()
DHeaderSearch.h102 : isImport(false), isPragmaOnce(false), DirInfo(SrcMgr::C_User), in HeaderFileInfo()
407 SrcMgr::CharacteristicKind getFileDirFlavor(const FileEntry *File) { in getFileDirFlavor()
408 return (SrcMgr::CharacteristicKind)getFileInfo(File).DirInfo; in getFileDirFlavor()
422 getFileInfo(File).DirInfo = SrcMgr::C_System; in MarkFileSystemHeader()
DPPCallbacks.h50 SrcMgr::CharacteristicKind FileType,
63 SrcMgr::CharacteristicKind FileType) { in FileSkipped()
333 SrcMgr::CharacteristicKind FileType, in FileChanged()
341 SrcMgr::CharacteristicKind FileType) { in FileSkipped()
/freebsd-9-stable/contrib/llvm/tools/clang/lib/Rewrite/Frontend/
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, in WriteLineInfo()
124 if (FileType == SrcMgr::C_System) in WriteLineInfo()
128 else if (FileType == SrcMgr::C_ExternCSystem) in WriteLineInfo()
146 SrcMgr::CharacteristicKind NewFileType, in FileChanged()
162 SrcMgr::CharacteristicKind /*FileType*/) { in FileSkipped()
[all …]
/freebsd-9-stable/contrib/llvm/tools/llvm-mc/
Dllvm-mc.cpp242 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, tool_output_file *Out) { in AsLexInput() argument
245 Lexer.setBuffer(SrcMgr.getMemoryBuffer(0)); in AsLexInput()
253 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning, in AsLexInput()
321 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, in AssembleInput() argument
323 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, Ctx, in AssembleInput()
373 SourceMgr SrcMgr; in main() local
376 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc()); in main()
380 SrcMgr.setIncludeDirs(IncludeDirs); in main()
391 MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &SrcMgr); in main()
459 Res = AsLexInput(SrcMgr, *MAI, Out.get()); in main()
[all …]
/freebsd-9-stable/contrib/llvm/utils/TableGen/
DCTagsEmitter.cpp28 namespace llvm { extern SourceMgr SrcMgr; }
41 int BufferID = SrcMgr.FindBufferContainingLoc(Loc); in emit()
42 MemoryBuffer *CurMB = SrcMgr.getBufferInfo(BufferID).Buffer; in emit()
44 std::pair<unsigned, unsigned> LineAndColumn = SrcMgr.getLineAndColumn(Loc); in emit()
/freebsd-9-stable/contrib/llvm/tools/clang/lib/Frontend/
DDependencyFile.cpp43 SrcMgr::CharacteristicKind FileType);
57 SrcMgr::CharacteristicKind FileType,
92 SrcMgr::CharacteristicKind FileType) { in FileMatchesDepCriteria()
99 return FileType == SrcMgr::C_User; in FileMatchesDepCriteria()
104 SrcMgr::CharacteristicKind FileType, in FileChanged()
DPrintPreprocessedOutput.cpp92 SrcMgr::CharacteristicKind FileType;
109 FileType = SrcMgr::C_User; in PrintPPOutputPPCallbacks()
128 SrcMgr::CharacteristicKind FileType,
207 if (FileType == SrcMgr::C_System) in WriteLineInfo()
209 else if (FileType == SrcMgr::C_ExternCSystem) in WriteLineInfo()
263 SrcMgr::CharacteristicKind NewFileType, in FileChanged()
DInitHeaderSearch.cpp146 SrcMgr::CharacteristicKind Type; in AddUnmappedPath()
148 Type = SrcMgr::C_User; in AddUnmappedPath()
150 Type = SrcMgr::C_ExternCSystem; in AddUnmappedPath()
152 Type = SrcMgr::C_System; in AddUnmappedPath()
549 if (CurEntry.getDirCharacteristic() != SrcMgr::C_User) { in RemoveDuplicates()
577 if (SearchList[FirstDir].getDirCharacteristic() == SrcMgr::C_User) in RemoveDuplicates()
DHeaderIncludeGen.cpp44 SrcMgr::CharacteristicKind FileType,
79 SrcMgr::CharacteristicKind NewFileType, in FileChanged()
DCacheTokens.cpp473 const SrcMgr::ContentCache &C = *I->second; in GeneratePTH()
483 FileID FID = SM.createFileID(FE, SourceLocation(), SrcMgr::C_User); in GeneratePTH()
540 const SourceManager &SrcMgr = PP.getSourceManager(); in CacheTokens() local
541 const FileEntry *MainFile = SrcMgr.getFileEntryForID(SrcMgr.getMainFileID()); in CacheTokens()
/freebsd-9-stable/contrib/llvm/lib/MC/
DMCContext.cpp42 SrcMgr(mgr), MAI(mai), MRI(mri), MOFI(mofi), in MCContext()
61 if (SrcMgr && SrcMgr->getNumBuffers() > 0) in MCContext()
62 MainFileName = SrcMgr->getMemoryBuffer(0)->getBufferIdentifier(); in MCContext()
415 if (!SrcMgr || Loc == SMLoc()) in FatalError()
419 SrcMgr->PrintMessage(Loc, SourceMgr::DK_Error, Msg); in FatalError()
/freebsd-9-stable/contrib/llvm/tools/clang/tools/driver/
Dcc1as_main.cpp282 SourceMgr SrcMgr; in ExecuteAssembler() local
285 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc()); in ExecuteAssembler()
289 SrcMgr.setIncludeDirs(Opts.IncludePaths); in ExecuteAssembler()
305 MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &SrcMgr); in ExecuteAssembler()
367 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, Ctx, in ExecuteAssembler()
/freebsd-9-stable/contrib/llvm/lib/MC/MCParser/
DAsmParser.cpp129 SourceMgr &SrcMgr; member in __anona135d2a90111::AsmParser
199 virtual SourceMgr &getSourceManager() { return SrcMgr; } in getSourceManager()
300 SrcMgr.PrintMessage(Loc, Kind, Msg, Ranges); in printMessage()
482 : Lexer(_MAI), Ctx(_Ctx), Out(_Out), MAI(_MAI), SrcMgr(_SM), in AsmParser()
487 SavedDiagHandler = SrcMgr.getDiagHandler(); in AsmParser()
488 SavedDiagContext = SrcMgr.getDiagContext(); in AsmParser()
490 SrcMgr.setDiagHandler(DiagHandler, this); in AsmParser()
491 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)); in AsmParser()
551 int NewBuf = SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in enterIncludeFile()
557 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)); in enterIncludeFile()
[all …]
/freebsd-9-stable/contrib/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp88 SourceMgr SrcMgr; in EmitInlineAsm() local
100 SrcMgr.setDiagHandler(srcMgrDiagHandler, &DiagInfo); in EmitInlineAsm()
111 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc()); in EmitInlineAsm()
113 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, in EmitInlineAsm()
/freebsd-9-stable/contrib/llvm/tools/clang/lib/Lex/
DPPLexerChange.cpp125 SrcMgr::CharacteristicKind FileType = in EnterSourceFileWithLexer()
151 SrcMgr::CharacteristicKind FileType = in EnterSourceFileWithPTH()
354 SrcMgr::CharacteristicKind FileType = in HandleEndOfFile()
465 const SrcMgr::SLocEntry &Entry = SourceMgr.getLocalSLocEntry(I); in HandleEndOfFile()

123