[clang-tools-extra] Extend support for specifying languages and version in add_new_check.py (PR #100129)
Nathan James via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 23 09:09:21 PDT 2024
================
@@ -53,7 +55,18 @@ def adapt_cmake(module_path, check_name_camel):
# Adds a header for the new check.
-def write_header(module_path, module, namespace, check_name, check_name_camel):
+def write_header(
+ module_path, module, namespace, check_name, check_name_camel, lang_restrict
+):
+ if lang_restrict:
+ override_supported = """
+ bool isLanguageVersionSupported(const LangOptions &LangOpts) const override {
----------------
njames93 wrote:
That's a good idea for a follow up :)
https://github.com/llvm/llvm-project/pull/100129
More information about the cfe-commits
mailing list