[PATCH] D63423: [Diagnostics] Diagnose misused xor as pow
Dávid Bolvanský via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 17 11:58:11 PDT 2019
xbolva00 marked an inline comment as done.
xbolva00 added inline comments.
================
Comment at: test/SemaCXX/warn-xor-as-pow.cpp:85
+ res = XOR(10, 10);
+ res = 10^-7;
+}
----------------
What should we suggest here ? :) Nevative shift ? think we should diagnose it.
I am not sure about 10 ^ 0 case... warn or not ?
@jfb
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63423/new/
https://reviews.llvm.org/D63423
More information about the cfe-commits
mailing list