aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/misc/UndelegatedConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tidy/misc/UndelegatedConstructor.cpp')
-rw-r--r--clang-tidy/misc/UndelegatedConstructor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tidy/misc/UndelegatedConstructor.cpp b/clang-tidy/misc/UndelegatedConstructor.cpp
index 3b6f1985..003290ee 100644
--- a/clang-tidy/misc/UndelegatedConstructor.cpp
+++ b/clang-tidy/misc/UndelegatedConstructor.cpp
@@ -72,7 +72,8 @@ void UndelegatedConstructorCheck::registerMatchers(MatchFinder *Finder) {
this);
}
-void UndelegatedConstructorCheck::check(const MatchFinder::MatchResult &Result) {
+void UndelegatedConstructorCheck::check(
+ const MatchFinder::MatchResult &Result) {
const auto *E = Result.Nodes.getStmtAs<CXXConstructExpr>("construct");
diag(E->getLocStart(), "did you intend to call a delegated constructor? "
"A temporary object is created here instead");