]> granicus.if.org Git - clang/commit
Emit -Wformat properly for bit-field promotions.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 18 Dec 2018 15:54:38 +0000 (15:54 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 18 Dec 2018 15:54:38 +0000 (15:54 +0000)
commit38ed7e5d7917d18c9c7af9c49c5d83a112c6222a
tree48c69996afcbf9b3386b2b87702f7e821fd223ef
parent44eff1bd110e830f47e8f8da780bc6e00b95a342
Emit -Wformat properly for bit-field promotions.

Only explicitly look through integer and floating-point promotion where the result type is actually a promotion, which is not always the case for bit-fields in C.

Patch by Bevin Hansson.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349497 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/format-strings-bitfield-promotion.c [new file with mode: 0644]
test/Sema/format-strings-bitfield-promotion.cxx [new file with mode: 0644]