@@ -785,56 +785,61 @@ class TestBool : public TestFixture {
785785 check (" void f(_Bool a, _Bool b) {\n "
786786 " if(a & b) {}\n "
787787 " }" );
788- ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean variable 'a' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
788+ ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean expression 'a' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
789789
790790 check (" void f(_Bool a, _Bool b) {\n "
791791 " if(a | b) {}\n "
792792 " }" );
793- ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean variable 'a' is used in bitwise operation. Did you mean '||'?\n " , errout.str ());
793+ ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean expression 'a' is used in bitwise operation. Did you mean '||'?\n " , errout.str ());
794794
795795 check (" void f(bool a, bool b) {\n "
796796 " if(a & !b) {}\n "
797797 " }" );
798- ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean variable 'a' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
798+ ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean expression 'a' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
799799
800800 check (" void f(bool a, bool b) {\n "
801801 " if(a | !b) {}\n "
802802 " }" );
803- ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean variable 'a' is used in bitwise operation. Did you mean '||'?\n " , errout.str ());
803+ ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean expression 'a' is used in bitwise operation. Did you mean '||'?\n " , errout.str ());
804804
805805 check (" bool a, b;\n "
806806 " void f() {\n "
807807 " if(a & b) {}\n "
808808 " }" );
809- ASSERT_EQUALS (" [test.cpp:3]: (style, inconclusive) Boolean variable 'a' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
809+ ASSERT_EQUALS (" [test.cpp:3]: (style, inconclusive) Boolean expression 'a' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
810810
811811 check (" bool a, b;\n "
812812 " void f() {\n "
813813 " if(a & !b) {}\n "
814814 " }" );
815- ASSERT_EQUALS (" [test.cpp:3]: (style, inconclusive) Boolean variable 'a' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
815+ ASSERT_EQUALS (" [test.cpp:3]: (style, inconclusive) Boolean expression 'a' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
816816
817817 check (" bool a, b;\n "
818818 " void f() {\n "
819819 " if(a | b) {}\n "
820820 " }" );
821- ASSERT_EQUALS (" [test.cpp:3]: (style, inconclusive) Boolean variable 'a' is used in bitwise operation. Did you mean '||'?\n " , errout.str ());
821+ ASSERT_EQUALS (" [test.cpp:3]: (style, inconclusive) Boolean expression 'a' is used in bitwise operation. Did you mean '||'?\n " , errout.str ());
822822
823823 check (" bool a, b;\n "
824824 " void f() {\n "
825825 " if(a | !b) {}\n "
826826 " }" );
827- ASSERT_EQUALS (" [test.cpp:3]: (style, inconclusive) Boolean variable 'a' is used in bitwise operation. Did you mean '||'?\n " , errout.str ());
827+ ASSERT_EQUALS (" [test.cpp:3]: (style, inconclusive) Boolean expression 'a' is used in bitwise operation. Did you mean '||'?\n " , errout.str ());
828828
829829 check (" void f(bool a, int b) {\n "
830830 " if(a & b) {}\n "
831831 " }" );
832- ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean variable 'a' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
832+ ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean expression 'a' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
833833
834834 check (" void f(int a, bool b) {\n "
835835 " if(a & b) {}\n "
836836 " }" );
837- ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean variable 'b' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
837+ ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean expression 'b' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
838+
839+ check (" void f(int a, int b) {\n "
840+ " if((a > 0) & (b < 0)) {}\n "
841+ " }" );
842+ ASSERT_EQUALS (" [test.cpp:2]: (style, inconclusive) Boolean expression 'a>0' is used in bitwise operation. Did you mean '&&'?\n " , errout.str ());
838843
839844 check (" void f(int a, int b) {\n "
840845 " if(a & b) {}\n "
0 commit comments