| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | MacroExpansionContext.cpp | 36 SourceLocation MacroNameBegin = SM.getExpansionLoc(MacroName.getLocation()); in MacroExpands() 37 assert(MacroNameBegin == SM.getExpansionLoc(Range.getBegin())); in MacroExpands() 42 return SM.getExpansionLoc( in MacroExpands() 46 return SM.getExpansionLoc(Range.getEnd()).getLocWithOffset(1); in MacroExpands() 214 SourceLocation CurrExpansionLoc = SM->getExpansionLoc(SLoc); in onTokenLexed()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | PlistSupport.h | 40 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID() 52 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID() 111 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation()
|
| H A D | JsonSupport.h | 127 printSourceLocationAsJson(Out, SM.getExpansionLoc(Loc), SM, false);
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | SourceLocation.cpp | 81 SM.getExpansionLoc(*this).print(OS, SM); in print() 128 auto PrintedLoc = PrintDifference(OS, SM, SM.getExpansionLoc(Loc), Previous); in PrintDifference() 164 FullSourceLoc FullSourceLoc::getExpansionLoc() const { in getExpansionLoc() function in FullSourceLoc 166 return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr); in getExpansionLoc()
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransformActions.cpp | 71 Begin = FullSourceLoc(srcMgr.getExpansionLoc(beginLoc), srcMgr); in CharRange() 74 Begin = FullSourceLoc(srcMgr.getExpansionLoc(beginLoc), srcMgr); in CharRange() 75 End = FullSourceLoc(srcMgr.getExpansionLoc(endLoc), srcMgr); in CharRange() 388 if (SM.isInSystemHeader(SM.getExpansionLoc(loc))) in canInsert() 401 if (SM.isInSystemHeader(SM.getExpansionLoc(loc))) in canInsertAfterToken() 423 loc = SM.getExpansionLoc(loc); in canReplaceText() 484 loc = SM.getExpansionLoc(loc); in commitReplaceText() 498 SM.getExpansionLoc(parentIndent))); in commitIncreaseIndentation() 508 loc = SM.getExpansionLoc(loc); in addInsertion()
|
| H A D | TransBlockObjCVariable.cpp | 142 Pass.TA.replaceText(SM.getExpansionLoc(attr->getLocation()), in traverseBody()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | HTMLDiagnostics.cpp | 252 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in getIssueHash() 297 SMgr.getExpansionLoc(path.back()->getLocation().asLocation()), in ReportDiag() 299 FullSourceLoc FunL(SMgr.getExpansionLoc(Body->getBeginLoc()), SMgr); in ReportDiag() 327 path.back()->getLocation().asLocation().getExpansionLoc().getFileID(); in ReportDiag() 375 FileID FID = I->getLocation().asLocation().getExpansionLoc().getFileID(); in GenerateHTML() 431 path.back()->getLocation().asLocation().getExpansionLoc().getFileID(); in GenerateHTML() 650 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in FinalizeHTML() 900 const char *TokInstantiationPtr =Pos.getExpansionLoc().getCharacterData(); in HandlePiece() 1025 FullSourceLoc L = MP->getLocation().asLocation().getExpansionLoc(); in HandlePiece() 1239 SourceLocation InstantiationStart = SM.getExpansionLoc(Range.getBegin()); in HighlightRange() [all …]
|
| H A D | PlistDiagnostics.cpp | 267 SM.getExpansionLoc(I->getStart().asRange().getBegin())); in ReportControlFlow() 272 SourceRange EndEdge(SM.getExpansionLoc(I->getEnd().asRange().getBegin())); in ReportControlFlow() 385 P->getLocation().asLocation().getExpansionLoc(); in ReportMacroExpansions() 702 FullSourceLoc L(SM.getExpansionLoc(UPDLoc.isValid() in FlushDiagnosticsImpl() 752 SM.getExpansionLoc( in FlushDiagnosticsImpl() 761 FullSourceLoc FunL(SM.getExpansionLoc(Body->getBeginLoc()), SM); in FlushDiagnosticsImpl()
|
| H A D | SarifDiagnostics.cpp | 266 *P.asLocation().getExpansionLoc().getFileEntry(), in createThreadFlow() 297 *Diag.getLocation().asLocation().getExpansionLoc().getFileEntry(), in createResult()
|
| /llvm-project-15.0.7/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteMacros.cpp | 114 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput() 199 PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | ElseAfterReturnCheck.cpp | 120 return Context.getSourceManager().getExpansionLoc(Loc); in removeElseAndBrackets() 191 SourceLocation ExpandedStartLoc = SM.getExpansionLoc(StartLoc); in hasPreprocessorBranchEndBetweenLocations() 192 SourceLocation ExpandedEndLoc = SM.getExpansionLoc(EndLoc); in hasPreprocessorBranchEndBetweenLocations()
|
| /llvm-project-15.0.7/clang/lib/Rewrite/ |
| H A D | HTMLRewrite.cpp | 35 B = SM.getExpansionLoc(B); in HighlightRange() 36 E = SM.getExpansionLoc(E); in HighlightRange() 634 SM.getExpansionLoc(Tok.getLocation()) == LLoc.getBegin()) { in HighlightMacros()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | GlobalNamesInHeadersCheck.cpp | 56 Result.SourceManager->getExpansionLoc(D->getBeginLoc()))) { in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
| H A D | FindAllMacros.cpp | 41 if (!MD || !SM->isInMainFile(SM->getExpansionLoc(Name.getLocation()))) in MacroUsed()
|
| H A D | FindAllSymbols.cpp | 100 SourceLocation Loc = SM.getExpansionLoc(ND->getLocation()); in CreateSymbolInfo()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | FileExtensionsUtils.cpp | 19 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in isExpansionLocInHeaderFile()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 330 SourceMgr->getFileID(SourceMgr->getExpansionLoc(Expanded->location()))); in spelledForExpandedToken() 703 Range.setBegin(SM.getExpansionLoc(Range.getBegin())); in MacroExpands() 814 : SM.getExpansionLoc( in discard() 861 SourceLocation Expansion = SM.getExpansionLoc(Tok.location()); in advance() 891 SM.getExpansionLoc( in advance() 920 auto FID = SM.getFileID(SM.getExpansionLoc(Tok.location())); in buildSpelledTokens()
|
| H A D | ComputeReplacements.cpp | 84 SM, SM.getExpansionLoc(Expanded.begin()->location()), /*Length=*/0); in rangeOfExpanded()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | RedundantVoidArgCheck.cpp | 107 End = Result.SourceManager->getExpansionLoc(End); in processFunctionDecl() 250 Result.SourceManager->getExpansionLoc(Var->getInit()->getBeginLoc()) in processVarDecl()
|
| H A D | UseOverrideCheck.cpp | 159 Sources.getExpansionLoc(A->getRange().getBegin()); in check()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | DependencyGraph.cpp | 84 SM.getFileEntryRefForID(SM.getFileID(SM.getExpansionLoc(HashLoc))); in InclusionDirective()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | BranchCloneCheck.cpp | 225 EndLoc = Context.getSourceManager().getExpansionLoc(EndLoc); in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | IndexAction.cpp | 148 auto FID = SM.getFileID(SM.getExpansionLoc(D->getLocation())); in IndexAction()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-move/ |
| H A D | Move.cpp | 115 auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc()); in AST_POLYMORPHIC_MATCHER_P() 314 SourceRange Full(SM.getExpansionLoc(D->getBeginLoc()), getLocForEndOfDecl(D)); in getFullRange() 340 auto ExpansionLoc = SM.getExpansionLoc(D->getBeginLoc()); in isInHeaderFile()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | FindSymbols.cpp | 250 FallbackNameLoc = SM.getExpansionLoc(NameLoc); in declToSym() 253 NameLoc = SM.getExpansionLoc(NameLoc); in declToSym()
|