Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/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()
H A DPathDiagnostic.cpp171 FullSourceLoc L = piece->getLocation().asLocation().getExpansionLoc(); in HandlePathDiagnostic()
183 SourceLocation L = SMgr.getExpansionLoc(I.getBegin()); in HandlePathDiagnostic()
188 L = SMgr.getExpansionLoc(I.getEnd()); in HandlePathDiagnostic()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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.h125 printSourceLocationAsJson(Out, SM.getExpansionLoc(Loc), SM, false);
H A DSourceLocation.h390 FullSourceLoc getExpansionLoc() const;
/netbsd-src/external/apache2/llvm/dist/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()
H A DTransGCAttrs.cpp173 return SM.isInFileID(SM.getExpansionLoc(Loc), SM.getMainFileID()); in isInMainFile()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp240 FileID ReportFile = path.front()->getLocation().asLocation().getExpansionLoc().getFileID(); in ReportDiag()
253 SMgr.getExpansionLoc(path.back()->getLocation().asLocation()), in ReportDiag()
255 FullSourceLoc FunL(SMgr.getExpansionLoc(Body->getBeginLoc()), SMgr); in ReportDiag()
325 FileID FID = I->getLocation().asLocation().getExpansionLoc().getFileID(); in GenerateHTML()
381 path.back()->getLocation().asLocation().getExpansionLoc().getFileID(); in GenerateHTML()
590 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in FinalizeHTML()
817 const char *TokInstantiationPtr =Pos.getExpansionLoc().getCharacterData(); in HandlePiece()
942 FullSourceLoc L = MP->getLocation().asLocation().getExpansionLoc(); in HandlePiece()
1059 SourceLocation InstantiationStart = SM.getExpansionLoc(Range.getBegin()); in HighlightRange()
1062 SourceLocation InstantiationEnd = SM.getExpansionLoc(Range.getEnd()); in HighlightRange()
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()
H A DBugReporter.cpp1566 SourceRange ExpansionRange(SM.getExpansionLoc(Range.getBegin()), in getLengthOnSingleLine()
1960 FullSourceLoc Loc = P->getLocation().asLocation().getExpansionLoc(); in updateExecutedLinesWithDiagnosticPieces()
2673 SM.getExpansionLoc(Loc) : in CompactMacroExpandedPieces()
2695 SM.getExpansionLoc(Loc) : in CompactMacroExpandedPieces()
3112 FileID FID = SM.getFileID(SM.getExpansionLoc(Start)); in populateExecutedLinesWithFunctionSignature()
3123 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in populateExecutedLinesWithStmt()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp114 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
199 PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Rewrite/
H A DHTMLRewrite.cpp35 B = SM.getExpansionLoc(B); in HighlightRange()
36 E = SM.getExpansionLoc(E); in HighlightRange()
633 SM.getExpansionLoc(Tok.getLocation()) == LLoc.getBegin()) { in HighlightMacros()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Syntax/
H A DTokens.cpp235 SourceMgr->getFileID(SourceMgr->getExpansionLoc(Expanded->location()))); in spelledForExpandedToken()
609 Range.setBegin(SM.getExpansionLoc(Range.getBegin())); in MacroExpands()
720 : SM.getExpansionLoc( in discard()
767 SourceLocation Expansion = SM.getExpansionLoc(Tok.location()); in advance()
797 SM.getExpansionLoc( in advance()
826 auto FID = SM.getFileID(SM.getExpansionLoc(Tok.location())); in buildSpelledTokens()
H A DComputeReplacements.cpp77 SM, SM.getExpansionLoc(Expanded.begin()->location()), /*Length=*/0); in rangeOfExpanded()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DDependencyGraph.cpp84 = SM.getFileEntryForID(SM.getFileID(SM.getExpansionLoc(HashLoc))); in InclusionDirective()
H A DDependencyFile.cpp50 SM.getFileID(SM.getExpansionLoc(Loc)))) in FileChanged()
H A DTextDiagnostic.cpp855 FileID CaretFileID = Loc.getExpansionLoc().getFileID(); in emitDiagnosticLoc()
865 SourceLocation B = SM.getExpansionLoc(RI->getBegin()); in emitDiagnosticLoc()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/DependencyScanning/
H A DModuleDepCollector.cpp122 SM.getNonBuiltinFilenameForID(SM.getFileID(SM.getExpansionLoc(Loc)))) in FileChanged()
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DCXSourceLocation.cpp241 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in clang_getExpansionLocation()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/
H A DRewriteRule.cpp425 return Result.SourceManager->getExpansionLoc( in getRuleMatchLoc()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp1004 unsigned Begin = SrcMgr.getFileOffset(SrcMgr.getExpansionLoc(BeginLoc)); in getSourceRangeOffsets()
1005 unsigned End = SrcMgr.getFileOffset(SrcMgr.getExpansionLoc(EndLoc)); in getSourceRangeOffsets()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Frontend/
H A DAnalysisConsumer.cpp638 SL = SM.getExpansionLoc(SL); in getModeForDecl()

12