Home
last modified time | relevance | path

Searched refs:getExpansionLineNumber (Results 1 – 23 of 23) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMisleadingIndentationCheck.cpp26 if (SM.getExpansionLineNumber(PreviousElseLoc) == in getPrecedingIf()
27 SM.getExpansionLineNumber(If->getIfLoc())) in getPrecedingIf()
42 if (SM.getExpansionLineNumber(If->getThen()->getEndLoc()) == in danglingElseCheck()
43 SM.getExpansionLineNumber(ElseLoc)) in danglingElseCheck()
88 if (SM.getExpansionLineNumber(InnerLoc) == in missingBracesCheck()
89 SM.getExpansionLineNumber(OuterLoc)) in missingBracesCheck()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DIssueHash.cpp141 L.getExpansionLineNumber()); in NormalizeLine()
148 SM.translateLineCol(SM.getFileID(L), L.getExpansionLineNumber(), col); in NormalizeLine()
H A DAnalysisDeclContext.cpp492 Out << SM.getExpansionLineNumber(Loc); in printLocation()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DIncludeOrderCheck.cpp117 if (SM.getExpansionLineNumber(FileDirectives[I].Loc) != in EndOfMainFile()
118 SM.getExpansionLineNumber(FileDirectives[I - 1].Loc) + 1) in EndOfMainFile()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceLocation.cpp226 unsigned FullSourceLoc::getExpansionLineNumber(bool *Invalid) const { in getExpansionLineNumber() function in FullSourceLoc
228 return SrcMgr->getExpansionLineNumber(*this, Invalid); in getExpansionLineNumber()
H A DSarif.cpp154 json::Object Region{{"startLine", FirstTokenLoc.getExpansionLineNumber()}, in createTextRegion()
158 Region["endLine"] = LastTokenLoc.getExpansionLineNumber(); in createTextRegion()
H A DSourceManager.cpp1445 unsigned SourceManager::getExpansionLineNumber(SourceLocation Loc, in getExpansionLineNumber() function in SourceManager
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DStackAddrEscapeChecker.cpp82 << SM.getExpansionLineNumber(CL->getBeginLoc()) << " returned to caller"; in genName()
89 << SM.getExpansionLineNumber(L); in genName()
95 << SM.getExpansionLineNumber(L); in genName()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp300 offsetDecl = L.getExpansionLineNumber() - FunL.getExpansionLineNumber(); in ReportDiag()
554 int LineNumber = path.back()->getLocation().asLocation().getExpansionLineNumber(); in FinalizeHTML()
592 P->getLocation().asLocation().getExpansionLineNumber(); in FinalizeHTML()
1240 unsigned StartLineNo = SM.getExpansionLineNumber(InstantiationStart); in HighlightRange()
1243 unsigned EndLineNo = SM.getExpansionLineNumber(InstantiationEnd); in HighlightRange()
H A DPlistDiagnostics.cpp756 << L.getExpansionLineNumber() - UFunL.getExpansionLineNumber() in FlushDiagnosticsImpl()
763 << L.getExpansionLineNumber() - FunL.getExpansionLineNumber() in FlushDiagnosticsImpl()
H A DSarifDiagnostics.cpp184 {"startLine", SM.getExpansionLineNumber(R.getBegin())}, in createTextRegion()
190 Region["endLine"] = SM.getExpansionLineNumber(R.getEnd()); in createTextRegion()
H A DBugReporter.cpp600 << getSourceManager().getExpansionLineNumber(Loc.asLocation()) in ExecutionContinues()
760 << End.asLocation().getExpansionLineNumber(); in generateDiagForSwitchOP()
764 << End.asLocation().getExpansionLineNumber(); in generateDiagForSwitchOP()
789 os << ":' at line " << End.asLocation().getExpansionLineNumber(); in generateDiagForSwitchOP()
808 os << "Control jumps to line " << End.asLocation().getExpansionLineNumber(); in generateDiagForGotoOP()
3143 unsigned StartLine = SM.getExpansionLineNumber(Start); in populateExecutedLinesWithFunctionSignature()
3144 unsigned EndLine = SM.getExpansionLineNumber(End); in populateExecutedLinesWithFunctionSignature()
3159 unsigned LineNo = SM.getExpansionLineNumber(ExpansionLoc); in populateExecutedLinesWithStmt()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DPlistSupport.h115 EmitInteger(o, Loc.getExpansionLineNumber()) << '\n'; in EmitLocation()
H A DSourceLocation.h398 unsigned getExpansionLineNumber(bool *Invalid = nullptr) const;
H A DSourceManager.h1411 unsigned getExpansionLineNumber(SourceLocation Loc, bool *Invalid = nullptr) const;
/llvm-project-15.0.7/clang/lib/Frontend/
H A DTextDiagnostic.cpp937 return std::make_pair(SM.getExpansionLineNumber(Begin), in findLinesForRange()
938 SM.getExpansionLineNumber(End)); in findLinesForRange()
988 unsigned StartLineNo = SM.getExpansionLineNumber(Begin); in highlightRange()
992 unsigned EndLineNo = SM.getExpansionLineNumber(End); in highlightRange()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXSourceLocation.cpp256 *line = SM.getExpansionLineNumber(ExpansionLoc); in clang_getExpansionLocation()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DClangTidyDiagnosticConsumer.cpp550 unsigned LineNumber = Sources.getExpansionLineNumber(Location); in checkFilters()
/llvm-project-15.0.7/clang/lib/AST/
H A DJSONNodeDumper.cpp245 : SM.getExpansionLineNumber(Loc); in writeBareSourceLocation()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp954 if (SM->getExpansionLineNumber(LocEnd) > in RewriteMethodDeclaration()
955 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
H A DRewriteModernObjC.cpp1114 if (SM->getExpansionLineNumber(LocEnd) > in RewriteMethodDeclaration()
1115 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp1746 EXPECT_EQ(Loc1.getExpansionLineNumber(), Loc2.getExpansionLineNumber()); in CompareSourceLocs()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenModule.cpp2745 SM.getExpansionLineNumber(L); in EmitAnnotationLineNo()