]> granicus.if.org Git - clang/commit
Emit an error for enum increments and decrements in C++ mode.
authorRichard Trieu <rtrieu@google.com>
Thu, 8 Aug 2013 01:50:23 +0000 (01:50 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 8 Aug 2013 01:50:23 +0000 (01:50 +0000)
commitfbbdc5daee4dc772d4d137080890fd79492592d6
tree7cdae24e740136717457e9672257c3eb8549d12b
parent9793fe99de5ab92162cb70a7d2584c1de0952d73
Emit an error for enum increments and decrements in C++ mode.
Fixes PR16394.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187955 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/Sema/enum-increment.c [new file with mode: 0644]
test/SemaCXX/enum-increment.cpp [new file with mode: 0644]