]> granicus.if.org Git - clang/commit
[Diagnostics] Do not diagnose unsigned shifts in boolean context (-Wint-in-bool-context)
authorDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 24 Sep 2019 09:14:33 +0000 (09:14 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 24 Sep 2019 09:14:33 +0000 (09:14 +0000)
commit33e9203d936781748afcd6afa89207cb81420fd4
treef9602a12e22e017447e58f2d9cbed826ba7ce2c2
parent2708d3fad7a0f9ec9792ac211240bc94e0b3a67d
[Diagnostics] Do not diagnose unsigned shifts in boolean context (-Wint-in-bool-context)

I was looking at old GCC's patch. Current "trunk" version avoids warning for unsigned case, GCC warns only for signed shifts.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372708 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Sema/warn-int-in-bool-context.c