Skip to content

Commit 08d6512

Browse files
committed
[clang-tidy] Add additional test for readability-redundant-inline-specifier
Signed-off-by: Björn Svensson <[email protected]>
1 parent 88e15b7 commit 08d6512

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

clang-tools-extra/test/clang-tidy/checkers/readability/redundant-inline-specifier.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,15 @@ class A
149149
// CHECK-FIXES-STRICT: static float test4;
150150
};
151151
}
152+
153+
namespace ns {
154+
class B
155+
{
156+
public:
157+
~B();
158+
};
159+
160+
inline B::~B() = default;
161+
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: function '~B' has inline specifier but is implicitly inlined [readability-redundant-inline-specifier]
162+
// CHECK-FIXES: B::~B() = default;
163+
}

0 commit comments

Comments
 (0)