]> granicus.if.org Git - clang/commit
Teach -Wunsequenced that the side-effects of a function evaluation are sequenced
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 30 Jun 2013 10:40:20 +0000 (10:40 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 30 Jun 2013 10:40:20 +0000 (10:40 +0000)
commit0c0b3909d11de7440d77556089516918b9c04cef
tree1b4762f53bfa32d52f57b2ce7ae1381eb1a7dfda
parentaa4bc18240c03b5ed7952aa5e013c081f8733ed3
Teach -Wunsequenced that the side-effects of a function evaluation are sequenced
before the value computation of the result. In C, this is implied by there being
a sequence point after their evaluation, and in C++, it's implied by the
side-effects being sequenced before the expressions and statements in the
function body.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185282 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/warn-unsequenced.c
test/SemaCXX/warn-unsequenced.cpp