Home
last modified time | relevance | path

Searched refs:FID (Results 1 – 25 of 114) sorted by relevance

12345

/external/clang/include/clang/Basic/
DSourceManager.h757 void setMainFileID(FileID FID) { in setMainFileID() argument
758 MainFileID = FID; in setMainFileID()
895 llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc,
898 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &MyInvalid);
910 llvm::MemoryBuffer *getBuffer(FileID FID, bool *Invalid = nullptr) const {
912 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &MyInvalid);
926 const FileEntry *getFileEntryForID(FileID FID) const { in getFileEntryForID() argument
928 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &MyInvalid); in getFileEntryForID()
952 StringRef getBufferData(FileID FID, bool *Invalid = nullptr) const;
956 unsigned getNumCreatedFIDsForFileID(FileID FID) const { in getNumCreatedFIDsForFileID() argument
[all …]
DPlistSupport.h23 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID() local
24 FIDMap::iterator I = FIDs.find(FID); in AddFID()
27 FIDs[FID] = V.size(); in AddFID()
28 V.push_back(FID); in AddFID()
33 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID() local
34 FIDMap::const_iterator I = FIDs.find(FID); in GetFID()
DSourceManagerInternals.h104 void AddLineNote(FileID FID, unsigned Offset,
106 void AddLineNote(FileID FID, unsigned Offset,
114 const LineEntry *FindNearestLineEntry(FileID FID, unsigned Offset);
123 void AddEntry(FileID FID, const std::vector<LineEntry> &Entries);
/external/clang/lib/Rewrite/
DRewriter.cpp213 FileID &FID) const { in getLocationOffsetAndFileID()
216 FID = V.first; in getLocationOffsetAndFileID()
223 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { in getEditBuffer() argument
225 RewriteBuffers.lower_bound(FID); in getEditBuffer()
226 if (I != RewriteBuffers.end() && I->first == FID) in getEditBuffer()
228 I = RewriteBuffers.insert(I, std::make_pair(FID, RewriteBuffer())); in getEditBuffer()
230 StringRef MB = SourceMgr->getBufferData(FID); in getEditBuffer()
241 FileID FID; in InsertText() local
242 unsigned StartOffs = getLocationOffsetAndFileID(Loc, FID); in InsertText()
246 StringRef MB = SourceMgr->getBufferData(FID); in InsertText()
[all …]
DHTMLRewrite.cpp37 FileID FID = SM.getFileID(B); in HighlightRange() local
38 assert(SM.getFileID(E) == FID && "B/E not in the same file!"); in HighlightRange()
47 const char *BufferStart = SM.getBufferData(FID, &Invalid).data(); in HighlightRange()
51 HighlightRange(R.getEditBuffer(FID), BOffset, EOffset, in HighlightRange()
106 void html::EscapeText(Rewriter &R, FileID FID, in EscapeText() argument
109 const llvm::MemoryBuffer *Buf = R.getSourceMgr().getBuffer(FID); in EscapeText()
115 RewriteBuffer &RB = R.getEditBuffer(FID); in EscapeText()
226 void html::AddLineNumbers(Rewriter& R, FileID FID) { in AddLineNumbers() argument
228 const llvm::MemoryBuffer *Buf = R.getSourceMgr().getBuffer(FID); in AddLineNumbers()
232 RewriteBuffer &RB = R.getEditBuffer(FID); in AddLineNumbers()
[all …]
DTokenRewriter.cpp21 TokenRewriter::TokenRewriter(FileID FID, SourceManager &SM, in TokenRewriter() argument
26 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); in TokenRewriter()
27 Lexer RawLex(FID, FromFile, SM, LangOpts); in TokenRewriter()
/external/clang/lib/Frontend/Rewrite/
DHTMLPrint.cpp67 FileID FID = R.getSourceMgr().getMainFileID(); in HandleTranslationUnit() local
68 const FileEntry* Entry = R.getSourceMgr().getFileEntryForID(FID); in HandleTranslationUnit()
76 Name = R.getSourceMgr().getBuffer(FID)->getBufferIdentifier(); in HandleTranslationUnit()
78 html::AddLineNumbers(R, FID); in HandleTranslationUnit()
79 html::AddHeaderFooterInternalBuiltinCSS(R, FID, Name); in HandleTranslationUnit()
85 if (SyntaxHighlight) html::SyntaxHighlight(R, FID, PP); in HandleTranslationUnit()
86 if (HighlightMacros) html::HighlightMacros(R, FID, PP); in HandleTranslationUnit()
87 html::EscapeText(R, FID, false, true); in HandleTranslationUnit()
90 const RewriteBuffer &RewriteBuf = R.getEditBuffer(FID); in HandleTranslationUnit()
/external/clang/include/clang/Edit/
DFileOffset.h20 FileID FID; variable
24 FileOffset(FileID fid, unsigned offs) : FID(fid), Offs(offs) { } in FileOffset()
26 bool isInvalid() const { return FID.isInvalid(); } in isInvalid()
28 FileID getFID() const { return FID; } in getFID()
38 return LHS.FID == RHS.FID && LHS.Offs == RHS.Offs;
44 return std::tie(LHS.FID, LHS.Offs) < std::tie(RHS.FID, RHS.Offs);
/external/clang/lib/Basic/
DSourceManager.cpp190 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, in AddLineNote() argument
192 std::vector<LineEntry> &Entries = LineEntries[FID]; in AddLineNote()
221 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, in AddLineNote() argument
227 std::vector<LineEntry> &Entries = LineEntries[FID]; in AddLineNote()
244 FindNearestLineEntry(FID, Entries.back().IncludeOffset)) in AddLineNote()
255 const LineEntry *LineTableInfo::FindNearestLineEntry(FileID FID, in FindNearestLineEntry() argument
257 const std::vector<LineEntry> &Entries = LineEntries[FID]; in FindNearestLineEntry()
274 void LineTableInfo::AddEntry(FileID FID, in AddEntry() argument
276 LineEntries[FID] = Entries; in AddEntry()
517 FileID SourceManager::getPreviousFileID(FileID FID) const { in getPreviousFileID()
[all …]
/external/clang/include/clang/Rewrite/Core/
DHTMLRewrite.h53 void EscapeText(Rewriter& R, FileID FID,
63 void AddLineNumbers(Rewriter& R, FileID FID);
65 void AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID,
70 void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP);
76 void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP);
DRewriter.h166 RewriteBuffer &getEditBuffer(FileID FID);
170 const RewriteBuffer *getRewriteBufferFor(FileID FID) const { in getRewriteBufferFor() argument
172 RewriteBuffers.find(FID); in getRewriteBufferFor()
190 unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileID &FID) const;
/external/clang/tools/libclang/
DCIndexHigh.cpp48 FileID FID; member
56 FindFileIdRefVisitData(CXTranslationUnit TU, FileID FID, in FindFileIdRefVisitData()
59 : TU(TU), FID(FID), SelectorIdIdx(selectorIdIdx), visitor(visitor) { in FindFileIdRefVisitData()
199 if (LocInfo.first != data->FID) in findFileIdRefVisit()
221 FileID FID = SM.translateFile(File); in findIdRefsInFile() local
226 FindFileIdRefVisitData data(TU, FID, Dcl, in findIdRefsInFile()
235 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID)); in findIdRefsInFile()
319 FileID FID = SM.translateFile(File); in findMacroRefsInFile() local
330 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID)); in findMacroRefsInFile()
391 FileID FID = SM.translateFile(File); in findIncludesInFile() local
[all …]
DCXSourceLocation.cpp333 FileID FID = LocInfo.first; in clang_getSpellingLocation() local
336 if (FID.isInvalid()) in clang_getSpellingLocation()
340 *file = const_cast<FileEntry *>(SM.getFileEntryForID(FID)); in clang_getSpellingLocation()
342 *line = SM.getLineNumber(FID, FileOffset); in clang_getSpellingLocation()
344 *column = SM.getColumnNumber(FID, FileOffset); in clang_getSpellingLocation()
369 FileID FID = LocInfo.first; in clang_getFileLocation() local
372 if (FID.isInvalid()) in clang_getFileLocation()
376 *file = const_cast<FileEntry *>(SM.getFileEntryForID(FID)); in clang_getFileLocation()
378 *line = SM.getLineNumber(FID, FileOffset); in clang_getFileLocation()
380 *column = SM.getColumnNumber(FID, FileOffset); in clang_getFileLocation()
DIndexing.cpp167 bool isParsed(SourceLocation Loc, FileID FID, const FileEntry *FE) { in isParsed() argument
168 PPRegion region = getRegion(Loc, FID, FE); in isParsed()
188 PPRegion getRegion(SourceLocation Loc, FileID FID, const FileEntry *FE) { in getRegion() argument
204 if (RegionFID != FID) { in getRegion()
318 FileID FID; in shouldSkipFunctionBody() local
320 std::tie(FID, Offset) = SM.getDecomposedLoc(Loc); in shouldSkipFunctionBody()
322 if (SM.getMainFileID() == FID) in shouldSkipFunctionBody()
324 const FileEntry *FE = SM.getFileEntryForID(FID); in shouldSkipFunctionBody()
328 return SKCtrl->isParsed(Loc, FID, FE); in shouldSkipFunctionBody()
/external/clang/lib/Index/
DIndexingContext.cpp72 FileID FID; in importedModule() local
74 std::tie(FID, Offset) = SM.getDecomposedLoc(Loc); in importedModule()
75 if (FID.isInvalid()) in importedModule()
79 const SrcMgr::SLocEntry &SEntry = SM.getSLocEntry(FID, &Invalid); in importedModule()
97 return DataConsumer.handleModuleOccurence(ImportD, Roles, FID, Offset); in importedModule()
249 FileID FID; in handleDeclOccurrence() local
251 std::tie(FID, Offset) = SM.getDecomposedLoc(Loc); in handleDeclOccurrence()
252 if (FID.isInvalid()) in handleDeclOccurrence()
256 const SrcMgr::SLocEntry &SEntry = SM.getSLocEntry(FID, &Invalid); in handleDeclOccurrence()
332 return DataConsumer.handleDeclOccurence(D, Roles, FinalRelations, FID, Offset, in handleDeclOccurrence()
DIndexingAction.cpp24 FileID FID, unsigned Offset, in handleDeclOccurence() argument
31 FileID FID, unsigned Offset) { in handleMacroOccurence() argument
37 FileID FID, unsigned Offset) { in handleModuleOccurence() argument
/external/clang/lib/Frontend/
DLogDiagnosticPrinter.cpp120 FileID FID = SM.getMainFileID(); in HandleDiagnostic() local
121 if (FID.isValid()) { in HandleDiagnostic()
122 const FileEntry *FE = SM.getFileEntryForID(FID); in HandleDiagnostic()
149 FileID FID = SM.getFileID(Info.getLocation()); in HandleDiagnostic() local
150 if (FID.isValid()) { in HandleDiagnostic()
151 const FileEntry *FE = SM.getFileEntryForID(FID); in HandleDiagnostic()
DVerifyDiagnosticConsumer.cpp129 FileID FID = SrcManager->getFileID(Loc); in HandleDiagnostic() local
131 const FileEntry *FE = SrcManager->getFileEntryForID(FID); in HandleDiagnostic()
132 if (FE && CurrentPreprocessor && SrcManager->isLoadedFileID(FID)) { in HandleDiagnostic()
140 UpdateParsedFileStatus(*SrcManager, FID, PS); in HandleDiagnostic()
579 static bool findDirectives(SourceManager &SM, FileID FID, in findDirectives() argument
582 if (FID.isInvalid()) in findDirectives()
586 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); in findDirectives()
587 Lexer RawLex(FID, FromFile, SM, LangOpts); in findDirectives()
775 FileID FID, in UpdateParsedFileStatus() argument
781 if (FID.isInvalid()) in UpdateParsedFileStatus()
[all …]
DTextDiagnostic.cpp779 FileID FID = SM.getFileID(Loc); in emitDiagnosticLoc() local
780 if (FID.isValid()) { in emitDiagnosticLoc()
781 const FileEntry* FE = SM.getFileEntryForID(FID); in emitDiagnosticLoc()
916 unsigned LineNo, FileID FID, in highlightRange() argument
927 if (StartLineNo > LineNo || SM.getFileID(Begin) != FID) in highlightRange()
931 if (EndLineNo < LineNo || SM.getFileID(End) != FID) in highlightRange()
1088 FileID FID = LocInfo.first; in emitSnippetAndCaret() local
1093 StringRef BufData = SM.getBufferData(FID, &Invalid); in emitSnippetAndCaret()
1100 unsigned LineNo = SM.getLineNumber(FID, FileOffset); in emitSnippetAndCaret()
1101 unsigned ColNo = SM.getColumnNumber(FID, FileOffset); in emitSnippetAndCaret()
[all …]
/external/clang/tools/c-index-test/
Dcore_main.cpp76 FileID FID, unsigned Offset, in handleDeclOccurence() argument
81 unsigned Line = SM.getLineNumber(FID, Offset); in handleDeclOccurence()
82 unsigned Col = SM.getColumnNumber(FID, Offset); in handleDeclOccurence()
112 FileID FID, unsigned Offset) override { in handleModuleOccurence() argument
116 unsigned Line = SM.getLineNumber(FID, Offset); in handleModuleOccurence()
117 unsigned Col = SM.getColumnNumber(FID, Offset); in handleModuleOccurence()
/external/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp128 FileID FID = in ReportDiag() local
130 assert(FID.isValid()); in ReportDiag()
161 HandlePiece(R, FID, **I, n, max); in ReportDiag()
166 html::EscapeText(R, FID); in ReportDiag()
167 html::AddLineNumbers(R, FID); in ReportDiag()
173 html::SyntaxHighlight(R, FID, PP); in ReportDiag()
174 html::HighlightMacros(R, FID, PP); in ReportDiag()
178 const FileEntry* Entry = SMgr.getFileEntryForID(FID); in ReportDiag()
224 R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), os.str()); in ReportDiag()
275 R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), os.str()); in ReportDiag()
[all …]
/external/clang/include/clang/Index/
DIndexDataConsumer.h42 FileID FID, unsigned Offset,
48 FileID FID, unsigned Offset);
53 FileID FID, unsigned Offset);
/external/clang/lib/Lex/
DPreprocessingRecord.cpp67 static bool isPreprocessedEntityIfInFileID(PreprocessedEntity *PPE, FileID FID, in isPreprocessedEntityIfInFileID() argument
69 assert(FID.isValid()); in isPreprocessedEntityIfInFileID()
77 return SM.isInFileID(SM.getFileLoc(Loc), FID); in isPreprocessedEntityIfInFileID()
87 bool PreprocessingRecord::isEntityInFileID(iterator PPEI, FileID FID) { in isEntityInFileID() argument
88 if (FID.isInvalid()) in isEntityInFileID()
100 return isPreprocessedEntityIfInFileID(PPE, FID, SourceMgr); in isEntityInFileID()
105 ExternalSource->isPreprocessedEntityInFileID(LoadedIndex, FID); in isEntityInFileID()
113 FID, SourceMgr); in isEntityInFileID()
121 FID, SourceMgr); in isEntityInFileID()
DPPLexerChange.cpp72 bool Preprocessor::EnterSourceFile(FileID FID, const DirectoryLookup *CurDir, in EnterSourceFile() argument
81 if (PTHLexer *PL = PTH->CreateLexer(FID)) { in EnterSourceFile()
90 getSourceManager().getBuffer(FID, Loc, &Invalid); in EnterSourceFile()
92 SourceLocation FileStart = SourceMgr.getLocForStartOfFile(FID); in EnterSourceFile()
99 SourceMgr.getFileEntryForID(FID) == CodeCompletionFile) { in EnterSourceFile()
100 CodeCompletionFileLoc = SourceMgr.getLocForStartOfFile(FID); in EnterSourceFile()
105 EnterSourceFileWithLexer(new Lexer(FID, InputFile, *this), CurDir); in EnterSourceFile()
152 FileID FID = CurPPLexer->getFileID(); in EnterSourceFileWithPTH() local
153 SourceLocation EnterLoc = SourceMgr.getLocForStartOfFile(FID); in EnterSourceFileWithPTH()
DScratchBuffer.cpp72 FileID FID = SourceMgr.createFileID(std::move(OwnBuf)); in AllocScratchBuffer() local
73 BufferStartLoc = SourceMgr.getLocForStartOfFile(FID); in AllocScratchBuffer()

12345