[clang] [Clang] Add __datasizeof (PR #67805)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 13 12:02:13 PDT 2023
================
@@ -236,6 +236,7 @@ FEATURE(shadow_call_stack,
FEATURE(tls, PP.getTargetInfo().isTLSSupported())
FEATURE(underlying_type, LangOpts.CPlusPlus)
FEATURE(experimental_library, LangOpts.ExperimentalLibrary)
+FEATURE(datasizeof, LangOpts.CPlusPlus)
----------------
AaronBallman wrote:
Oh my. That behavior makes sense, but is really not helpful in this case.
You could use compiler version macro checks instead of `__has_extension`. That's pretty gross and likely easy to forget, but would it be a viable workaround?
https://github.com/llvm/llvm-project/pull/67805
More information about the cfe-commits
mailing list