Implement parser support for the 'condition' part of C++ selection-statements and...
commit873f2783b98fe10de2e99d704ff176090b15e285
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Tue, 9 Sep 2008 20:38:47 +0000 (9 20:38 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Tue, 9 Sep 2008 20:38:47 +0000 (9 20:38 +0000)
tree0466eb3657ad0a3045834832e0ce684fb2c97256
parent36269d2e3e2ae4a3fa2699e36eeeb1d64bfb03ff
Implement parser support for the 'condition' part of C++ selection-statements and iteration-statements (if/switch/while/for).
Add new 'ActOnCXXConditionDeclarationExpr' action, called when the 'condition' is a declaration instead of an expression.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56007 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticKinds.def
include/clang/Parse/Action.h
include/clang/Parse/DeclSpec.h
include/clang/Parse/Parser.h
include/clang/Parse/Scope.h
lib/Parse/ParseExprCXX.cpp
lib/Parse/ParseStmt.cpp
test/Parser/cxx-condition.cpp [new file with mode: 0644]