]> granicus.if.org Git - clang/commit
[SemaCXX] Silence -Wconstant-logical-operand if the operand is a 0/1 from a macro.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 28 Apr 2014 00:20:16 +0000 (00:20 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 28 Apr 2014 00:20:16 +0000 (00:20 +0000)
commit2574f8830c81c9846e897db853cc2312cbaaae93
treee878214f7bb06708606bc8ceaedc5b3039720ea0
parent22ede254f891d68019fddff0f8c32a20232b220b
[SemaCXX] Silence -Wconstant-logical-operand if the operand is a 0/1 from a macro.

Libraries specify enabled/disabled features using macro defs of 0/1, in such cases the -Wconstant-logical-operand
is noise.

rdar://15410291

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207386 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/SemaCXX/expressions.cpp