llvm-project/clang/lib/Parse
Meador Inge f0af05c4a5 [Parse] Allow 'constexpr' in condition declarations
This patch implements the functionality specified by DR948.
The changes are two fold.  First, the parser was modified
to allow 'constexpr's to appear in condition declarations
(which was a hard error before).  Second, Sema was modified
to cleanup maybe odr-used declarations by way of a call to
'ActOnFinishFullExpr'.  As 'constexpr's were not allowed in
condition declarations before the cleanup wasn't necessary
(such declarations were always odr-used).

This fixes PR22491.

Differential Revision: http://reviews.llvm.org/D8978

llvm-svn: 240707
2015-06-25 22:06:40 +00:00
..
CMakeLists.txt [CMake] Reorder libdeps by alphabetical order. 2014-07-14 04:59:27 +00:00
Makefile
ParseAST.cpp Remove unneeded include of DeclCXX.h from libParse. 2014-12-28 01:52:28 +00:00
ParseCXXInlineMethods.cpp [clang] Refactoring of conditions so they use isOneOf() instead of multiple is(). 2015-06-18 10:59:26 +00:00
ParseDecl.cpp [Parse] Allow 'constexpr' in condition declarations 2015-06-25 22:06:40 +00:00
ParseDeclCXX.cpp [clang] Refactoring of conditions so they use isOneOf() instead of multiple is(). 2015-06-18 10:59:26 +00:00
ParseExpr.cpp [Concepts] Parsing of requires-clause in template-declaration 2015-06-25 00:23:39 +00:00
ParseExprCXX.cpp [Parse] Allow 'constexpr' in condition declarations 2015-06-25 22:06:40 +00:00
ParseInit.cpp Remove many superfluous SmallString::str() calls. 2015-03-18 10:17:07 +00:00
ParseObjc.cpp Replace __double_underscored type nullability qualifiers with _Uppercase_underscored 2015-06-24 22:02:08 +00:00
ParseOpenMP.cpp [OPENMP] Initial support for 'depend' clause (4.0). 2015-06-23 14:25:19 +00:00
ParsePragma.cpp Add assume_safety option for pragma loop vectorize and interleave. 2015-06-11 23:23:17 +00:00
ParseStmt.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
ParseStmtAsm.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
ParseTemplate.cpp [Concepts] Parsing of requires-clause in template-declaration 2015-06-25 00:23:39 +00:00
ParseTentative.cpp Replace __double_underscored type nullability qualifiers with _Uppercase_underscored 2015-06-24 22:02:08 +00:00
Parser.cpp Extend type nullability qualifiers for Objective-C. 2015-06-19 18:14:38 +00:00
RAIIObjectsForParser.h Add a new error for unexpected semi-colon before closing delimiter. 2015-05-12 21:36:35 +00:00