Add __has_extension (cxx_defaulted_functions) and
__has_extension (cxx_default_function_template_args) since they are
accepted in C++98 mode as extensions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thank you for this! LGTM. but can you also be sure to update this table: https://github.com/llvm/llvm-project/blob/main/clang/docs/LanguageExtensions.rst?plain=1#L1429
Comment Actions
Hmm, I have a feeling that the table is for features that have __cpp_* macros defined for them. The features I intended to fix are described by the same doc here - https://github.com/llvm/llvm-project/blob/29f4c398717184a019791ed52d1d0d69ed5dabb6/clang/docs/LanguageExtensions.rst?plain=1#L1071 .
Comment Actions
Oh shoot, you're right, these don't have the typical feature testing macros from http://eel.is/c++draft/tab:cpp.predefined.ft ! Sorry for the noise, this is fine as-is.