Skip to content

Commit fd1f7dc

Browse files
[Test]Update implicit-bool-conversion-check.cpp
Just for testing purpose of BuildKite.
1 parent dac44f4 commit fd1f7dc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

clang-tools-extra/test/clang-tidy/checkers/readability/implicit-bool-conversion-check.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ void TestMixedConfig() {
6767
// Test Case: No Diagnostics (ToBool=false, FromBool=false)
6868
// ==========================================================
6969
void 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
}

0 commit comments

Comments
 (0)