Home
last modified time | relevance | path

Searched refs:FileID (Results 1 – 25 of 135) sorted by relevance

123456

/external/clang/include/clang/Basic/
DSourceManager.h455 FileID LQueryFID, RQueryFID;
464 FileID CommonFID;
477 bool isCacheValid(FileID LHS, FileID RHS) const { in isCacheValid()
501 void setQueryFIDs(FileID LHS, FileID RHS, bool isLFIDBeforeRFID) { in setQueryFIDs()
509 LQueryFID = RQueryFID = FileID(); in clear()
513 void setCommonLoc(FileID commonFID, unsigned lCommonOffset, in setCommonLoc()
627 mutable FileID LastFileIDLookup;
636 mutable FileID LastLineNoFileIDQuery;
642 FileID MainFileID;
645 FileID PreambleFileID;
[all …]
DSourceLocation.h39 class FileID {
44 FileID() : ID(0) {} in FileID() function
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()
63 static FileID get(int V) { in get()
[all …]
DSourceManagerInternals.h89 std::map<FileID, std::vector<LineEntry> > LineEntries;
104 void AddLineNote(FileID FID, unsigned Offset,
106 void AddLineNote(FileID FID, unsigned Offset,
114 const LineEntry *FindNearestLineEntry(FileID FID, unsigned Offset);
117 typedef std::map<FileID, std::vector<LineEntry> >::iterator iterator;
123 void AddEntry(FileID FID, const std::vector<LineEntry> &Entries);
DPlistSupport.h19 typedef llvm::DenseMap<FileID, unsigned> FIDMap;
21 inline void AddFID(FIDMap &FIDs, SmallVectorImpl<FileID> &V, in AddFID()
23 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID()
33 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID()
/external/clang/lib/Basic/
DSourceManager.cpp190 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, in AddLineNote()
221 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, in AddLineNote()
255 const LineEntry *LineTableInfo::FindNearestLineEntry(FileID FID, in FindNearestLineEntry()
274 void LineTableInfo::AddEntry(FileID FID, in AddEntry()
293 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote()
323 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote()
400 MainFileID = FileID(); in clearIDTables()
404 LastLineNoFileIDQuery = FileID(); in clearIDTables()
406 LastFileIDLookup = FileID(); in clearIDTables()
519 FileID SourceManager::getPreviousFileID(FileID FID) const { in getPreviousFileID()
[all …]
/external/google-breakpad/src/common/linux/
Dfile_id_unittest.cc92 FileID fileid1(exe_name); in TEST()
94 FileID fileid2(templ.c_str()); in TEST()
98 FileID::ConvertIdentifierToString(identifier1, identifier_string1, in TEST()
100 FileID::ConvertIdentifierToString(identifier2, identifier_string2, in TEST()
143 EXPECT_TRUE(FileID::ElfFileIdentifierFromMappedFile(this->elfdata, in TYPED_TEST()
146 FileID::ConvertIdentifierToString(identifier, identifier_string, in TYPED_TEST()
157 FileID::ConvertIdentifierToString(kExpectedIdentifier, in TYPED_TEST()
175 EXPECT_TRUE(FileID::ElfFileIdentifierFromMappedFile(this->elfdata, in TYPED_TEST()
178 FileID::ConvertIdentifierToString(identifier, identifier_string, in TYPED_TEST()
189 FileID::ConvertIdentifierToString(kExpectedIdentifier, in TYPED_TEST()
[all …]
Dfile_id.h45 class FileID {
47 explicit FileID(const char* path);
48 ~FileID() {} in ~FileID()
Dfile_id.cc51 FileID::FileID(const char* path) : path_(path) {} in FileID() function in google_breakpad::FileID
141 bool FileID::ElfFileIdentifierFromMappedFile(const void* base, in ElfFileIdentifierFromMappedFile()
151 bool FileID::ElfFileIdentifier(uint8_t identifier[kMDGUIDSize]) { in ElfFileIdentifier()
160 void FileID::ConvertIdentifierToString(const uint8_t identifier[kMDGUIDSize], in ConvertIdentifierToString()
/external/llvm/tools/llvm-cov/
DCoverageSummaryInfo.cpp34 for (unsigned FileID = 0, E = Function.Filenames.size(); FileID < E; in get() local
35 ++FileID) { in get()
41 if (CR.FileID != FileID) in get()
52 if (CR.FileID != FileID) in get()
/external/llvm/include/llvm/ProfileData/
DCoverageMapping.h164 unsigned FileID, ExpandedFileID; member
168 CounterMappingRegion(Counter Count, unsigned FileID, unsigned ExpandedFileID, in CounterMappingRegion()
171 : Count(Count), FileID(FileID), ExpandedFileID(ExpandedFileID), in CounterMappingRegion()
176 makeRegion(Counter Count, unsigned FileID, unsigned LineStart, in makeRegion()
178 return CounterMappingRegion(Count, FileID, 0, LineStart, ColumnStart, in makeRegion()
183 makeExpansion(unsigned FileID, unsigned ExpandedFileID, unsigned LineStart, in makeExpansion()
185 return CounterMappingRegion(Counter(), FileID, ExpandedFileID, LineStart, in makeExpansion()
191 makeSkipped(unsigned FileID, unsigned LineStart, unsigned ColumnStart, in makeSkipped()
193 return CounterMappingRegion(Counter(), FileID, 0, LineStart, ColumnStart, in makeSkipped()
207 if (FileID != Other.FileID)
[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.h34 std::map<FileID, RewriteBuffer> RewriteBuffers;
53 typedef std::map<FileID, RewriteBuffer>::iterator buffer_iterator;
54 typedef std::map<FileID, RewriteBuffer>::const_iterator const_buffer_iterator;
166 RewriteBuffer &getEditBuffer(FileID FID);
170 const RewriteBuffer *getRewriteBufferFor(FileID FID) const { in getRewriteBufferFor()
171 std::map<FileID, RewriteBuffer>::const_iterator I = in getRewriteBufferFor()
190 unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileID &FID) const;
/external/google-breakpad/src/common/mac/
Dfile_id.cc47 FileID::FileID(const char *path) { in FileID() function in google_breakpad::FileID
51 bool FileID::FileIdentifier(unsigned char identifier[16]) { in FileIdentifier()
73 bool FileID::MachoIdentifier(cpu_type_t cpu_type, in MachoIdentifier()
85 void FileID::ConvertIdentifierToString(const unsigned char identifier[16], in ConvertIdentifierToString()
Dfile_id.h42 class FileID {
44 FileID(const char *path);
45 ~FileID() {}; in ~FileID()
/external/clang/lib/Rewrite/
DRewriter.cpp131 FileID StartFileID, EndFileID; in getRangeSize()
142 std::map<FileID, RewriteBuffer>::const_iterator I = in getRangeSize()
175 FileID StartFileID, EndFileID; in getRewrittenText()
185 std::map<FileID, RewriteBuffer>::const_iterator I = in getRewrittenText()
215 FileID &FID) const { in getLocationOffsetAndFileID()
217 std::pair<FileID,unsigned> V = SourceMgr->getDecomposedLoc(Loc); in getLocationOffsetAndFileID()
225 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { in getEditBuffer()
226 std::map<FileID, RewriteBuffer>::iterator I = in getEditBuffer()
243 FileID FID; in InsertText()
283 FileID FID; in InsertTextAfterToken()
[all …]
/external/llvm/lib/ProfileData/
DCoverageMappingWriter.cpp116 for (const auto &FileID : VirtualFileMapping) in write() local
117 encodeULEB128(FileID, OS); in write()
134 if (I->FileID != CurrentFileID) { in write()
136 assert(I->FileID == (CurrentFileID + 1)); in write()
139 for (auto J = I + 1; J != E && I->FileID == J->FileID; ++J) in write()
144 CurrentFileID = I->FileID; in write()
DCoverageMapping.cpp249 void insert(const FunctionRecord &Function, unsigned FileID) { in insert() argument
251 while (I != E && I->FileID != FileID) in insert()
364 FilenameEquivalence[CR.FileID]) in findMainViewFileID()
395 static bool isExpansion(const CountedRegion &R, unsigned FileID) { in isExpansion() argument
396 return R.Kind == CounterMappingRegion::ExpansionRegion && R.FileID == FileID; in isExpansion()
409 if (FileIDs.test(CR.FileID)) { in getCoverageForFile()
452 if (CR.FileID == *MainFileID) { in getCoverageForFunction()
468 Expansion.Function.Filenames[Expansion.FileID]); in getCoverageForExpansion()
471 if (CR.FileID == Expansion.FileID) { in getCoverageForExpansion()
473 if (isExpansion(CR, Expansion.FileID)) in getCoverageForExpansion()
[all …]
/external/google-breakpad/src/common/solaris/
Dfile_id.h41 class FileID {
43 FileID(const char *path);
44 ~FileID() {}; in ~FileID()
Dfile_id.cc131 FileID::FileID(const char *path) { in FileID() function in google_breakpad::FileID
143 bool FileID::ElfFileIdentifier(unsigned char identifier[16]) { in ElfFileIdentifier()
174 bool FileID::ConvertIdentifierToString(const unsigned char identifier[16], in ConvertIdentifierToString()
/external/clang/unittests/Tooling/
DRefactoringTest.cpp45 FileID ID = Context.createInMemoryFile("input.cpp", "text"); in TEST_F()
53 FileID ID = Context.createInMemoryFile("input.cpp", "line1\nline2\nline3"); in TEST_F()
61 FileID ID = Context.createInMemoryFile("input.cpp", ""); in TEST_F()
69 FileID ID = Context.createInMemoryFile("input.cpp", in TEST_F()
78 FileID ID = Context.createInMemoryFile("input.cpp", in TEST_F()
112 FileID ID = Context.createInMemoryFile("input.cpp", in TEST_F()
127 FileID ID = Context.createInMemoryFile("input.cpp", in TEST_F()
139 FileID ID = Context.createInMemoryFile("input.cpp", in TEST_F()
155 FileID IDa = Context.createInMemoryFile("a.cpp", "text"); in TEST_F()
156 FileID IDz = Context.createInMemoryFile("z.cpp", "text"); in TEST_F()
[all …]
DRewriterTest.cpp17 FileID ID = Context.createOnDiskFile("t.cpp", "line1\nline2\nline3\nline4"); in TEST()
26 FileID FailingID = Context.createInMemoryFile("invalid/failing.cpp", "test"); in TEST()
28 FileID WorkingID = Context.createOnDiskFile( in TEST()
DRewriterTestContext.h50 FileID createInMemoryFile(StringRef Name, StringRef Content) { in createInMemoryFile()
62 FileID createOnDiskFile(StringRef Name, StringRef Content) { in createOnDiskFile()
82 SourceLocation getLocation(FileID ID, unsigned Line, unsigned Column) { in getLocation()
89 std::string getRewrittenText(FileID ID) { in getRewrittenText()
/external/clang/include/clang/Frontend/
DSerializedDiagnosticReader.h47 unsigned FileID; member
51 Location(unsigned FileID, unsigned Line, unsigned Col, unsigned Offset) in Location()
52 : FileID(FileID), Line(Line), Col(Col), Offset(Offset) {} in Location()
/external/clang/include/clang/AST/
DASTImporter.h69 llvm::DenseMap<FileID, FileID> ImportedFileIDs;
201 FileID Import(FileID);
/external/clang/include/clang/Edit/
DFileOffset.h20 FileID FID;
24 FileOffset(FileID fid, unsigned offs) : FID(fid), Offs(offs) { } in FileOffset()
28 FileID getFID() const { return FID; } in getFID()

123456