diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-08-15 21:04:07 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-08-15 21:04:07 +0000 |
commit | a77a0a6bf221b36f579f58cc5949e7b85535c2a1 (patch) | |
tree | 497bc2bc423435e559bac3ee90578e8914e19f0d /clang/lib/Parse/ParseDeclCXX.cpp | |
parent | b9d5a63c86b715a48b177c4f135e0c7538a1b7e2 (diff) | |
download | bcm5719-llvm-a77a0a6bf221b36f579f58cc5949e7b85535c2a1.tar.gz bcm5719-llvm-a77a0a6bf221b36f579f58cc5949e7b85535c2a1.zip |
Track in the AST whether a function is constexpr.
llvm-svn: 137653
Diffstat (limited to 'clang/lib/Parse/ParseDeclCXX.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDeclCXX.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp index df2c5f8e62d..7c38857f5a8 100644 --- a/clang/lib/Parse/ParseDeclCXX.cpp +++ b/clang/lib/Parse/ParseDeclCXX.cpp @@ -1264,7 +1264,8 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind, case tok::kw_typedef: // struct foo {...} typedef x; case tok::kw_register: // struct foo {...} register x; case tok::kw_auto: // struct foo {...} auto x; - case tok::kw_mutable: // struct foo {...} mutable x; + case tok::kw_mutable: // struct foo {...} mutable x; + case tok::kw_constexpr: // struct foo {...} constexpr x; // As shown above, type qualifiers and storage class specifiers absolutely // can occur after class specifiers according to the grammar. However, // almost no one actually writes code like this. If we see one of these, |