Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DMacroExpansionContext.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()
H A DPathDiagnostic.cpp163 FullSourceLoc L = piece->getLocation().asLocation().getExpansionLoc(); in HandlePathDiagnostic()
175 SourceLocation L = SMgr.getExpansionLoc(I.getBegin()); in HandlePathDiagnostic()
180 L = SMgr.getExpansionLoc(I.getEnd()); in HandlePathDiagnostic()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DPlistSupport.h37 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID()
49 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID()
107 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation()
H A DJsonSupport.h123 printSourceLocationAsJson(Out, SM.getExpansionLoc(Loc), SM, false);
H A DSourceLocation.h392 FullSourceLoc getExpansionLoc() const;
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceLocation.cpp79 SM.getExpansionLoc(*this).print(OS, SM); in print()
126 auto PrintedLoc = PrintDifference(OS, SM, SM.getExpansionLoc(Loc), Previous); in PrintDifference()
162 FullSourceLoc FullSourceLoc::getExpansionLoc() const { in getExpansionLoc() function in FullSourceLoc
164 return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr); in getExpansionLoc()
H A DSarif.cpp215 OptionalFileEntryRef FE = Start.getExpansionLoc().getFileEntryRef(); in createPhysicalLocation()
H A DDiagnosticIDs.cpp549 SM.isInSystemHeader(SM.getExpansionLoc(Loc))) { in getDiagnosticSeverity()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp253 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in getIssueHash()
298 SMgr.getExpansionLoc(path.back()->getLocation().asLocation()), in ReportDiag()
300 FullSourceLoc FunL(SMgr.getExpansionLoc(Body->getBeginLoc()), SMgr); in ReportDiag()
335 path.back()->getLocation().asLocation().getExpansionLoc().getFileID(); in ReportDiag()
383 FileID FID = I->getLocation().asLocation().getExpansionLoc().getFileID(); in GenerateHTML()
439 path.back()->getLocation().asLocation().getExpansionLoc().getFileID(); in GenerateHTML()
659 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in FinalizeHTML()
909 const char *TokInstantiationPtr =Pos.getExpansionLoc().getCharacterData(); in HandlePiece()
1034 FullSourceLoc L = MP->getLocation().asLocation().getExpansionLoc(); in HandlePiece()
1249 SourceLocation InstantiationStart = SM.getExpansionLoc(Range.getBegin()); in HighlightRange()
[all …]
H A DPlistDiagnostics.cpp265 SM.getExpansionLoc(I->getStart().asRange().getBegin())); in ReportControlFlow()
270 SourceRange EndEdge(SM.getExpansionLoc(I->getEnd().asRange().getBegin())); in ReportControlFlow()
381 P->getLocation().asLocation().getExpansionLoc(); in ReportMacroExpansions()
698 FullSourceLoc L(SM.getExpansionLoc(UPDLoc.isValid() in FlushDiagnosticsImpl()
748 SM.getExpansionLoc( in FlushDiagnosticsImpl()
757 FullSourceLoc FunL(SM.getExpansionLoc(Body->getBeginLoc()), SM); in FlushDiagnosticsImpl()
H A DBugReporter.cpp1604 SourceRange ExpansionRange(SM.getExpansionLoc(Range.getBegin()), in getLengthOnSingleLine()
1998 FullSourceLoc Loc = P->getLocation().asLocation().getExpansionLoc(); in updateExecutedLinesWithDiagnosticPieces()
2762 SM.getExpansionLoc(Loc) : in CompactMacroExpandedPieces()
2784 SM.getExpansionLoc(Loc) : in CompactMacroExpandedPieces()
3239 FileID FID = SM.getFileID(SM.getExpansionLoc(Start)); in populateExecutedLinesWithFunctionSignature()
3250 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in populateExecutedLinesWithStmt()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDependencyGraph.cpp83 SM.getFileEntryRefForID(SM.getFileID(SM.getExpansionLoc(HashLoc))); in InclusionDirective()
101 SM.getFileEntryRefForID(SM.getFileID(SM.getExpansionLoc(HashLoc))); in EmbedDirective()
H A DSARIFDiagnostic.cpp81 FileID CaretFileID = Loc.getExpansionLoc().getFileID(); in addLocationToResult()
89 SourceLocation B = SM.getExpansionLoc(Range.getBegin()); in addLocationToResult()
H A DHeaderIncludeGen.cpp423 SourceLocation Loc = SM.getExpansionLoc(HashLoc); in InclusionDirective()
439 SourceLocation Loc = SM.getExpansionLoc(ImportLoc); in moduleImport()
H A DTextDiagnostic.cpp843 FileID CaretFileID = Loc.getExpansionLoc().getFileID(); in emitDiagnosticLoc()
852 SourceLocation B = SM.getExpansionLoc(R.getBegin()); in emitDiagnosticLoc()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp113 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
198 PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DTokens.cpp275 SourceMgr->getFileID(SourceMgr->getExpansionLoc(Expanded->location()))); in spelledForExpandedToken()
653 Range.setBegin(SM.getExpansionLoc(Range.getBegin())); in MacroExpands()
764 : SM.getExpansionLoc( in discard()
811 SourceLocation Expansion = SM.getExpansionLoc(Tok.location()); in advance()
841 SM.getExpansionLoc( in advance()
870 auto FID = SM.getFileID(SM.getExpansionLoc(Tok.location())); in buildSpelledTokens()
H A DComputeReplacements.cpp84 SM, SM.getExpansionLoc(Expanded.begin()->location()), /*Length=*/0); in rangeOfExpanded()
/freebsd/contrib/llvm-project/clang/lib/Rewrite/
H A DHTMLRewrite.cpp36 B = SM.getExpansionLoc(B); in HighlightRange()
37 E = SM.getExpansionLoc(E); in HighlightRange()
697 SM.getExpansionLoc(Tok.getLocation()) == LLoc.getBegin()) { in HighlightMacrosImpl()
/freebsd/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesManager.cpp351 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in findAPINotes()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRewriteRule.cpp458 return Result.SourceManager->getExpansionLoc( in getRuleMatchLoc()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DAnalysisConsumer.cpp678 return SM.getExpansionLoc(SL); in getModeForDecl()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DTokenLexer.cpp74 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation()); in Init()
H A DPPExpressions.cpp903 SourceLocation ExprStartLoc = SourceMgr.getExpansionLoc(Tok.getLocation()); in EvaluateDirectiveExpression()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h253 SourceManager.getExpansionLoc(Node.getBeginLoc())); in AST_POLYMORPHIC_MATCHER()
273 auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc()); in AST_POLYMORPHIC_MATCHER()
300 auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc()); in AST_POLYMORPHIC_MATCHER_REGEX()

12