/external/llvm-project/clang/lib/Basic/ |
D | SourceLocation.cpp | 151 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/ |
D | SourceLocation.cpp | 80 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/ |
D | IssueHash.cpp | 140 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/ |
D | IssueHash.cpp | 133 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/ |
D | DiagnosticRenderer.cpp | 275 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/ |
D | DiagnosticRenderer.cpp | 266 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/ |
D | CoverageMappingGen.cpp | 111 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/ |
D | Tokens.cpp | 73 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/ |
D | CoverageMappingGen.cpp | 228 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/ |
D | SymbolCollector.cpp | 308 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()
|
D | IndexAction.cpp | 61 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/ |
D | Diagnostics.cpp | 92 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()
|
D | Selection.cpp | 184 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/ |
D | PPLexerChange.cpp | 406 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/ |
D | UseUsingCheck.cpp | 79 (Result.SourceManager->getFileID(ReplaceRange.getBegin()) != in check() 80 Result.SourceManager->getFileID(LastReplacementEnd)) || in check()
|
D | ConcatNestedNamespacesCheck.cpp | 22 Sources.getFileID(Loc1) == Sources.getFileID(Loc2); in locationsInSameFile()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | SuspiciousMissingCommaCheck.cpp | 43 FileID BaseFID = SM.getFileID(FirstToken); in isConcatenatedLiteralsOnPurpose() 48 FileID FID = SM.getFileID(Token); in isConcatenatedLiteralsOnPurpose()
|
/external/clang/include/clang/Basic/ |
D | PlistSupport.h | 23 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID() 33 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID()
|
D | SourceManager.h | 987 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/ |
D | HTMLRewrite.cpp | 37 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/ |
D | PlistSupport.h | 40 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/ |
D | ConvertMemberFunctionsToStatic.cpp | 99 if (SourceMgr.getFileID(Range.getBegin()) != in getStringFromRange() 100 SourceMgr.getFileID(Range.getEnd())) in getStringFromRange()
|
/external/llvm-project/clang/lib/Rewrite/ |
D | HTMLRewrite.cpp | 37 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/ |
D | TokenAnalyzer.cpp | 56 Env.getSourceManager().getBufferData(Env.getFileID()))) { in TokenAnalyzer() 69 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(), in process()
|
/external/clang/lib/Format/ |
D | TokenAnalyzer.cpp | 82 Env.getSourceManager().getBufferData(Env.getFileID()))) { in TokenAnalyzer() 93 FormatTokenLexer Tokens(Env.getSourceManager(), Env.getFileID(), Style, in process()
|