Debian Codegraph @

clang/test/FixIt/fixit-bool.cpp

raw
1 // RUN: %clang_cc1 -fdiagnostics-parseable-fixits -std=c++26 -Wint-in-bool-context %s 2>&1 | FileCheck %s
2
3 int x;
4 bool t1 = x << x;
5 // CHECK-LABEL: 4:13: warning: converting the result of '<<' to a boolean
6 // CHECK: fix-it:"{{.*}}":{4:11-4:11}:"("
7 // CHECK-NEXT: fix-it:"{{.*}}":{4:17-4:17}:") != 0"