]> granicus.if.org Git - clang/commit
Add -Wunsequenced (with compatibility alias -Wsequence-point) to warn on
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 17 Jan 2013 01:17:56 +0000 (01:17 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 17 Jan 2013 01:17:56 +0000 (01:17 +0000)
commit6c3af3d0e3e65bcbca57bfd458d684941f6d0531
treedc6c72dcaeeb055c067aef38923b0f866de34281
parent4637d18deb6a9789e9ab1717c9ddde53dff9aead
Add -Wunsequenced (with compatibility alias -Wsequence-point) to warn on
expressions which have undefined behavior due to multiple unsequenced
modifications or an unsequenced modification and use of a variable.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172690 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/EvaluatedExprVisitor.h
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaChecking.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/altivec.cpp
test/SemaCXX/warn-unsequenced.cpp [new file with mode: 0644]