]> granicus.if.org Git - clang/commit
Revert r318456 "Issue -Wempty-body warnings for else blocks"
authorHans Wennborg <hans@hanshq.net>
Mon, 20 Nov 2017 17:48:54 +0000 (17:48 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 20 Nov 2017 17:48:54 +0000 (17:48 +0000)
commite45231fd48ab31692aedfdcf5b6471a33d6c77f7
tree95797c720846183f46eaf33c7b40f495c62c6a7f
parent8a8b67ce4b5e7deb94593a9e3d007e45adecbf39
Revert r318456 "Issue -Wempty-body warnings for else blocks"

This caused warnings also when the if or else comes from macros. There was an
attempt to fix this in r318556, but that introduced new problems and was
reverted. Reverting this too until the whole issue is sorted.

> This looks like it was just an oversight.
>
> Fixes http://llvm.org/pr35319
>
> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318456 91177308-0d34-0410-b5e6-96231b3b80d8

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318667 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaStmt.cpp
test/SemaCXX/warn-empty-body.cpp