| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | SourceManager.h | 575 FileID LQueryFID, RQueryFID; 584 FileID CommonFID; 595 InBeforeInTUCacheEntry(FileID L, FileID R) : LQueryFID(L), RQueryFID(R) { in InBeforeInTUCacheEntry() 628 void setQueryFIDs(FileID LHS, FileID RHS) { in setQueryFIDs() 633 CommonFID = FileID(); in setQueryFIDs() 637 void setCommonLoc(FileID commonFID, unsigned lCommonOffset, in setCommonLoc() 734 SmallVector<FileID, 0> LoadedSLocEntryAllocBegin; 771 mutable FileID LastFileIDLookup; 782 mutable FileID LastLineNoFileIDQuery; 788 FileID MainFileID; [all …]
|
| H A D | SourceLocation.h | 39 class FileID { 48 bool operator==(const FileID &RHS) const { return ID == RHS.ID; } 49 bool operator<(const FileID &RHS) const { return ID < RHS.ID; } 50 bool operator<=(const FileID &RHS) const { return ID <= RHS.ID; } 51 bool operator!=(const FileID &RHS) const { return !(*this == RHS); } 52 bool operator>(const FileID &RHS) const { return RHS < *this; } 53 bool operator>=(const FileID &RHS) const { return RHS <= *this; } 55 static FileID getSentinel() { return get(-1); } in getSentinel() 64 static FileID get(int V) { in get() 65 FileID F; in get() [all …]
|
| H A D | PlistSupport.h | 25 using FIDMap = llvm::DenseMap<FileID, unsigned>; 27 inline unsigned AddFID(FIDMap &FIDs, SmallVectorImpl<FileID> &V, in AddFID() 28 FileID FID) { in AddFID() 35 inline unsigned AddFID(FIDMap &FIDs, SmallVectorImpl<FileID> &V, in AddFID() 37 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID() 41 inline unsigned GetFID(const FIDMap &FIDs, FileID FID) { in GetFID() 49 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID()
|
| H A D | SourceManagerInternals.h | 92 std::map<FileID, std::vector<LineEntry>> LineEntries; 110 void AddLineNote(FileID FID, unsigned Offset, 118 const LineEntry *FindNearestLineEntry(FileID FID, unsigned Offset); 121 using iterator = std::map<FileID, std::vector<LineEntry>>::iterator; 128 void AddEntry(FileID FID, const std::vector<LineEntry> &Entries);
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | SourceManager.cpp | 197 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, unsigned LineNo, in AddLineNote() 234 const LineEntry *LineTableInfo::FindNearestLineEntry(FileID FID, in FindNearestLineEntry() 253 void LineTableInfo::AddEntry(FileID FID, in AddEntry() 330 MainFileID = FileID(); in clearIDTables() 336 LastLineNoFileIDQuery = FileID(); in clearIDTables() 338 LastFileIDLookup = FileID(); in clearIDTables() 471 LoadedSLocEntryAllocBegin.push_back(FileID::get(BaseID)); in AllocateLoadedSLocEntries() 497 FileID SourceManager::getPreviousFileID(FileID FID) const { in getPreviousFileID() 499 return FileID(); in getPreviousFileID() 503 return FileID(); in getPreviousFileID() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Rewrite/ |
| H A D | Rewriter.cpp | 51 FileID StartFileID, EndFileID; in getRangeSize() 60 std::map<FileID, RewriteBuffer>::const_iterator I = in getRangeSize() 90 FileID StartFileID, EndFileID; in getRewrittenText() 100 std::map<FileID, RewriteBuffer>::const_iterator I = in getRewrittenText() 134 FileID &FID) const { in getLocationOffsetAndFileID() 142 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { in getEditBuffer() 143 std::map<FileID, RewriteBuffer>::iterator I = in getEditBuffer() 160 FileID FID; in InsertText() 200 FileID FID; in InsertTextAfterToken() 213 FileID FID; in RemoveText() [all …]
|
| H A D | HTMLRewrite.cpp | 38 FileID FID = SM.getFileID(B); in HighlightRange() 125 DenseMap<FileID, RawHighlightList> SyntaxHighlights; 126 DenseMap<FileID, HighlightList> MacroHighlights; 134 void html::EscapeText(Rewriter &R, FileID FID, in EscapeText() 254 void html::AddLineNumbers(Rewriter& R, FileID FID) { in AddLineNumbers() 301 void html::AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID, in AddHeaderFooterInternalBuiltinCSS() 473 Rewriter &R, FileID FID, const Preprocessor &PP, in SyntaxHighlightImpl() 562 void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP, in SyntaxHighlight() 594 Rewriter &R, FileID FID, const Preprocessor &PP, in HighlightMacrosImpl() 739 void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP, in HighlightMacros()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Core/ |
| H A D | HTMLRewrite.h | 65 void EscapeText(Rewriter& R, FileID FID, 75 void AddLineNumbers(Rewriter& R, FileID FID); 77 void AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID, 82 void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP, 89 void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP,
|
| H A D | Rewriter.h | 35 std::map<FileID, llvm::RewriteBuffer> RewriteBuffers; 65 using buffer_iterator = std::map<FileID, llvm::RewriteBuffer>::iterator; 67 std::map<FileID, llvm::RewriteBuffer>::const_iterator; 195 llvm::RewriteBuffer &getEditBuffer(FileID FID); 199 const llvm::RewriteBuffer *getRewriteBufferFor(FileID FID) const { in getRewriteBufferFor() 200 std::map<FileID, llvm::RewriteBuffer>::const_iterator I = in getRewriteBufferFor() 219 unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileID &FID) const;
|
| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/Coverage/ |
| H A D | CoverageMappingWriter.cpp | 165 if (LHS.FileID != RHS.FileID) in write() 166 return LHS.FileID < RHS.FileID; in write() 182 for (const auto &FileID : VirtualFileMapping) in write() local 183 encodeULEB128(FileID, OS); in write() 200 if (I->FileID != CurrentFileID) { in write() 202 assert(I->FileID == (CurrentFileID + 1)); in write() 205 for (auto J = I + 1; J != E && I->FileID == J->FileID; ++J) in write() 210 CurrentFileID = I->FileID; in write()
|
| H A D | CoverageMapping.cpp | 711 if (R.FileID == DecisionRegion->FileID && in dominates() 716 return ExpandedFileIDs.contains(R.FileID); in dominates() 1143 void insert(const FunctionRecord &Function, unsigned FileID) { in insert() argument 1145 while (I != E && I->FileID != FileID) in insert() 1442 static bool isExpansion(const CountedRegion &R, unsigned FileID) { in isExpansion() argument 1443 return R.Kind == CounterMappingRegion::ExpansionRegion && R.FileID == FileID; in isExpansion() 1460 if (FileIDs.test(CR.FileID)) { in getCoverageForFile() 1467 if (FileIDs.test(CR.FileID)) in getCoverageForFile() 1471 if (FileIDs.test(MR.getDecisionRegion().FileID)) in getCoverageForFile() 1517 if (CR.FileID == *MainFileID) { in getCoverageForFunction() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Tooling/Syntax/ |
| H A D | Tokens.h | 52 FileRange(FileID File, unsigned BeginOffset, unsigned EndOffset); 60 FileID file() const { return File; } in file() 92 FileID File; 293 llvm::ArrayRef<syntax::Token> spelledTokens(FileID FID) const; 307 std::vector<const syntax::Token *> macroExpansions(FileID FID) const; 375 llvm::DenseMap<FileID, MarkedFile> Files; 405 std::vector<syntax::Token> tokenize(FileID FID, const SourceManager &SM,
|
| H A D | TokenBufferTokenManager.h | 54 std::pair<FileID, ArrayRef<Token>> 64 llvm::DenseMap<FileID, std::vector<Token>> ExtraTokens;
|
| /freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
| H A D | SerializedDiagnosticReader.h | 47 unsigned FileID; member 52 Location(unsigned FileID, unsigned Line, unsigned Col, unsigned Offset) in Location() 53 : FileID(FileID), Line(Line), Col(Col), Offset(Offset) {} in Location()
|
| H A D | VerifyDiagnosticConsumer.h | 152 using ParsedFilesMap = llvm::DenseMap<FileID, const FileEntry *>; 153 using UnparsedFilesMap = llvm::DenseMap<FileID, UnparsedFileStatus>; 182 void UpdateParsedFileStatus(SourceManager &SM, FileID FID, ParsedStatus PS);
|
| /freebsd/contrib/llvm-project/clang/lib/Index/ |
| H A D | FileIndexRecord.h | 28 FileID FID; 34 FileIndexRecord(FileID FID, bool IsSystem) : FID(FID), IsSystem(IsSystem) {} in FileIndexRecord() 38 FileID getFileID() const { return FID; } in getFileID()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/ |
| H A D | CoverageMapping.h | 280 unsigned FileID = 0; member 290 CounterMappingRegion(Counter Count, unsigned FileID, unsigned ExpandedFileID, in CounterMappingRegion() 293 : Count(Count), FileID(FileID), ExpandedFileID(ExpandedFileID), in CounterMappingRegion() 297 CounterMappingRegion(Counter Count, Counter FalseCount, unsigned FileID, 303 FileID(FileID), ExpandedFileID(ExpandedFileID), LineStart(LineStart), in Count() 308 unsigned FileID, unsigned LineStart, in CounterMappingRegion() 311 : MCDCParams(MCDCParams), FileID(FileID), LineStart(LineStart), in CounterMappingRegion() 316 makeRegion(Counter Count, unsigned FileID, unsigned LineStart, in makeRegion() 318 return CounterMappingRegion(Count, FileID, 0, LineStart, ColumnStart, in makeRegion() 323 makeExpansion(unsigned FileID, unsigned ExpandedFileID, unsigned LineStart, in makeExpansion() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 257 retrieveMacroLocation(SourceLocation Loc, FileID MacroFileID, in retrieveMacroLocation() 258 FileID CaretFileID, in retrieveMacroLocation() 259 const SmallVectorImpl<FileID> &CommonArgExpansions, in retrieveMacroLocation() 312 SmallVectorImpl<FileID> &IDs, in getMacroArgExpansionFileIDs() 329 SmallVectorImpl<FileID> &CommonArgExpansions) { in computeCommonMacroArgExpansionFileIDs() 330 SmallVector<FileID, 4> BeginArgExpansions; in computeCommonMacroArgExpansionFileIDs() 331 SmallVector<FileID, 4> EndArgExpansions; in computeCommonMacroArgExpansionFileIDs() 354 FileID CaretLocFileID = CaretLoc.getFileID(); in mapDiagnosticRanges() 365 FileID BeginFileID = SM->getFileID(Begin); in mapDiagnosticRanges() 366 FileID EndFileID = SM->getFileID(End); in mapDiagnosticRanges() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | ModuleMap.h | 244 FileID ModuleMapFID; 259 llvm::DenseMap<const Module *, FileID> InferredModuleAllowedBy; 626 FileID getContainingModuleMapFileID(const Module *Module) const; 638 FileID getModuleMapFileIDForUniquing(const Module *M) const; 641 void setInferredModuleAllowedBy(Module *M, FileID ModMapFID); 713 DirectoryEntryRef Dir, FileID ID = FileID(), 738 DirectoryEntryRef HomeDir, FileID ID = FileID(),
|
| /freebsd/contrib/llvm-project/clang/include/clang/Edit/ |
| H A D | FileOffset.h | 19 FileID FID; 24 FileOffset(FileID fid, unsigned offs) : FID(fid), Offs(offs) {} in FileOffset() 28 FileID getFID() const { return FID; } in getFID()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | HTMLDiagnostics.cpp | 92 unsigned ProcessControlFlowPiece(Rewriter &R, FileID BugFileID, 96 void HandlePiece(Rewriter &R, FileID BugFileID, const PathDiagnosticPiece &P, 100 void HighlightRange(Rewriter &R, FileID BugFileID, SourceRange Range, 114 FileID FID, FileEntryRef Entry, const char *declName); 117 void RewriteFile(Rewriter &R, const PathPieces &path, FileID FID); 124 void addArrowSVGs(Rewriter &R, FileID BugFileID, 334 FileID ReportFile = in ReportDiag() 381 std::vector<FileID> FileIDs; in GenerateHTML() 383 FileID FID = I->getLocation().asLocation().getExpansionLoc().getFileID(); in GenerateHTML() 438 FileID FID = in GenerateHTML() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | RawCommentList.cpp | 125 FileID BeginFileID; in RawComment() 152 FileID BeginFileID; in getRawTextSlow() 153 FileID EndFileID; in getRawTextSlow() 284 const FileID CommentFile = Loc.first; in addComment() 327 RawCommentList::getCommentsInFile(FileID File) const { in getCommentsInFile() 337 unsigned RawCommentList::getCommentBeginLine(RawComment *C, FileID File, in getCommentBeginLine()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | RawCommentList.h | 221 const std::map<unsigned, RawComment *> *getCommentsInFile(FileID File) const; 225 unsigned getCommentBeginLine(RawComment *C, FileID File, 232 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> OrderedComments;
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 66 FileID TargetFile, in spelledForExpandedSlow() 161 FileID File; in range() 182 FileRange::FileRange(FileID File, unsigned BeginOffset, unsigned EndOffset) in FileRange() 378 llvm::ArrayRef<syntax::Token> TokenBuffer::spelledTokens(FileID FID) const { in spelledTokens() 418 FileID FID = SourceMgr->getFileID(FirstSpelled->location()); in spelledForExpanded() 559 TokenBuffer::macroExpansions(FileID FID) const { in macroExpansions() 606 std::vector<syntax::Token> syntax::tokenize(FileID FID, const SourceManager &SM, in tokenize() 761 void discard(std::optional<FileID> Drain = std::nullopt) { in discard() 766 FileID File = SM.getFileID(Target); in discard() 812 FileID File = SM.getFileID(Expansion); in advance() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/ |
| H A D | FixItRewriter.h | 96 bool IsModified(FileID ID) const { in IsModified() 109 bool WriteFixedFile(FileID ID, raw_ostream &OS);
|