/external/clang/lib/Lex/ |
ScratchBuffer.cpp | 72 FileID FID = SourceMgr.createFileID(std::move(OwnBuf)); 73 BufferStartLoc = SourceMgr.getLocForStartOfFile(FID);
|
PPLexerChange.cpp | 72 bool Preprocessor::EnterSourceFile(FileID FID, const DirectoryLookup *CurDir, 81 if (PTHLexer *PL = PTH->CreateLexer(FID)) { 87 // Get the MemoryBuffer for this FID, if it fails, we fail. 90 getSourceManager().getBuffer(FID, Loc, &Invalid); 92 SourceLocation FileStart = SourceMgr.getLocForStartOfFile(FID); 99 SourceMgr.getFileEntryForID(FID) == CodeCompletionFile) { 100 CodeCompletionFileLoc = SourceMgr.getLocForStartOfFile(FID); 105 EnterSourceFileWithLexer(new Lexer(FID, InputFile, *this), CurDir); 152 FileID FID = CurPPLexer->getFileID(); 153 SourceLocation EnterLoc = SourceMgr.getLocForStartOfFile(FID); [all...] |
Preprocessor.cpp | 522 FileID FID = SourceMgr.createFileID(std::move(SB)); 523 assert(FID.isValid() && "Could not create FileID for predefines?"); 524 setPredefinesFileID(FID); 527 EnterSourceFile(FID, nullptr, SourceLocation()); [all...] |
Lexer.cpp | 109 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *InputFile, Preprocessor &PP) 110 : PreprocessorLexer(&PP, FID), 111 FileLoc(PP.getSourceManager().getLocForStartOfFile(FID)), 144 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *FromFile, 146 : Lexer(SM.getLocForStartOfFile(FID), langOpts, FromFile->getBufferStart(), 842 FileID FID; 844 std::tie(FID, BeginOffs) = SM.getDecomposedLoc(Begin); 845 if (FID.isInvalid()) 849 if (!SM.isInFileID(End, FID, &EndOffs) || [all...] |
/external/clang/lib/Frontend/ |
LogDiagnosticPrinter.cpp | 120 FileID FID = SM.getMainFileID(); 121 if (FID.isValid()) { 122 const FileEntry *FE = SM.getFileEntryForID(FID); 149 FileID FID = SM.getFileID(Info.getLocation()); 150 if (FID.isValid()) { 151 const FileEntry *FE = SM.getFileEntryForID(FID);
|
CacheTokens.cpp | 518 FileID FID = SM.createFileID(FE, SourceLocation(), SrcMgr::C_User); 519 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); 520 Lexer L(FID, FromFile, SM, LOpts);
|
VerifyDiagnosticConsumer.cpp | 129 FileID FID = SrcManager->getFileID(Loc); 131 const FileEntry *FE = SrcManager->getFileEntryForID(FID); 132 if (FE && CurrentPreprocessor && SrcManager->isLoadedFileID(FID)) { 140 UpdateParsedFileStatus(*SrcManager, FID, PS); 581 static bool findDirectives(SourceManager &SM, FileID FID, 583 // Create a raw lexer to pull all the comments out of FID. 584 if (FID.isInvalid()) 588 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); 589 Lexer RawLex(FID, FromFile, SM, LangOpts); 777 FileID FID, [all...] |
CompilerInstance.cpp | [all...] |
ASTUnit.cpp | [all...] |
/external/clang/include/clang/Basic/ |
PlistSupport.h | 23 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); 24 FIDMap::iterator I = FIDs.find(FID); 27 FIDs[FID] = V.size(); 28 V.push_back(FID); 33 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); 34 FIDMap::const_iterator I = FIDs.find(FID);
|
SourceManager.h | 758 void setMainFileID(FileID FID) { 759 MainFileID = FID; [all...] |
/external/clang/include/clang/Edit/ |
FileOffset.h | 20 FileID FID; 24 FileOffset(FileID fid, unsigned offs) : FID(fid), Offs(offs) { } 26 bool isInvalid() const { return FID.isInvalid(); } 28 FileID getFID() const { return FID; } 38 return LHS.FID == RHS.FID && LHS.Offs == RHS.Offs; 44 return std::tie(LHS.FID, LHS.Offs) < std::tie(RHS.FID, RHS.Offs) [all...] |
/external/clang/include/clang/Lex/ |
PreprocessorLexer.h | 33 const FileID FID; 76 PreprocessorLexer(Preprocessor *pp, FileID fid); 156 return FID;
|
/external/libcxx/test/std/utilities/function.objects/func.require/ |
bullet_5.pass.cpp | 195 typedef FunctionPtrID<CallSig, FnPtr> FID; 196 BasicTest<FID, Arity, LValueCaster, ArgCaster> t;
|
/external/clang/tools/libclang/ |
CXSourceLocation.cpp | 338 FileID FID = LocInfo.first; 341 if (FID.isInvalid()) 345 *file = const_cast<FileEntry *>(SM.getFileEntryForID(FID)); 347 *line = SM.getLineNumber(FID, FileOffset); 349 *column = SM.getColumnNumber(FID, FileOffset); 375 FileID FID = LocInfo.first; 378 if (FID.isInvalid()) 382 *file = const_cast<FileEntry *>(SM.getFileEntryForID(FID)); 384 *line = SM.getLineNumber(FID, FileOffset); 386 *column = SM.getColumnNumber(FID, FileOffset) [all...] |
CIndexHigh.cpp | 48 FileID FID; 56 FindFileIdRefVisitData(CXTranslationUnit TU, FileID FID, 59 : TU(TU), FID(FID), SelectorIdIdx(selectorIdIdx), visitor(visitor) { 199 if (LocInfo.first != data->FID) 221 FileID FID = SM.translateFile(File); 226 FindFileIdRefVisitData data(TU, FID, Dcl, 235 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID)); 319 FileID FID = SM.translateFile(File) [all...] |
IndexingContext.cpp | 717 FileID FID = SM.getFileID(FileLoc); 718 return SM.getFileEntryForID(FID) == nullptr; 797 FileID FID = LocInfo.first; 798 if (FID.isInvalid()) 801 const FileEntry *FE = SM.getFileEntryForID(FID); 895 FileID FID = LocInfo.first; 898 if (FID.isInvalid()) 901 const FileEntry *FE = SM.getFileEntryForID(FID); 907 *line = SM.getLineNumber(FID, FileOffset); 909 *column = SM.getColumnNumber(FID, FileOffset) [all...] |
/external/clang/lib/ARCMigrate/ |
ARCMT.cpp | 598 FileID FID = I->first; 600 const FileEntry *file = Ctx.getSourceManager().getFileEntryForID(FID);
|
/external/clang/lib/Rewrite/ |
HTMLRewrite.cpp | 37 FileID FID = SM.getFileID(B); 38 assert(SM.getFileID(E) == FID && "B/E not in the same file!"); 47 const char *BufferStart = SM.getBufferData(FID, &Invalid).data(); 51 HighlightRange(R.getEditBuffer(FID), BOffset, EOffset, 106 void html::EscapeText(Rewriter &R, FileID FID, 109 const llvm::MemoryBuffer *Buf = R.getSourceMgr().getBuffer(FID); 115 RewriteBuffer &RB = R.getEditBuffer(FID); 226 void html::AddLineNumbers(Rewriter& R, FileID FID) { 228 const llvm::MemoryBuffer *Buf = R.getSourceMgr().getBuffer(FID); 232 RewriteBuffer &RB = R.getEditBuffer(FID); [all...] |
Rewriter.cpp | 213 FileID &FID) const { 216 FID = V.first; 223 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { 225 RewriteBuffers.lower_bound(FID); 226 if (I != RewriteBuffers.end() && I->first == FID) 228 I = RewriteBuffers.insert(I, std::make_pair(FID, RewriteBuffer())); 230 StringRef MB = SourceMgr->getBufferData(FID); 241 FileID FID; 242 unsigned StartOffs = getLocationOffsetAndFileID(Loc, FID); 246 StringRef MB = SourceMgr->getBufferData(FID); [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
HTMLDiagnostics.cpp | 128 FileID FID = 130 assert(FID.isValid()); 161 HandlePiece(R, FID, **I, n, max); 165 // unsigned FID = R.getSourceMgr().getMainFileID(); 166 html::EscapeText(R, FID); 167 html::AddLineNumbers(R, FID); 173 html::SyntaxHighlight(R, FID, PP); 174 html::HighlightMacros(R, FID, PP); 178 const FileEntry* Entry = SMgr.getFileEntryForID(FID); 224 R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), os.str()) [all...] |
PathDiagnostic.cpp | 212 FileID FID; 225 if (FID.isInvalid()) { 226 FID = SMgr.getFileID(L); 227 } else if (SMgr.getFileID(L) != FID) 235 if (!L.isFileID() || SMgr.getFileID(L) != FID) 238 if (!L.isFileID() || SMgr.getFileID(L) != FID) 253 if (FID.isInvalid()) [all...] |
/external/clang/lib/CodeGen/ |
CodeGenAction.cpp | 297 FileID FID = CSM.createFileID(std::move(CBuf)); 302 CSM.getLocForStartOfFile(FID).getLocWithOffset(Offset); 747 FileID FID = SM.getMainFileID(); 748 llvm::MemoryBuffer *MainFile = SM.getBuffer(FID, &Invalid); 761 Loc = SM.translateFileLineCol(SM.getFileEntryForID(FID), [all...] |
/external/clang/lib/Index/ |
CommentToXML.cpp | 894 FileID FID = LocInfo.first; 897 if (FID.isValid()) { 898 if (const FileEntry *FE = SM.getFileEntryForID(FID)) { 903 Result << " line=\"" << SM.getLineNumber(FID, FileOffset) 904 << "\" column=\"" << SM.getColumnNumber(FID, FileOffset) [all...] |
/external/clang/lib/Basic/ |
SourceManager.cpp | 188 /// is a \#line at the specified FID/Offset location which changes the presumed 190 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, 192 std::vector<LineEntry> &Entries = LineEntries[FID]; 221 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, 227 std::vector<LineEntry> &Entries = LineEntries[FID]; 244 FindNearestLineEntry(FID, Entries.back().IncludeOffset)) 253 /// FindNearestLineEntry - Find the line entry nearest to FID that is before 254 /// it. If there is no line entry before Offset in FID, return null. 255 const LineEntry *LineTableInfo::FindNearestLineEntry(FileID FID, 257 const std::vector<LineEntry> &Entries = LineEntries[FID]; [all...] |