[clang-tools-extra] [clang-tidy] Contributing.rst update snippet and docs (PR #129209)

Carlos Galvez via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 28 01:00:53 PST 2025


================
@@ -203,6 +202,10 @@ for more information) that will find the pattern in the AST that we want to
 inspect. The results of the matching are passed to the ``check`` method, which
 can further inspect them and report diagnostics.
 
+By default, the new check applies only to C++ code. If it should apply under 
+different language options, be sure to update the ``isLanguageVersionSupported``
----------------
carlosgalvezp wrote:

Would it be better to document that one can specify the language when running `add_new_check.py --language`? Possibly earlier in this document when it describes what this script does.


https://github.com/llvm/llvm-project/pull/129209


More information about the cfe-commits mailing list