Home
last modified time | relevance | path

Searched refs:RetLoc (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseNodiscardCheck.cpp119 SourceLocation RetLoc = MatchedDecl->getInnerLocStart(); in check() local
123 auto Diag = diag(RetLoc, "function %0 should be marked %1") in check()
134 Diag << FixItHint::CreateInsertion(RetLoc, (NoDiscardMacro + " ").str()); in check()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmt.h270 SourceLocation RetLoc; in alignas() local
2848 SourceLocation getReturnLoc() const { return ReturnStmtBits.RetLoc; } in getReturnLoc()
2849 void setReturnLoc(SourceLocation L) { ReturnStmtBits.RetLoc = L; } in setReturnLoc()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DEasilySwappableParametersCheck.cpp378 if (const TypeLoc RetLoc = FTL.getReturnLoc()) in getUserDefinedConversionHighlight() local
379 return RetLoc.getSourceRange(); in getUserDefinedConversionHighlight()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DBugReporterVisitors.cpp2310 if (Optional<Loc> RetLoc = RetVal.getAs<Loc>()) in handle() local
2311 EnableNullFPSuppression = State->isNull(*RetLoc).isConstrainedTrue(); in handle()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDeclCXX.cpp8700 SourceLocation RetLoc = FD->getReturnTypeSourceRange().getBegin(); in CheckExplicitlyDefaultedComparison() local
8701 if (RetLoc.isInvalid()) in CheckExplicitlyDefaultedComparison()
8702 RetLoc = FD->getBeginLoc(); in CheckExplicitlyDefaultedComparison()
8706 Info.Category, RetLoc, ComparisonCategoryUsage::DefaultedOperator); in CheckExplicitlyDefaultedComparison()