Home
last modified time | relevance | path

Searched refs:getExpansionLoc (Results 1 – 25 of 73) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/Analysis/
H A DMacroExpansionContext.cpp36 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 DPlistSupport.h40 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 DJsonSupport.h127 printSourceLocationAsJson(Out, SM.getExpansionLoc(Loc), SM, false);
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceLocation.cpp81 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 DTransformActions.cpp71 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 DTransBlockObjCVariable.cpp142 Pass.TA.replaceText(SM.getExpansionLoc(attr->getLocation()), in traverseBody()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp252 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 DPlistDiagnostics.cpp267 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 DSarifDiagnostics.cpp266 *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 DRewriteMacros.cpp114 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 DElseAfterReturnCheck.cpp120 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 DHTMLRewrite.cpp35 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 DGlobalNamesInHeadersCheck.cpp56 Result.SourceManager->getExpansionLoc(D->getBeginLoc()))) { in check()
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DFindAllMacros.cpp41 if (!MD || !SM->isInMainFile(SM->getExpansionLoc(Name.getLocation()))) in MacroUsed()
H A DFindAllSymbols.cpp100 SourceLocation Loc = SM.getExpansionLoc(ND->getLocation()); in CreateSymbolInfo()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DFileExtensionsUtils.cpp19 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in isExpansionLocInHeaderFile()
/llvm-project-15.0.7/clang/lib/Tooling/Syntax/
H A DTokens.cpp330 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 DComputeReplacements.cpp84 SM, SM.getExpansionLoc(Expanded.begin()->location()), /*Length=*/0); in rangeOfExpanded()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DRedundantVoidArgCheck.cpp107 End = Result.SourceManager->getExpansionLoc(End); in processFunctionDecl()
250 Result.SourceManager->getExpansionLoc(Var->getInit()->getBeginLoc()) in processVarDecl()
H A DUseOverrideCheck.cpp159 Sources.getExpansionLoc(A->getRange().getBegin()); in check()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DDependencyGraph.cpp84 SM.getFileEntryRefForID(SM.getFileID(SM.getExpansionLoc(HashLoc))); in InclusionDirective()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DBranchCloneCheck.cpp225 EndLoc = Context.getSourceManager().getExpansionLoc(EndLoc); in check()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DIndexAction.cpp148 auto FID = SM.getFileID(SM.getExpansionLoc(D->getLocation())); in IndexAction()
/llvm-project-15.0.7/clang-tools-extra/clang-move/
H A DMove.cpp115 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 DFindSymbols.cpp250 FallbackNameLoc = SM.getExpansionLoc(NameLoc); in declToSym()
253 NameLoc = SM.getExpansionLoc(NameLoc); in declToSym()

123