| /freebsd-src/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | SourceManager.h | 282 /// Information about a FileID, basically just the logical file 346 /// Return true if this FileID has \#line directives in it. 349 /// Set the flag that indicates that this FileID has 480 /// identified by the FileID datatype. 572 /// The FileID's of the cached query. 575 FileID LQueryFID, RQueryFID; 584 FileID CommonFID; 595 InBeforeInTUCacheEntry(FileID L, FileID R) : LQueryFID(L), RQueryFID(R) { 608 /// specified offsets in the LHS/RHS FileID' in getCachedResult() [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 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() 38 inline unsigned AddFID(FIDMap &FIDs, SmallVectorImpl<FileID> &V, in AddFID() 40 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID() 44 inline unsigned GetFID(const FIDMap &FIDs, FileID FID) { in GetFID() 52 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-src/contrib/llvm-project/clang/lib/Basic/ |
| H A D | SourceManager.cpp | 211 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, unsigned LineNo, in AddLineNote() 248 const LineEntry *LineTableInfo::FindNearestLineEntry(FileID FID, in FindNearestLineEntry() 267 void LineTableInfo::AddEntry(FileID FID, in getLineTableFilenameID() 277 /// AddLineNote - Add a line note to the line table for the FileID and offset in AddLineNote() 284 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote() 344 MainFileID = FileID(); in clearIDTables() 349 LastLineNoFileIDQuery = FileID(); in clearIDTables() 351 LastFileIDLookup = FileID(); in clearIDTables() 356 // Use up FileID #0 as an invalid expansion. in isMainFile() 479 LoadedSLocEntryAllocBegin.push_back(FileID in getFakeBufferForRecovery() 1915 isInTheSameTranslationUnitImpl(const std::pair<FileID,unsigned> & LOffs,const std::pair<FileID,unsigned> & ROffs) const isInTheSameTranslationUnitImpl() argument 1942 MoveUpTranslationUnitIncludeHierarchy(std::pair<FileID,unsigned> & Loc,const SourceManager & SM) MoveUpTranslationUnitIncludeHierarchy() argument 2008 isInTheSameTranslationUnit(std::pair<FileID,unsigned> & LOffs,std::pair<FileID,unsigned> & ROffs) const isInTheSameTranslationUnit() argument [all...] |
| H A D | SourceMgrAdapter.cpp | 50 FileID FileID; in mapLocation() local 53 FileID = SrcMgr.getOrCreateFileID(*DefaultFile, SrcMgr::C_User); in mapLocation() 65 FileID = SrcMgr.createFileID(std::move(bufferCopy)); in mapLocation() 71 std::make_pair(&LLVMSrcMgr, BufferID), FileID)) in mapLocation()
|
| /freebsd-src/contrib/llvm-project/clang/include/clang/Rewrite/Core/ |
| H A D | HTMLRewrite.h | 62 void EscapeText(Rewriter& R, FileID FID, 72 void AddLineNumbers(Rewriter& R, FileID FID); 74 void AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID, 77 /// SyntaxHighlight - Relex the specified FileID and annotate the HTML with 79 void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP, 86 void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP,
|
| H A D | Rewriter.h | 35 std::map<FileID, RewriteBuffer> RewriteBuffers; 65 using buffer_iterator = std::map<FileID, RewriteBuffer>::iterator; 66 using const_buffer_iterator = std::map<FileID, RewriteBuffer>::const_iterator; 194 RewriteBuffer &getEditBuffer(FileID FID); 198 const RewriteBuffer *getRewriteBufferFor(FileID FID) const { in getRewriteBufferFor() 199 std::map<FileID, RewriteBuffer>::const_iterator I = in getRewriteBufferFor() 218 unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileID &FID) const;
|
| /freebsd-src/contrib/llvm-project/clang/lib/Rewrite/ |
| H A D | Rewriter.cpp | 146 FileID StartFileID, EndFileID; in getRangeSize() 155 std::map<FileID, RewriteBuffer>::const_iterator I = in getRangeSize() 185 FileID StartFileID, EndFileID; in getRewrittenText() 195 std::map<FileID, RewriteBuffer>::const_iterator I = in getRewrittenText() 229 FileID &FID) const { in getLocationOffsetAndFileID() 231 std::pair<FileID, unsigned> V = SourceMgr->getDecomposedLoc(Loc); in getLocationOffsetAndFileID() 237 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { in getEditBuffer() 238 std::map<FileID, RewriteBuffer>::iterator I = in getEditBuffer() 255 FileID FID; in InsertText() 295 FileID FID; in InsertTextAfterToken() [all …]
|
| H A D | HTMLRewrite.cpp | 39 FileID FID = SM.getFileID(B); in HighlightRange() 126 DenseMap<FileID, RawHighlightList> SyntaxHighlights; in EscapeText() 127 DenseMap<FileID, HighlightList> MacroHighlights; in EscapeText() 135 void html::EscapeText(Rewriter &R, FileID FID, in EscapeText() 255 void html::AddLineNumbers(Rewriter& R, FileID FID) { in AddLineNumbers() 302 void html::AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID, in AddHeaderFooterInternalBuiltinCSS() 469 /// SyntaxHighlight - Relex the specified FileID and annotate the HTML with in SyntaxHighlight() 474 Rewriter &R, FileID FID, const Preprocessor &PP, in SyntaxHighlight() 497 // FileID. in SyntaxHighlight() 563 void html::SyntaxHighlight(Rewriter &R, FileID FI in HighlightMacros() [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/ProfileData/Coverage/ |
| H A D | CoverageMappingWriter.cpp | 166 if (LHS.FileID != RHS.FileID) in write() 167 return LHS.FileID < RHS.FileID; in write() 183 for (const auto &FileID : VirtualFileMapping) in write() local 184 encodeULEB128(FileID, OS); in write() 201 if (I->FileID != CurrentFileID) { in write() 203 assert(I->FileID == (CurrentFileID + 1)); in write() 206 for (auto J = I + 1; J != E && I->FileID == J->FileID; in write() [all...] |
| H A D | CoverageMapping.cpp | 670 /// FileID pointed by ExpandedFileID is dedicated to the expansion, so in addBranch() 685 if (R.FileID == DecisionRegion->FileID && 690 return ExpandedFileIDs.contains(R.FileID); 1089 void insert(const FunctionRecord &Function, unsigned FileID) { in startSegment() 1091 while (I != E && I->FileID != FileID) in startSegment() 1394 static bool isExpansion(const CountedRegion &R, unsigned FileID) { in getInstantiationGroups() 1395 return R.Kind == CounterMappingRegion::ExpansionRegion && R.FileID == FileID; in getInstantiationGroups() 1040 insert(const FunctionRecord & Function,unsigned FileID) insert() argument 1339 isExpansion(const CountedRegion & R,unsigned FileID) isExpansion() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/ |
| H A D | CoverageMapping.h | 269 unsigned FileID = 0; 275 CounterMappingRegion(Counter Count, unsigned FileID, unsigned ExpandedFileID, 278 : Count(Count), FileID(FileID), ExpandedFileID(ExpandedFileID), 282 CounterMappingRegion(Counter Count, Counter FalseCount, unsigned FileID, in CounterMappingRegion() 288 FileID(FileID), ExpandedFileID(ExpandedFileID), LineStart(LineStart), in CounterMappingRegion() 293 unsigned FileID, unsigned LineStart, in CounterMappingRegion() 296 : MCDCParams(MCDCParams), FileID(FileID), LineStar in CounterMappingRegion() 274 unsigned FileID = 0; global() member 683 unsigned FileID; global() member [all...] |
| /freebsd-src/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; 166 /// tokens for each of the files can be obtained via spelledTokens(FileID). 293 llvm::ArrayRef<syntax::Token> spelledTokens(FileID FID) const; 307 std::vector<const syntax::Token *> macroExpansions(FileID FID) const; 340 /// FIXME: spelled tokens don't change across FileID that map to the same 345 /// The first expanded token produced for this FileID. 375 llvm::DenseMap<FileID, MarkedFile> Files; 405 std::vector<syntax::Token> tokenize(FileID FI [all...] |
| H A D | TokenBufferTokenManager.h | 54 std::pair<FileID, ArrayRef<Token>> 64 llvm::DenseMap<FileID, std::vector<Token>> ExtraTokens;
|
| /freebsd-src/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 | 144 using ParsedFilesMap = llvm::DenseMap<FileID, const FileEntry *>; 145 using UnparsedFilesMap = llvm::DenseMap<FileID, UnparsedFileStatus>; 174 void UpdateParsedFileStatus(SourceManager &SM, FileID FID, ParsedStatus PS);
|
| /freebsd-src/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-src/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 260 retrieveMacroLocation(SourceLocation Loc, FileID MacroFileID, in retrieveMacroLocation() 261 FileID CaretFileID, in retrieveMacroLocation() 262 const SmallVectorImpl<FileID> &CommonArgExpansions, in retrieveMacroLocation() 316 SmallVectorImpl<FileID> &IDs, in getMacroArgExpansionFileIDs() 333 SmallVectorImpl<FileID> &CommonArgExpansions) { in computeCommonMacroArgExpansionFileIDs() 334 SmallVector<FileID, 4> BeginArgExpansions; in computeCommonMacroArgExpansionFileIDs() 335 SmallVector<FileID, 4> EndArgExpansions; in computeCommonMacroArgExpansionFileIDs() 358 FileID CaretLocFileID = CaretLoc.getFileID(); in mapDiagnosticRanges() 369 FileID BeginFileID = SM->getFileID(Begin); in mapDiagnosticRanges() 370 FileID EndFileID = SM->getFileID(End); in mapDiagnosticRanges() [all …]
|
| H A D | SARIFDiagnostic.cpp | 71 FileID FID = Loc.getFileID(); in addLocationToResult() 81 FileID CaretFileID = Loc.getExpansionLoc().getFileID(); in addLocationToResult() 94 std::pair<FileID, unsigned> BInfo = SM.getDecomposedLoc(B); in addLocationToResult() 95 std::pair<FileID, unsigned> EInfo = SM.getDecomposedLoc(E); in addLocationToResult()
|
| /freebsd-src/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-src/contrib/llvm-project/clang/lib/AST/ |
| H A D | RawCommentList.cpp | 127 FileID BeginFileID; in RawComment() 154 FileID BeginFileID; in getRawTextSlow() 155 FileID EndFileID; in getRawTextSlow() 229 std::pair<FileID, unsigned> Loc1Info = SM.getDecomposedLoc(Loc1); in onlyWhitespaceBetween() 230 std::pair<FileID, unsigned> Loc2Info = SM.getDecomposedLoc(Loc2); in onlyWhitespaceBetween() 284 std::pair<FileID, unsigned> Loc = in addComment() 287 const FileID CommentFile = Loc.first; in addComment() 330 RawCommentList::getCommentsInFile(FileID File) const { in getCommentsInFile() 340 unsigned RawCommentList::getCommentBeginLine(RawComment *C, FileID File, in getCommentBeginLine()
|
| /freebsd-src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | HTMLDiagnostics.cpp | 96 unsigned ProcessControlFlowPiece(Rewriter &R, FileID BugFileID, 100 void HandlePiece(Rewriter &R, FileID BugFileID, const PathDiagnosticPiece &P, 104 void HighlightRange(Rewriter &R, FileID BugFileID, SourceRange Range, 118 FileID FID, FileEntryRef Entry, const char *declName); 121 void RewriteFile(Rewriter &R, const PathPieces &path, FileID FID); in getGenerationScheme() 128 void addArrowSVGs(Rewriter &R, FileID BugFileID, 336 FileID ReportFile = in ReportDiag() 383 std::vector<FileID> FileIDs; in GenerateHTML() 385 FileID FID = I->getLocation().asLocation().getExpansionLoc().getFileID(); in GenerateHTML() 440 FileID FI in GenerateHTML() [all...] |
| /freebsd-src/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | PreprocessorLexer.h | 40 const FileID FID; 79 PreprocessorLexer(Preprocessor *pp, FileID fid); 147 FileID getFileID() const { in getFileID()
|
| /freebsd-src/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;
|