diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-24 11:43:30 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-24 11:43:30 +0100 |
commit | 827de7f4198281bc8dbc886f49ce96a04fcb72ab (patch) | |
tree | c9cff5e1691131a24c53347a3707b5ab81ced337 | |
parent | af72d1b9d1745944cd7842905d2d8ac3f8d1d640 (diff) |
Clarify that loplugin:unnecessaryparen doesn't want to warn about sizeof
...for whatever reason
Change-Id: Iaae919dc6c636c4846c548914e593cb8bd94fe8b
-rw-r--r-- | compilerplugins/clang/test/unnecessaryparen.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/unnecessaryparen.cxx b/compilerplugins/clang/test/unnecessaryparen.cxx index 4e85fe97076f..c4bc0573505a 100644 --- a/compilerplugins/clang/test/unnecessaryparen.cxx +++ b/compilerplugins/clang/test/unnecessaryparen.cxx @@ -61,6 +61,9 @@ int main() if ((s2 = s1)) { return 0; } + + (void) sizeof (int); + (void) sizeof (x); // expect no warning (for whatever reason; for symmetry with above case?) }; /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |