Home
last modified time | relevance | path

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

12

/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/
HDMacroExpansionContext.cpp37 SourceLocation MacroNameBegin = SM.getExpansionLoc(MacroName.getLocation()); in MacroExpands()
38 assert(MacroNameBegin == SM.getExpansionLoc(Range.getBegin())); in MacroExpands()
43 return SM.getExpansionLoc( in MacroExpands()
47 return SM.getExpansionLoc(Range.getEnd()).getLocWithOffset(1); in MacroExpands()
215 SourceLocation CurrExpansionLoc = SM->getExpansionLoc(SLoc); in onTokenLexed()
HDPathDiagnostic.cpp168 FullSourceLoc L = piece->getLocation().asLocation().getExpansionLoc(); in HandlePathDiagnostic()
180 SourceLocation L = SMgr.getExpansionLoc(I.getBegin()); in HandlePathDiagnostic()
185 L = SMgr.getExpansionLoc(I.getEnd()); in HandlePathDiagnostic()
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Basic/
HDPlistSupport.h40 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID()
52 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID()
110 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation()
HDJsonSupport.h123 printSourceLocationAsJson(Out, SM.getExpansionLoc(Loc), SM, false);
HDSourceLocation.h390 FullSourceLoc getExpansionLoc() const;
/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/
HDSourceLocation.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()
HDSarif.cpp216 OptionalFileEntryRef FE = Start.getExpansionLoc().getFileEntryRef(); in createPhysicalLocation()
HDDiagnosticIDs.cpp587 Diag.getSourceManager().getExpansionLoc(Loc))) in getDiagnosticSeverity()
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/
HDTransformActions.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()
HDTransBlockObjCVariable.cpp142 Pass.TA.replaceText(SM.getExpansionLoc(attr->getLocation()), in traverseBody()
HDTransGCAttrs.cpp173 return SM.isInFileID(SM.getExpansionLoc(Loc), SM.getMainFileID()); in isInMainFile()
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
HDHTMLDiagnostics.cpp255 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in getIssueHash()
300 SMgr.getExpansionLoc(path.back()->getLocation().asLocation()), in ReportDiag()
302 FullSourceLoc FunL(SMgr.getExpansionLoc(Body->getBeginLoc()), SMgr); in ReportDiag()
337 path.back()->getLocation().asLocation().getExpansionLoc().getFileID(); in ReportDiag()
385 FileID FID = I->getLocation().asLocation().getExpansionLoc().getFileID(); in GenerateHTML()
441 path.back()->getLocation().asLocation().getExpansionLoc().getFileID(); in GenerateHTML()
661 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in FinalizeHTML()
911 const char *TokInstantiationPtr =Pos.getExpansionLoc().getCharacterData(); in HandlePiece()
1036 FullSourceLoc L = MP->getLocation().asLocation().getExpansionLoc(); in HandlePiece()
1250 SourceLocation InstantiationStart = SM.getExpansionLoc(Range.getBegin()); in HighlightRange()
[all …]
HDPlistDiagnostics.cpp268 SM.getExpansionLoc(I->getStart().asRange().getBegin())); in ReportControlFlow()
273 SourceRange EndEdge(SM.getExpansionLoc(I->getEnd().asRange().getBegin())); in ReportControlFlow()
384 P->getLocation().asLocation().getExpansionLoc(); in ReportMacroExpansions()
701 FullSourceLoc L(SM.getExpansionLoc(UPDLoc.isValid() in FlushDiagnosticsImpl()
751 SM.getExpansionLoc( in FlushDiagnosticsImpl()
760 FullSourceLoc FunL(SM.getExpansionLoc(Body->getBeginLoc()), SM); in FlushDiagnosticsImpl()
HDBugReporter.cpp1587 SourceRange ExpansionRange(SM.getExpansionLoc(Range.getBegin()), in getLengthOnSingleLine()
1981 FullSourceLoc Loc = P->getLocation().asLocation().getExpansionLoc(); in updateExecutedLinesWithDiagnosticPieces()
2718 SM.getExpansionLoc(Loc) : in CompactMacroExpandedPieces()
2740 SM.getExpansionLoc(Loc) : in CompactMacroExpandedPieces()
3191 FileID FID = SM.getFileID(SM.getExpansionLoc(Start)); in populateExecutedLinesWithFunctionSignature()
3202 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in populateExecutedLinesWithStmt()
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/
HDDependencyGraph.cpp83 SM.getFileEntryRefForID(SM.getFileID(SM.getExpansionLoc(HashLoc))); in InclusionDirective()
101 SM.getFileEntryRefForID(SM.getFileID(SM.getExpansionLoc(HashLoc))); in EmbedDirective()
HDSARIFDiagnostic.cpp81 FileID CaretFileID = Loc.getExpansionLoc().getFileID(); in addLocationToResult()
89 SourceLocation B = SM.getExpansionLoc(Range.getBegin()); in addLocationToResult()
HDTextDiagnostic.cpp845 FileID CaretFileID = Loc.getExpansionLoc().getFileID(); in emitDiagnosticLoc()
854 SourceLocation B = SM.getExpansionLoc(R.getBegin()); in emitDiagnosticLoc()
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
HDRewriteMacros.cpp114 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
199 PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/
HDTokens.cpp277 SourceMgr->getFileID(SourceMgr->getExpansionLoc(Expanded->location()))); in spelledForExpandedToken()
655 Range.setBegin(SM.getExpansionLoc(Range.getBegin())); in MacroExpands()
766 : SM.getExpansionLoc( in discard()
813 SourceLocation Expansion = SM.getExpansionLoc(Tok.location()); in advance()
843 SM.getExpansionLoc( in advance()
872 auto FID = SM.getFileID(SM.getExpansionLoc(Tok.location())); in buildSpelledTokens()
HDComputeReplacements.cpp84 SM, SM.getExpansionLoc(Expanded.begin()->location()), /*Length=*/0); in rangeOfExpanded()
/freebsd-13-stable/contrib/llvm-project/clang/lib/Rewrite/
HDHTMLRewrite.cpp37 B = SM.getExpansionLoc(B); in HighlightRange()
38 E = SM.getExpansionLoc(E); in HighlightRange()
698 SM.getExpansionLoc(Tok.getLocation()) == LLoc.getBegin()) { in HighlightMacrosImpl()
/freebsd-13-stable/contrib/llvm-project/clang/lib/APINotes/
HDAPINotesManager.cpp352 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in findAPINotes()
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/ASTDiff/
HDASTDiff.cpp1003 unsigned Begin = SrcMgr.getFileOffset(SrcMgr.getExpansionLoc(BeginLoc)); in getSourceRangeOffsets()
1004 unsigned End = SrcMgr.getFileOffset(SrcMgr.getExpansionLoc(EndLoc)); in getSourceRangeOffsets()
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
HDAnalysisConsumer.cpp644 return SM.getExpansionLoc(SL); in getModeForDecl()
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/
HDRewriteRule.cpp459 return Result.SourceManager->getExpansionLoc( in getRuleMatchLoc()

12