summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPMacroExpansion.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-01-20 00:45:35 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-01-20 00:45:35 +0000
commit5e29dd3fe00825aef782c8071e5915d84344c371 (patch)
tree6cd09cdeee0d14cb1f8267acd03769bcbbd5fb11 /clang/lib/Lex/PPMacroExpansion.cpp
parent6ec3e3a728da4477f4cca941cc652cec2b064df9 (diff)
downloadbcm5719-llvm-5e29dd3fe00825aef782c8071e5915d84344c371.tar.gz
bcm5719-llvm-5e29dd3fe00825aef782c8071e5915d84344c371.zip
P0426: Make the library implementation of constexpr char_traits a little easier
by providing a memchr builtin that returns char* instead of void*. Also add a __has_feature flag to indicate the presence of constexpr forms of the relevant <string> functions. llvm-svn: 292555
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 aebebaac46a..de166c75e2c 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -1183,6 +1183,7 @@ static bool HasFeature(const Preprocessor &PP, StringRef Feature) {
.Case("cxx_attributes", LangOpts.CPlusPlus11)
.Case("cxx_auto_type", LangOpts.CPlusPlus11)
.Case("cxx_constexpr", LangOpts.CPlusPlus11)
+ .Case("cxx_constexpr_string_builtins", LangOpts.CPlusPlus11)
.Case("cxx_decltype", LangOpts.CPlusPlus11)
.Case("cxx_decltype_incomplete_return_types", LangOpts.CPlusPlus11)
.Case("cxx_default_function_template_args", LangOpts.CPlusPlus11)
OpenPOWER on IntegriCloud