summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPMacroExpansion.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-04-10 20:00:33 +0000
committerDouglas Gregor <dgregor@apple.com>2012-04-10 20:00:33 +0000
commit0598962a7ba56554ae1eda33990682b2f7781034 (patch)
treeef1c50d2a4a26837b91d9438823225ae42a1532c /clang/lib/Lex/PPMacroExpansion.cpp
parentf7345b027a0022d6a72cacbcb7eb9e019f6c06a3 (diff)
downloadbcm5719-llvm-0598962a7ba56554ae1eda33990682b2f7781034.tar.gz
bcm5719-llvm-0598962a7ba56554ae1eda33990682b2f7781034.zip
Add a query macro for C++11 N3276, decltype does not require complete
return types, from Michel Morin! llvm-svn: 154428
Diffstat (limited to 'clang/lib/Lex/PPMacroExpansion.cpp')
-rw-r--r--clang/lib/Lex/PPMacroExpansion.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp
index 295e9d05a62..fe7058570ef 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -649,6 +649,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
.Case("cxx_auto_type", LangOpts.CPlusPlus0x)
.Case("cxx_constexpr", LangOpts.CPlusPlus0x)
.Case("cxx_decltype", LangOpts.CPlusPlus0x)
+ .Case("cxx_decltype_incomplete_return_types", LangOpts.CPlusPlus0x)
.Case("cxx_default_function_template_args", LangOpts.CPlusPlus0x)
.Case("cxx_defaulted_functions", LangOpts.CPlusPlus0x)
.Case("cxx_delegating_constructors", LangOpts.CPlusPlus0x)
OpenPOWER on IntegriCloud