Searched refs:FileID (Results 1 - 25 of 144) sorted by relevance

123456

/freebsd-11-stable/contrib/llvm-project/clang/lib/Index/
H A DFileIndexRecord.h28 FileID FID;
33 FileIndexRecord(FileID FID, bool IsSystem) : FID(FID), IsSystem(IsSystem) {}
39 FileID getFileID() const { return FID; }
H A DSimpleFormatContext.h45 FileID createInMemoryFile(StringRef Name, StringRef Content) {
53 std::string getRewrittenText(FileID ID) {
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Rewrite/Core/
H A DHTMLRewrite.h53 void EscapeText(Rewriter& R, FileID FID,
63 void AddLineNumbers(Rewriter& R, FileID FID);
65 void AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID,
68 /// SyntaxHighlight - Relex the specified FileID and annotate the HTML with
70 void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP);
76 void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP);
H A DRewriter.h35 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;
193 /// FileID's buffer.
194 RewriteBuffer &getEditBuffer(FileID FID);
196 /// getRewriteBufferFor - Return the rewrite buffer for the specified FileID.
198 const RewriteBuffer *getRewriteBufferFor(FileID FID) const {
199 std::map<FileID, RewriteBuffer>::const_iterator I =
218 unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileID &FID) const;
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h38 class FileID { class in namespace:clang
47 bool operator==(const FileID &RHS) const { return ID == RHS.ID; }
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 !(*this == RHS); }
51 bool operator>(const FileID &RHS) const { return RHS < *this; }
52 bool operator>=(const FileID &RHS) const { return RHS <= *this; }
54 static FileID getSentinel() { return get(-1); }
62 static FileID get(int V) {
63 FileID
[all...]
H A DPlistSupport.h25 using FIDMap = llvm::DenseMap<FileID, unsigned>;
27 inline unsigned AddFID(FIDMap &FIDs, SmallVectorImpl<FileID> &V,
28 FileID FID) {
38 inline unsigned AddFID(FIDMap &FIDs, SmallVectorImpl<FileID> &V,
40 FileID FID = SM.getFileID(SM.getExpansionLoc(L));
44 inline unsigned GetFID(const FIDMap &FIDs, FileID FID) {
52 FileID FID = SM.getFileID(SM.getExpansionLoc(L));
H A DSourceManagerInternals.h92 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);
H A DSourceManager.h240 /// Information about a FileID, basically just the logical file
303 /// Return true if this FileID has \#line directives in it.
306 /// Set the flag that indicates that this FileID has
438 /// identified by the FileID datatype.
509 /// The FileID's of the cached query.
512 FileID LQueryFID, RQueryFID;
521 FileID CommonFID;
535 bool isCacheValid(FileID LHS, FileID RHS) const {
540 /// specified offsets in the LHS/RHS FileID'
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp243 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, unsigned LineNo,
278 const LineEntry *LineTableInfo::FindNearestLineEntry(FileID FID,
297 void LineTableInfo::AddEntry(FileID FID,
307 /// AddLineNote - Add a line note to the line table for the FileID and offset
314 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc);
375 MainFileID = FileID();
379 LastLineNoFileIDQuery = FileID();
381 LastFileIDLookup = FileID();
386 // Use up FileID #0 as an invalid expansion.
522 /// Returns the previous in-order FileID o
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessorLexer.cpp24 PreprocessorLexer::PreprocessorLexer(Preprocessor *pp, FileID fid)
48 /// getFileEntry - Return the FileEntry corresponding to this FileID. Like
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Frontend/
H A DSerializedDiagnosticReader.h47 unsigned FileID; member in struct:clang::serialized_diags::Location
52 Location(unsigned FileID, unsigned Line, unsigned Col, unsigned Offset) argument
53 : FileID(FileID), Line(Line), Col(Col), Offset(Offset) {}
H A DVerifyDiagnosticConsumer.h288 using ParsedFilesMap = llvm::DenseMap<FileID, const FileEntry *>;
289 using UnparsedFilesMap = llvm::DenseMap<FileID, UnparsedFileStatus>;
318 void UpdateParsedFileStatus(SourceManager &SM, FileID FID, ParsedStatus PS);
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Edit/
H A DFileOffset.h19 FileID FID;
24 FileOffset(FileID fid, unsigned offs) : FID(fid), Offs(offs) {}
28 FileID getFID() const { return FID; }
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMappingWriter.cpp139 if (LHS.FileID != RHS.FileID)
140 return LHS.FileID < RHS.FileID;
148 for (const auto &FileID : VirtualFileMapping)
149 encodeULEB128(FileID, OS);
166 if (I->FileID != CurrentFileID) {
168 assert(I->FileID == (CurrentFileID + 1));
171 for (auto J = I + 1; J != E && I->FileID == J->FileID;
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Lex/
H A DPreprocessorLexer.h38 /// The SourceManager FileID corresponding to the file being lexed.
39 const FileID FID;
78 PreprocessorLexer(Preprocessor *pp, FileID fid);
146 FileID getFileID() const {
157 /// getFileEntry - Return the FileEntry corresponding to this FileID. Like
/freebsd-11-stable/contrib/llvm-project/clang/lib/Rewrite/
H A DRewriter.cpp150 FileID StartFileID, EndFileID;
159 std::map<FileID, RewriteBuffer>::const_iterator I =
189 FileID StartFileID, EndFileID;
199 std::map<FileID, RewriteBuffer>::const_iterator I =
232 FileID &FID) const {
234 std::pair<FileID, unsigned> V = SourceMgr->getDecomposedLoc(Loc);
239 /// getEditBuffer - Get or create a RewriteBuffer for the specified FileID.
240 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) {
241 std::map<FileID, RewriteBuffer>::iterator I =
258 FileID FI
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/
H A DFixItRewriter.h96 bool IsModified(FileID ID) const {
109 bool WriteFixedFile(FileID ID, raw_ostream &OS);
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DMacroPPCallbacks.h99 FileID PrevFID = FileID()) override;
/freebsd-11-stable/contrib/llvm-project/clang/lib/Format/
H A DTokenAnalyzer.h47 FileID getFileID() const { return ID; }
72 FileID ID;
97 // Stores Style, FileID and SourceManager etc.
H A DFormatTokenLexer.h39 FormatTokenLexer(const SourceManager &SourceMgr, FileID ID, unsigned Column,
99 FileID ID;
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp58 std::pair<FileID, unsigned> BeginInfo = SM.getDecomposedLoc(Range.getBegin());
59 std::pair<FileID, unsigned> EndInfo = SM.getDecomposedLoc(Range.getEnd());
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DTokens.h53 FileRange(FileID File, unsigned BeginOffset, unsigned EndOffset);
61 FileID file() const { return File; }
93 FileID File;
167 /// tokens for each of the files can be obtained via spelledTokens(FileID).
246 llvm::ArrayRef<syntax::Token> spelledTokens(FileID FID) const;
256 std::vector<const syntax::Token *> macroExpansions(FileID FID) const;
289 /// FIXME: spelled tokens don't change across FileID that map to the same
294 /// The first expanded token produced for this FileID.
310 llvm::DenseMap<FileID, MarkedFile> Files;
335 std::vector<syntax::Token> tokenize(FileID FI
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Index/
H A DIndexDataConsumer.h19 class FileID;
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DRawCommentList.cpp125 FileID BeginFileID;
152 FileID BeginFileID;
153 FileID EndFileID;
227 std::pair<FileID, unsigned> Loc1Info = SM.getDecomposedLoc(Loc1);
228 std::pair<FileID, unsigned> Loc2Info = SM.getDecomposedLoc(Loc2);
282 std::pair<FileID, unsigned> Loc =
285 const FileID CommentFile = Loc.first;
328 RawCommentList::getCommentsInFile(FileID File) const {
338 unsigned RawCommentList::getCommentBeginLine(RawComment *C, FileID File,
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp261 retrieveMacroLocation(SourceLocation Loc, FileID MacroFileID,
262 FileID CaretFileID,
263 const SmallVectorImpl<FileID> &CommonArgExpansions,
317 SmallVectorImpl<FileID> &IDs,
334 SmallVectorImpl<FileID> &CommonArgExpansions) {
335 SmallVector<FileID, 4> BeginArgExpansions;
336 SmallVector<FileID, 4> EndArgExpansions;
355 // iff the FileID is the same.
359 FileID CaretLocFileID = CaretLoc.getFileID();
370 FileID BeginFileI
[all...]

Completed in 295 milliseconds

123456