[clang-tools-extra] Extend support for specifying languages and version in add_new_check.py (PR #100129)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 23 08:58:02 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 {
----------------
PiotrZSL wrote:
would be nice to add also getCheckTraversalKind with a TK_IgnoreUnlessSpelledInSource used by default
https://github.com/llvm/llvm-project/pull/100129
More information about the cfe-commits
mailing list