summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/test/simplifypointertobool.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/test/simplifypointertobool.cxx')
-rw-r--r--compilerplugins/clang/test/simplifypointertobool.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/clang/test/simplifypointertobool.cxx b/compilerplugins/clang/test/simplifypointertobool.cxx
index 18e1da607bb8..e4bf14c40f45 100644
--- a/compilerplugins/clang/test/simplifypointertobool.cxx
+++ b/compilerplugins/clang/test/simplifypointertobool.cxx
@@ -18,7 +18,8 @@ bool test1(std::unique_ptr<int> p2)
foo();
// expected-error@+1 {{simplify, drop the get() and wrap the expression in a functional cast to bool [loplugin:simplifypointertobool]}}
bool b1 = p2.get();
- //TODO:
+ // expected-error@+3 {{simplify, drop the get() and turn the surrounding parentheses into a functional cast to bool [loplugin:simplifypointertobool]}}
+ // expected-note@+1 {{surrounding parentheses here [loplugin:simplifypointertobool]}}
bool b2 = ( // deliberately spread across multiple lines
p2.get());
return b1 && b2;