]> granicus.if.org Git - clang/commit
Emit -Wformat properly for bit-field promotions.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 11 Dec 2018 19:18:01 +0000 (19:18 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 11 Dec 2018 19:18:01 +0000 (19:18 +0000)
commit54a049f7072a20f9e430356d46ac9e8dece79f2e
treecea5db59051845e65496a66ef3fcc7d846b0b6de
parent3c1fd418147b5218fcdba7d1d05a9c416bb500c1
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348889 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]