diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-15 04:11:24 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-15 04:11:24 +0000 |
commit | a8bb9c97c64372dc5adac7ffdc28373e5242853a (patch) | |
tree | ce96574efeb66feab2fc95b8a7748ec779de3574 /clang/lib | |
parent | dc4c9460a25fa254df78947df150ebed857f5dc2 (diff) | |
download | bcm5719-llvm-a8bb9c97c64372dc5adac7ffdc28373e5242853a.tar.gz bcm5719-llvm-a8bb9c97c64372dc5adac7ffdc28373e5242853a.zip |
Fix cxx_variable_templates feature check and documentation
This C++ feature has been marked complete since r191549, but the documentation
claimed it wasn't supported at all and the extension check misreported it as
being available in C.
No regression test; this was a short-lived typo.
llvm-svn: 199292
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index c6559b460be..721760afa0e 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -1039,7 +1039,7 @@ static bool HasExtension(const Preprocessor &PP, const IdentifierInfo *II) { // C++1y features supported by other languages as extensions. .Case("cxx_binary_literals", true) .Case("cxx_init_captures", LangOpts.CPlusPlus11) - .Case("cxx_variable_templates", true) + .Case("cxx_variable_templates", LangOpts.CPlusPlus) .Default(false); } |