Searched defs:FID (Results 1 - 25 of 38) sorted by relevance

12

/external/clang/lib/Lex/
H A DScratchBuffer.cpp69 FileID FID = SourceMgr.createFileID(Buf); local
70 BufferStartLoc = SourceMgr.getLocForStartOfFile(FID);
H A DPPLexerChange.cpp71 bool Preprocessor::EnterSourceFile(FileID FID, const DirectoryLookup *CurDir, argument
80 if (PTHLexer *PL = PTH->CreateLexer(FID)) {
86 // Get the MemoryBuffer for this FID, if it fails, we fail.
89 getSourceManager().getBuffer(FID, Loc, &Invalid);
91 SourceLocation FileStart = SourceMgr.getLocForStartOfFile(FID);
98 SourceMgr.getFileEntryForID(FID) == CodeCompletionFile) {
99 CodeCompletionFileLoc = SourceMgr.getLocForStartOfFile(FID);
104 EnterSourceFileWithLexer(new Lexer(FID, InputFile, *this), CurDir);
151 FileID FID = CurPPLexer->getFileID(); local
152 SourceLocation EnterLoc = SourceMgr.getLocForStartOfFile(FID);
[all...]
H A DPreprocessingRecord.cpp66 static bool isPreprocessedEntityIfInFileID(PreprocessedEntity *PPE, FileID FID, argument
68 assert(!FID.isInvalid());
76 if (SM.isInFileID(SM.getFileLoc(Loc), FID))
83 /// points to is coming from the file \arg FID.
89 bool PreprocessingRecord::isEntityInFileID(iterator PPEI, FileID FID) { argument
90 if (FID.isInvalid())
102 return isPreprocessedEntityIfInFileID(PPE, FID, SourceMgr);
107 ExternalSource->isPreprocessedEntityInFileID(LoadedIndex, FID);
115 FID, SourceMgr);
123 FID, SourceMg
[all...]
H A DPreprocessor.cpp485 FileID FID = SourceMgr.createFileID(SB); local
486 assert(!FID.isInvalid() && "Could not create FileID for predefines?");
487 setPredefinesFileID(FID);
490 EnterSourceFile(FID, nullptr, SourceLocation());
H A DPTHLexer.cpp38 PTHLexer::PTHLexer(Preprocessor &PP, FileID FID, const unsigned char *D, argument
40 : PreprocessorLexer(&PP, FID), TokBuf(D), CurPtr(D), LastHashTokPtr(nullptr),
43 FileStartLoc = PP.getSourceManager().getLocForStartOfFile(FID);
605 PTHLexer *PTHManager::CreateLexer(FileID FID) { argument
606 const FileEntry *FE = PP->getSourceManager().getFileEntryForID(FID);
633 return new PTHLexer(*PP, FID, data, ppcond, *this);
/external/clang/lib/Frontend/
H A DLogDiagnosticPrinter.cpp118 FileID FID = SM.getMainFileID(); local
119 if (!FID.isInvalid()) {
120 const FileEntry *FE = SM.getFileEntryForID(FID);
145 FileID FID = SM.getFileID(Info.getLocation()); local
146 if (!FID.isInvalid()) {
147 const FileEntry *FE = SM.getFileEntryForID(FID);
H A DCacheTokens.cpp507 FileID FID = SM.createFileID(FE, SourceLocation(), SrcMgr::C_User); local
508 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID);
509 Lexer L(FID, FromFile, SM, LOpts);
H A DVerifyDiagnosticConsumer.cpp132 FileID FID = SrcManager->getFileID(Loc); local
134 const FileEntry *FE = SrcManager->getFileEntryForID(FID);
135 if (FE && CurrentPreprocessor && SrcManager->isLoadedFileID(FID)) {
143 UpdateParsedFileStatus(*SrcManager, FID, PS);
584 static bool findDirectives(SourceManager &SM, FileID FID, argument
586 // Create a raw lexer to pull all the comments out of FID.
587 if (FID.isInvalid())
591 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID);
592 Lexer RawLex(FID, FromFile, SM, LangOpts);
770 FileID FID,
769 UpdateParsedFileStatus(SourceManager &SM, FileID FID, ParsedStatus PS) argument
[all...]
/external/clang/lib/Rewrite/Core/
H A DTokenRewriter.cpp21 TokenRewriter::TokenRewriter(FileID FID, SourceManager &SM, argument
26 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID);
27 Lexer RawLex(FID, FromFile, SM, LangOpts);
H A DHTMLRewrite.cpp37 FileID FID = SM.getFileID(B); local
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, argument
109 const llvm::MemoryBuffer *Buf = R.getSourceMgr().getBuffer(FID);
115 RewriteBuffer &RB = R.getEditBuffer(FID);
226 void html::AddLineNumbers(Rewriter& R, FileID FID) { argument
228 const llvm::MemoryBuffer *Buf = R.getSourceMgr().getBuffer(FID);
232 RewriteBuffer &RB = R.getEditBuffer(FID);
357 SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP) argument
446 HighlightMacros(Rewriter &R, FileID FID, const Preprocessor& PP) argument
[all...]
H A DRewriter.cpp217 FileID &FID) const {
220 FID = V.first;
227 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { argument
229 RewriteBuffers.lower_bound(FID);
230 if (I != RewriteBuffers.end() && I->first == FID)
232 I = RewriteBuffers.insert(I, std::make_pair(FID, RewriteBuffer()));
234 StringRef MB = SourceMgr->getBufferData(FID);
245 FileID FID;
246 unsigned StartOffs = getLocationOffsetAndFileID(Loc, FID);
250 StringRef MB = SourceMgr->getBufferData(FID);
324 FileID FID; local
[all...]
/external/clang/include/clang/Edit/
H A DFileOffset.h20 FileID FID; member in class:clang::edit::FileOffset
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);
/external/clang/lib/StaticAnalyzer/Checkers/
H A DObjCUnusedIVarsChecker.cpp97 static void Scan(IvarUsageMap &M, const DeclContext *C, const FileID FID, argument
102 if (SM.getFileID(L) == FID)
/external/clang/include/clang/Basic/
H A DPlistSupport.h24 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); local
25 FIDMap::iterator I = FIDs.find(FID);
28 FIDs[FID] = V.size();
29 V.push_back(FID);
34 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); local
35 FIDMap::const_iterator I = FIDs.find(FID);
H A DSourceManager.h755 void setMainFileID(FileID FID) { argument
757 MainFileID = FID;
872 llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc, argument
875 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &MyInvalid);
887 llvm::MemoryBuffer *getBuffer(FileID FID, bool *Invalid = nullptr) const { argument
889 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &MyInvalid);
903 const FileEntry *getFileEntryForID(FileID FID) const {
905 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &MyInvalid);
927 /// \param FID The file ID whose contents will be returned.
929 StringRef getBufferData(FileID FID, boo
944 setNumCreatedFIDsForFileID(FileID FID, unsigned NumFIDs) const argument
1021 FileID FID = getFileID(Loc); local
1086 FileID FID = getFileID(Loc); local
1100 FileID FID = getFileID(Loc); local
1119 FileID FID = getFileID(Loc); local
1338 isInFileID(SourceLocation Loc, FileID FID, unsigned *RelativeOffset = nullptr) const argument
[all...]
/external/clang/include/clang/Lex/
H A DPreprocessorLexer.h33 const FileID FID; member in class:clang::PreprocessorLexer
156 return FID;
H A DPreprocessingRecord.h280 /// entity with index \p Index came from file \p FID.
282 FileID FID) {
540 /// points to is coming from the file \p FID.
546 bool isEntityInFileID(iterator PPEI, FileID FID);
281 isPreprocessedEntityInFileID(unsigned Index, FileID FID) argument
/external/clang/tools/libclang/
H A DCIndexHigh.cpp48 FileID FID; member in struct:__anon19519::FindFileIdRefVisitData
56 FindFileIdRefVisitData(CXTranslationUnit TU, FileID FID, argument
59 : TU(TU), FID(FID), SelectorIdIdx(selectorIdIdx), visitor(visitor) {
199 if (LocInfo.first != data->FID)
221 FileID FID = SM.translateFile(File); local
226 FindFileIdRefVisitData data(TU, FID, Dcl,
235 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID));
319 FileID FID local
391 FileID FID = SM.translateFile(File); local
[all...]
H A DCXSourceLocation.cpp338 FileID FID = LocInfo.first; local
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; local
378 if (FID.isInvalid())
382 *file = const_cast<FileEntry *>(SM.getFileEntryForID(FID));
384 *line = SM.getLineNumber(FID, FileOffset);
386 *column = SM.getColumnNumber(FID, FileOffse
[all...]
H A DIndexing.cpp60 bool isParsed(SourceLocation Loc, FileID FID, const FileEntry *FE) { argument
187 bool isParsed(SourceLocation Loc, FileID FID, const FileEntry *FE) {
188 PPRegion region = getRegion(Loc, FID, FE);
208 PPRegion getRegion(SourceLocation Loc, FileID FID, const FileEntry *FE) {
224 if (RegionFID != FID) {
368 FileID FID;
370 std::tie(FID, Offset) = SM.getDecomposedLoc(Loc);
372 if (SM.getMainFileID() == FID)
374 const FileEntry *FE = SM.getFileEntryForID(FID);
378 return SKCtrl->isParsed(Loc, FID, F
[all...]
H A DIndexingContext.cpp717 FileID FID = SM.getFileID(FileLoc); local
718 return SM.getFileEntryForID(FID) == nullptr;
797 FileID FID = LocInfo.first; local
798 if (FID.isInvalid())
801 const FileEntry *FE = SM.getFileEntryForID(FID);
895 FileID FID = LocInfo.first; local
898 if (FID.isInvalid())
901 const FileEntry *FE = SM.getFileEntryForID(FID);
907 *line = SM.getLineNumber(FID, FileOffset);
909 *column = SM.getColumnNumber(FID, FileOffse
[all...]
/external/clang/lib/ARCMigrate/
H A DARCMT.cpp590 FileID FID = I->first; local
592 const FileEntry *file = Ctx.getSourceManager().getFileEntryForID(FID);
/external/clang/lib/CodeGen/
H A DCodeGenAction.cpp275 FileID FID = CSM.createFileID(CBuf); local
280 CSM.getLocForStartOfFile(FID).getLocWithOffset(Offset);
644 FileID FID = SM.getMainFileID(); local
645 llvm::MemoryBuffer *MainFile = SM.getBuffer(FID, &Invalid);
658 Loc = SM.translateFileLineCol(SM.getFileEntryForID(FID),
/external/clang/lib/Index/
H A DCommentToXML.cpp901 FileID FID = LocInfo.first; local
904 if (!FID.isInvalid()) {
905 if (const FileEntry *FE = SM.getFileEntryForID(FID)) {
910 Result << " line=\"" << SM.getLineNumber(FID, FileOffset)
911 << "\" column=\"" << SM.getColumnNumber(FID, FileOffset)
/external/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp126 FileID FID = local
128 assert(!FID.isInvalid());
159 HandlePiece(R, FID, **I, n, max);
163 // unsigned FID = R.getSourceMgr().getMainFileID();
164 html::EscapeText(R, FID);
165 html::AddLineNumbers(R, FID);
171 html::SyntaxHighlight(R, FID, PP);
172 html::HighlightMacros(R, FID, PP);
176 const FileEntry* Entry = SMgr.getFileEntryForID(FID);
222 R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), o
[all...]

Completed in 372 milliseconds

12