Skip to content

Commit 15b485a

Browse files
committed
[clang-tidy] Bind outer class in constructor matcher
1 parent 7323c1b commit 15b485a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang-tools-extra/clang-tidy/modernize/PassByValueCheck.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ void PassByValueCheck::registerMatchers(MatchFinder *Finder) {
214214
traverse(
215215
TK_AsIs,
216216
cxxConstructorDecl(
217+
ofClass(cxxRecordDecl().bind("outer")),
217218
forEachConstructorInitializer(
218219
cxxCtorInitializer(
219220
unless(isBaseInitializer()),

0 commit comments

Comments
 (0)