[PATCH] D72565: adding __has_feature support for left c++ type_traits
kamlesh kumar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 12 04:29:55 PST 2020
kamleshbhalui created this revision.
kamleshbhalui added reviewers: rsmith, aaron.ballman, dblaikie, ldionne.
kamleshbhalui added a project: clang.
Herald added subscribers: cfe-commits, dexonsmith.
adding __has_feature support for left c++ type_traits.
fixes this
https://bugs.llvm.org/show_bug.cgi?id=44517
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72565
Files:
clang/include/clang/Basic/Features.def
Index: clang/include/clang/Basic/Features.def
===================================================================
--- clang/include/clang/Basic/Features.def
+++ clang/include/clang/Basic/Features.def
@@ -216,6 +216,10 @@
FEATURE(is_trivially_constructible, LangOpts.CPlusPlus)
FEATURE(is_trivially_copyable, LangOpts.CPlusPlus)
FEATURE(is_union, LangOpts.CPlusPlus)
+FEATURE(is_same, LangOpts.CPlusPlus)
+FEATURE(is_function, LangOpts.CPlusPlus)
+FEATURE(is_assignable, LangOpts.CPlusPlus)
+FEATURE(is_nothrow_constructible, LangOpts.CPlusPlus)
FEATURE(modules, LangOpts.Modules)
FEATURE(safe_stack, LangOpts.Sanitize.has(SanitizerKind::SafeStack))
FEATURE(shadow_call_stack,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72565.237531.patch
Type: text/x-patch
Size: 682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200112/f8ec27d6/attachment.bin>
More information about the cfe-commits
mailing list