diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-02-05 20:35:30 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-02-05 20:35:30 +0000 |
| commit | 7115aee1098bddd76b7c0cde42236d813561e3a6 (patch) | |
| tree | 319111df97602558810ff2e18cd544107567da52 /clang/lib/Lex | |
| parent | c9fe3b94a5902bf730d526c2dc19da442d57a56f (diff) | |
| download | bcm5719-llvm-7115aee1098bddd76b7c0cde42236d813561e3a6.tar.gz bcm5719-llvm-7115aee1098bddd76b7c0cde42236d813561e3a6.zip | |
Add a __has_feature check for default template arguments in function
templates, a C++0x feature.
llvm-svn: 124973
Diffstat (limited to 'clang/lib/Lex')
| -rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index 4a719cac6c4..cc294ee2665 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -555,6 +555,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) { .Case("cxx_attributes", LangOpts.CPlusPlus0x) //.Case("cxx_auto_type", false) .Case("cxx_decltype", LangOpts.CPlusPlus0x) + .Case("cxx_default_function_template_args", LangOpts.CPlusPlus0x) .Case("cxx_deleted_functions", LangOpts.CPlusPlus0x) .Case("cxx_inline_namespaces", LangOpts.CPlusPlus0x) //.Case("cxx_lambdas", false) |

