We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de09ef commit 40cee38Copy full SHA for 40cee38
clang-tools-extra/test/clang-tidy/checkers/bugprone-unused-raii.cpp
@@ -64,6 +64,13 @@ void test() {
64
// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: object destroyed immediately after creation; did you mean to name the object?
65
// CHECK-FIXES: FooBar give_me_a_name;
66
67
+ Foo{42};
68
+ // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: object destroyed immediately after creation; did you mean to name the object?
69
+ // CHECK-FIXES: Foo give_me_a_name{42};
70
+ FooBar{};
71
72
+ // CHECK-FIXES: FooBar give_me_a_name;
73
+
74
templ<FooBar>();
75
templ<Bar>();
76
0 commit comments