Home
last modified time | relevance | path

Searched refs:getFileID (Results 1 – 25 of 159) sorted by relevance

1234567

/external/llvm-project/clang/lib/Basic/
DSourceLocation.cpp151 FileID FullSourceLoc::getFileID() const { in getFileID() function in FullSourceLoc
153 return SrcMgr->getFileID(*this); in getFileID()
205 return SrcMgr->getLineNumber(getFileID(), getFileOffset(), Invalid); in getLineNumber()
210 return SrcMgr->getColumnNumber(getFileID(), getFileOffset(), Invalid); in getColumnNumber()
215 return SrcMgr->getFileEntryForID(getFileID()); in getFileEntry()
259 return SrcMgr->getBufferData(SrcMgr->getFileID(*this), Invalid); in getBufferData()
/external/clang/lib/Basic/
DSourceLocation.cpp80 FileID FullSourceLoc::getFileID() const { in getFileID() function in FullSourceLoc
82 return SrcMgr->getFileID(*this); in getFileID()
137 return SrcMgr->getBuffer(SrcMgr->getFileID(*this), Invalid)->getBuffer(); in getBufferData()
/external/llvm-project/clang/lib/Analysis/
DIssueHash.cpp140 StringRef Str = GetNthLineOfFile(SM.getBufferOrNone(L.getFileID(), L), in NormalizeLine()
148 SM.translateLineCol(SM.getFileID(L), L.getExpansionLineNumber(), col); in NormalizeLine()
150 SM.getBufferOrNone(SM.getFileID(StartOfLine), StartOfLine); in NormalizeLine()
157 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine()
/external/clang/lib/StaticAnalyzer/Core/
DIssueHash.cpp133 StringRef Str = GetNthLineOfFile(SM.getBuffer(L.getFileID(), L), in NormalizeLine()
141 SM.translateLineCol(SM.getFileID(L), L.getExpansionLineNumber(), col); in NormalizeLine()
143 SM.getBuffer(SM.getFileID(StartOfLine), StartOfLine); in NormalizeLine()
150 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine()
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp275 assert(SM->getFileID(Loc) == MacroFileID); in retrieveMacroLocation()
298 MacroFileID = SM->getFileID(MacroLocation); in retrieveMacroLocation()
306 MacroFileID = SM->getFileID(MacroArgLocation); in retrieveMacroLocation()
318 IDs.push_back(SM->getFileID(Loc)); in getMacroArgExpansionFileIDs()
358 FileID CaretLocFileID = SM->getFileID(CaretLoc); in mapDiagnosticRanges()
366 FileID BeginFileID = SM->getFileID(Begin); in mapDiagnosticRanges()
367 FileID EndFileID = SM->getFileID(End); in mapDiagnosticRanges()
376 BeginFileID = SM->getFileID(Begin); in mapDiagnosticRanges()
383 EndFileID = SM->getFileID(End); in mapDiagnosticRanges()
/external/llvm-project/clang/lib/Frontend/
DDiagnosticRenderer.cpp266 assert(SM->getFileID(Loc) == MacroFileID); in retrieveMacroLocation()
291 MacroFileID = SM->getFileID(MacroLocation); in retrieveMacroLocation()
309 MacroFileID = SM->getFileID(MacroArgLocation); in retrieveMacroLocation()
321 IDs.push_back(SM->getFileID(Loc)); in getMacroArgExpansionFileIDs()
359 FileID CaretLocFileID = CaretLoc.getFileID(); in mapDiagnosticRanges()
370 FileID BeginFileID = SM->getFileID(Begin); in mapDiagnosticRanges()
371 FileID EndFileID = SM->getFileID(End); in mapDiagnosticRanges()
380 BeginFileID = SM->getFileID(Begin); in mapDiagnosticRanges()
389 EndFileID = SM->getFileID(End); in mapDiagnosticRanges()
/external/clang/lib/CodeGen/
DCoverageMappingGen.cpp111 return SM.getLocForStartOfFile(SM.getFileID(Loc)); in getStartOfFileOrMacro()
117 return Loc.getLocWithOffset(SM.getFileIDSize(SM.getFileID(Loc)) - in getEndOfFileOrMacro()
119 return SM.getLocForEndOfFile(SM.getFileID(Loc)); in getEndOfFileOrMacro()
125 : SM.getIncludeLoc(SM.getFileID(Loc)); in getIncludeOrExpansionLoc()
171 FileID File = SM.getFileID(Loc); in gatherFileIDs()
194 FileIDMapping[SM.getFileID(Loc)] = std::make_pair(Mapping.size(), Loc); in gatherFileIDs()
195 Mapping.push_back(CVM.getFileID(Entry)); in gatherFileIDs()
203 auto Mapping = FileIDMapping.find(SM.getFileID(Loc)); in getCoverageFileID()
256 assert(SM.getFileID(LocStart).isValid() && "region in invalid file"); in emitSourceRegions()
330 FileID StartFileID = SM.getFileID(Start); in VisitDecl()
[all …]
/external/llvm-project/clang/lib/Tooling/Syntax/
DTokens.cpp73 auto ExpInfoFirst = SM.getSLocEntry(SM.getFileID(FirstLoc)).getExpansion(); in findCommonRangeForMacroArgs()
74 auto ExpInfoLast = SM.getSLocEntry(SM.getFileID(LastLoc)).getExpansion(); in findCommonRangeForMacroArgs()
162 assert(SM.getFileID(BeginLoc) == SM.getFileID(EndLoc)); in FileRange()
203 SourceMgr->getFileID(SourceMgr->getExpansionLoc(Expanded->location()))); in spelledForExpandedToken()
315 spelledTokens(SourceMgr->getFileID(Loc)), in spelledTokenAt()
345 FileID FID = SourceMgr->getFileID(BeginSpelled->location()); in spelledForExpanded()
347 if (FID != SourceMgr->getFileID(LastSpelled->location())) in spelledForExpanded()
397 auto FileIt = Files.find(SourceMgr->getFileID(Spelled.front().location())); in fileForSpelled()
462 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Loc))); in spelledTokensTouching()
479 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Loc))); in spelledIdentifierTouching()
[all …]
/external/llvm-project/clang/lib/CodeGen/
DCoverageMappingGen.cpp228 return SM.getLocForStartOfFile(SM.getFileID(Loc)); in getStartOfFileOrMacro()
234 return Loc.getLocWithOffset(SM.getFileIDSize(SM.getFileID(Loc)) - in getEndOfFileOrMacro()
236 return SM.getLocForEndOfFile(SM.getFileID(Loc)); in getEndOfFileOrMacro()
242 : SM.getIncludeLoc(SM.getFileID(Loc)); in getIncludeOrExpansionLoc()
288 FileID File = SM.getFileID(Loc); in gatherFileIDs()
311 FileIDMapping[SM.getFileID(Loc)] = std::make_pair(Mapping.size(), Loc); in gatherFileIDs()
312 Mapping.push_back(CVM.getFileID(Entry)); in gatherFileIDs()
320 auto Mapping = FileIDMapping.find(SM.getFileID(Loc)); in getCoverageFileID()
398 assert(SM.getFileID(LocStart).isValid() && "region in invalid file"); in emitSourceRegions()
482 FileID StartFileID = SM.getFileID(Start); in VisitDecl()
[all …]
/external/llvm-project/clang-tools-extra/clangd/index/
DSymbolCollector.cpp308 SM.getFileID(SM.getSpellingLoc(Loc)) == SM.getMainFileID()) in handleDeclOccurrence()
350 SM.getFileID(SM.getFileLoc(Loc)) == SM.getMainFileID())) in handleDeclOccurrence()
429 (Opts.RefsInHeaders || SM.getFileID(SpellingLoc) == SM.getMainFileID())) in handleMacroOccurrence()
446 SM.getFileID(SpellingLoc) == SM.getMainFileID()) in handleMacroOccurrence()
470 shouldIndexFile(SM.getFileID(Loc)); in handleMacroOccurrence()
589 auto FileID = SM.getFileID(LocAndRole.Loc); in finish()
613 const auto FileID = SM.getFileID(LocAndRole.Loc); in finish()
669 shouldIndexFile(SM.getFileID(Loc)); in addDeclaration()
729 shouldIndexFile(SM.getFileID(Loc)); in addDefinition()
768 return getIncludeHeader(S, SM.getFileID(SM.getIncludeLoc(FID))); in getIncludeHeader()
DIndexAction.cpp61 const auto FileID = SM.getFileID(Loc); in FileChanged()
96 auto IncludingURI = toURI(SM.getFileEntryForID(SM.getFileID(HashLoc))); in InclusionDirective()
142 auto FID = SM.getFileID(SM.getExpansionLoc(D->getLocation())); in IndexAction()
/external/llvm-project/clang-tools-extra/clangd/
DDiagnostics.cpp92 if (!R.isValid() || M.getFileID(R.getBegin()) != M.getFileID(R.getEnd()) || in locationInRange()
93 M.getFileID(R.getBegin()) != M.getFileID(L)) in locationInRange()
171 return SM.getIncludeLoc(SM.getFileID(SLoc)); in getMainFileRange()
200 const auto *FE = SM.getFileEntryForID(SM.getFileID(DiagLoc)); in tryMoveToMainFile()
650 SM.getFileEntryForID(SM.getFileID(Info.getLocation())), SM); in HandleDiagnostic()
670 SM.getFileID(FixIt.RemoveRange.getBegin()) == in HandleDiagnostic()
671 SM.getFileID(FixIt.RemoveRange.getEnd())) { in HandleDiagnostic()
DSelection.cpp184 if (SM.getFileID(Next) == Target) in isFirstExpansion()
189 if (SM.getFileID(Next) == SM.getFileID(Prev)) in isFirstExpansion()
261 FileID FID = SM.getFileID(ExpandedTokens.front().location()); in test()
263 return SM.getFileID(T.location()) == FID; in test()
311 Loc = SM.getIncludeLoc(SM.getFileID(Loc))) { in testChunk()
312 if (SM.getFileID(Loc) == SelFile) in testChunk()
322 if (SM.getFileID(ArgStart) == SelFile) { in testChunk()
/external/llvm-project/clang/lib/Lex/
DPPLexerChange.cpp406 SourceMgr.getLocForStartOfFile(CurPPLexer->getFileID()) == in HandleEndOfFile()
419 (SourceMgr.getIncludeLoc(CurPPLexer->getFileID()).isValid() || in HandleEndOfFile()
422 CurPPLexer->getFileID() == PredefinesFileID))) { in HandleEndOfFile()
428 SourceMgr.setNumCreatedFIDsForFileID(CurPPLexer->getFileID(), NumFIDs); in HandleEndOfFile()
434 ExitedFID = CurPPLexer->getFileID(); in HandleEndOfFile()
457 SourceMgr.getFileEntryForID(CurPPLexer->getFileID()))) in HandleEndOfFile()
481 CurPPLexer->getFileID() == getPredefinesFileID())) { in HandleEndOfFile()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseUsingCheck.cpp79 (Result.SourceManager->getFileID(ReplaceRange.getBegin()) != in check()
80 Result.SourceManager->getFileID(LastReplacementEnd)) || in check()
DConcatNestedNamespacesCheck.cpp22 Sources.getFileID(Loc1) == Sources.getFileID(Loc2); in locationsInSameFile()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousMissingCommaCheck.cpp43 FileID BaseFID = SM.getFileID(FirstToken); in isConcatenatedLiteralsOnPurpose()
48 FileID FID = SM.getFileID(Token); in isConcatenatedLiteralsOnPurpose()
/external/clang/include/clang/Basic/
DPlistSupport.h23 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID()
33 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID()
DSourceManager.h987 FileID getFileID(SourceLocation SpellingLoc) const { in getFileID() function
999 if (const FileEntry *F = getFileEntryForID(getFileID(SpellingLoc))) in getFilename()
1044 FileID FID = getFileID(Loc); in getModuleImportLoc()
1115 FileID FID = getFileID(Loc); in getDecomposedLoc()
1129 FileID FID = getFileID(Loc); in getDecomposedExpansionLoc()
1148 FileID FID = getFileID(Loc); in getDecomposedSpellingLoc()
1339 return getFileID(Loc1) == getFileID(Loc2); in isWrittenInSameFile()
1347 return getFileID(Loc) == getMainFileID(); in isWrittenInMainFile()
/external/clang/lib/Rewrite/
DHTMLRewrite.cpp37 FileID FID = SM.getFileID(B); in HighlightRange()
38 assert(SM.getFileID(E) == FID && "B/E not in the same file!"); in HighlightRange()
526 if (SM.getFileID(LLoc.first) != FID) { in HighlightMacros()
531 assert(SM.getFileID(LLoc.second) == FID && in HighlightMacros()
/external/llvm-project/clang/include/clang/Basic/
DPlistSupport.h40 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID()
52 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DConvertMemberFunctionsToStatic.cpp99 if (SourceMgr.getFileID(Range.getBegin()) != in getStringFromRange()
100 SourceMgr.getFileID(Range.getEnd())) in getStringFromRange()
/external/llvm-project/clang/lib/Rewrite/
DHTMLRewrite.cpp37 FileID FID = SM.getFileID(B); in HighlightRange()
38 assert(SM.getFileID(E) == FID && "B/E not in the same file!"); in HighlightRange()
613 if (SM.getFileID(LLoc.getBegin()) != FID) { in HighlightMacros()
618 assert(SM.getFileID(LLoc.getEnd()) == FID && in HighlightMacros()
/external/llvm-project/clang/lib/Format/
DTokenAnalyzer.cpp56 Env.getSourceManager().getBufferData(Env.getFileID()))) { in TokenAnalyzer()
69 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(), in process()
/external/clang/lib/Format/
DTokenAnalyzer.cpp82 Env.getSourceManager().getBufferData(Env.getFileID()))) { in TokenAnalyzer()
93 FormatTokenLexer Tokens(Env.getSourceManager(), Env.getFileID(), Style, in process()

1234567