Searched refs:getFileID (Results 1 - 25 of 66) sorted by relevance

123

/netbsd-current/external/apache2/llvm/dist/clang/lib/Lex/
H A DPreprocessorLexer.cpp49 /// getFileID(), this only works for lexers with attached preprocessors.
51 return PP->getSourceManager().getFileEntryForID(getFileID());
H A DScratchBuffer.cpp40 SourceMgr.getSLocEntry(SourceMgr.getFileID(BufferStartLoc))
H A DPPLexerChange.cpp406 SourceMgr.getLocForStartOfFile(CurPPLexer->getFileID()) ==
419 (SourceMgr.getIncludeLoc(CurPPLexer->getFileID()).isValid() ||
422 CurPPLexer->getFileID() == PredefinesFileID))) {
428 SourceMgr.setNumCreatedFIDsForFileID(CurPPLexer->getFileID(), NumFIDs);
434 ExitedFID = CurPPLexer->getFileID();
457 SourceMgr.getFileEntryForID(CurPPLexer->getFileID())))
481 CurPPLexer->getFileID() == getPredefinesFileID())) {
/netbsd-current/external/apache2/llvm/dist/clang/lib/Index/
H A DFileIndexRecord.h39 FileID getFileID() const { return FID; } function in class:clang::index::FileIndexRecord
/netbsd-current/external/apache2/llvm/dist/clang/lib/Basic/
H A DSourceLocation.cpp159 FileID FullSourceLoc::getFileID() const { function in class:FullSourceLoc
161 return SrcMgr->getFileID(*this);
213 return SrcMgr->getLineNumber(getFileID(), getFileOffset(), Invalid);
218 return SrcMgr->getColumnNumber(getFileID(), getFileOffset(), Invalid);
223 return SrcMgr->getFileEntryForID(getFileID());
267 return SrcMgr->getBufferData(SrcMgr->getFileID(*this), Invalid);
H A DSourceManager.cpp621 // Set LastFileIDLookup to the newly created file. The next getFileID call is
652 assert(getFileID(TokenStart) == getFileID(TokenEnd) &&
762 /// This is the cache-miss path of getFileID. Not as hot as that function, but
942 Loc = getSLocEntry(getFileID(Loc)).getExpansion().getExpansionLocStart();
978 FID = getFileID(Loc);
996 FID = getFileID(Loc);
1017 if (const FileEntry *F = getFileEntryForID(getFileID(SpellingLoc)))
1027 const ExpansionInfo &Expansion = getSLocEntry(getFileID(Loc)).getExpansion();
1061 FileID FID = getFileID(Lo
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DPlistSupport.h40 FileID FID = SM.getFileID(SM.getExpansionLoc(L));
52 FileID FID = SM.getFileID(SM.getExpansionLoc(L));
H A DSourceManager.h714 /// A one-entry cache to speed up getFileID.
1100 FileID getFileID(SourceLocation SpellingLoc) const { function in class:clang::SourceManager
1143 FileID FID = getFileID(Loc);
1234 FileID FID = getFileID(Loc);
1247 FileID FID = getFileID(Loc);
1265 FileID FID = getFileID(Loc);
1455 return getFileID(Loc1) == getFileID(Loc2);
1463 return getFileID(Loc) == getMainFileID();
/netbsd-current/external/apache2/llvm/dist/clang/lib/Format/
H A DTokenAnalyzer.h47 FileID getFileID() const { return ID; } function in class:clang::format::Environment
H A DTokenAnalyzer.cpp56 Env.getSourceManager().getBufferData(Env.getFileID()))) {
69 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(),
/netbsd-current/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/
H A DTransformer.cpp48 auto ID = Result.SourceManager->getFileID(T.Range.getBegin());
/netbsd-current/external/apache2/llvm/dist/clang/lib/Analysis/
H A DIssueHash.cpp140 StringRef Str = GetNthLineOfFile(SM.getBufferOrNone(L.getFileID(), L),
148 SM.translateLineCol(SM.getFileID(L), L.getExpansionLineNumber(), col);
150 SM.getBufferOrNone(SM.getFileID(StartOfLine), StartOfLine);
157 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts,
/netbsd-current/external/apache2/llvm/dist/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp266 assert(SM->getFileID(Loc) == MacroFileID);
291 MacroFileID = SM->getFileID(MacroLocation);
309 MacroFileID = SM->getFileID(MacroArgLocation);
321 IDs.push_back(SM->getFileID(Loc));
359 FileID CaretLocFileID = CaretLoc.getFileID();
370 FileID BeginFileID = SM->getFileID(Begin);
371 FileID EndFileID = SM->getFileID(End);
380 BeginFileID = SM->getFileID(Begin);
389 EndFileID = SM->getFileID(End);
H A DVerifyDiagnosticConsumer.cpp70 Verify.UpdateParsedFileStatus(SM, SM.getFileID(Loc),
521 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), ExpectedLine, 1);
526 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), Line, 1);
741 FileID FID = SrcManager->getFileID(Loc);
875 SourceMgr->getFileID(I->first)))
927 const FileEntry *DiagFile = SM.getFileEntryForID(SM.getFileID(DiagnosticLoc));
931 return (DiagFile == SM.getFileEntryForID(SM.getFileID(DirectiveLoc)));
H A DDependencyGraph.cpp84 = SM.getFileEntryForID(SM.getFileID(SM.getExpansionLoc(HashLoc)));
H A DLogDiagnosticPrinter.cpp149 FileID FID = SM.getFileID(Info.getLocation());
/netbsd-current/external/apache2/llvm/dist/clang/lib/Tooling/Syntax/
H A DTokens.cpp73 auto ExpInfoFirst = SM.getSLocEntry(SM.getFileID(FirstLoc)).getExpansion();
74 auto ExpInfoLast = SM.getSLocEntry(SM.getFileID(LastLoc)).getExpansion();
162 assert(SM.getFileID(BeginLoc) == SM.getFileID(EndLoc));
235 SourceMgr->getFileID(SourceMgr->getExpansionLoc(Expanded->location())));
347 spelledTokens(SourceMgr->getFileID(Loc)),
377 FileID FID = SourceMgr->getFileID(BeginSpelled->location());
379 if (FID != SourceMgr->getFileID(LastSpelled->location()))
429 auto FileIt = Files.find(SourceMgr->getFileID(Spelled.front().location()));
494 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Lo
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DObjCUnusedIVarsChecker.cpp101 if (SM.getFileID(L) == FID)
152 Scan(M, D->getDeclContext(), SM.getFileID(D->getLocation()), SM);
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Lex/
H A DPreprocessorLexer.h146 FileID getFileID() const { function in class:clang::PreprocessorLexer
148 "PreprocessorLexer::getFileID() should only be used with a Preprocessor");
158 /// getFileID(), this only works for lexers with attached preprocessors.
/netbsd-current/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp237 return SM.getLocForStartOfFile(SM.getFileID(Loc));
243 return Loc.getLocWithOffset(SM.getFileIDSize(SM.getFileID(Loc)) -
245 return SM.getLocForEndOfFile(SM.getFileID(Loc));
251 : SM.getIncludeLoc(SM.getFileID(Loc));
297 FileID File = SM.getFileID(Loc);
320 FileIDMapping[SM.getFileID(Loc)] = std::make_pair(Mapping.size(), Loc);
321 Mapping.push_back(CVM.getFileID(Entry));
329 auto Mapping = FileIDMapping.find(SM.getFileID(Loc));
407 assert(SM.getFileID(LocStart).isValid() && "region in invalid file");
495 FileID StartFileID = SM.getFileID(Star
[all...]
H A DCoverageMappingGen.h127 unsigned getFileID(const FileEntry *File);
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAnalysisManager.h133 SourceLocation IL = SM.getIncludeLoc(SM.getFileID(SL));
/netbsd-current/external/apache2/llvm/dist/clang/lib/Rewrite/
H A DHTMLRewrite.cpp37 FileID FID = SM.getFileID(B);
38 assert(SM.getFileID(E) == FID && "B/E not in the same file!");
613 if (SM.getFileID(LLoc.getBegin()) != FID) {
618 assert(SM.getFileID(LLoc.getEnd()) == FID &&
/netbsd-current/external/apache2/llvm/dist/clang/tools/c-index-test/
H A Dcore_main.cpp110 FileID FID = SM.getFileID(Loc);
148 FileID FID = SM.getFileID(Loc);
171 FileID FID = SM.getFileID(Loc);
/netbsd-current/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp91 if (SM.getFileID(FileLoc) != TargetFile)
189 Context.getSourceManager().getFileID(SelectionRange.getBegin());
190 assert(Context.getSourceManager().getFileID(SelectionRange.getEnd()) ==

Completed in 523 milliseconds

123