File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,12 @@ void TestMixedConfig() {
6767// Test Case: No Diagnostics (ToBool=false, FromBool=false)
6868// ==========================================================
6969void TestNoDiagnostics () {
70- int x = 42 ;
71- if (x) // No warning: CheckConversionsToBool=false
72- (void )0 ;
70+ // int x = 42;
71+ // if (x) // No warning: CheckConversionsToBool=false
72+ // (void)0;
7373
74- bool b = true ;
75- int y = b; // No warning: CheckConversionsFromBool=false
74+ // bool b = true;
75+ // int y = b; // No warning: CheckConversionsFromBool=false
7676}
7777
7878// ==========================================================
@@ -88,6 +88,6 @@ void TestEdgeCases() {
8888 auto ReturnBool = []() -> bool { return true ; };
8989 int y = ReturnBool (); // CHECK-MESSAGES-FROM-BOOL: :[[@LINE]]:12: warning: implicit conversion 'bool' -> 'int'
9090
91- // Explicit casts (no diagnostics)
92- int z = static_cast <int >(b); // No warning: explicit cast
91+ // // Explicit casts (no diagnostics)
92+ // int z = static_cast<int>(b); // No warning: explicit cast
9393}
You can’t perform that action at this time.
0 commit comments