[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 18 11:14:13 PDT 2025


================
@@ -0,0 +1,63 @@
+====================================
+Query Based Custom Clang-Tidy Checks
+====================================
+
+Introduction
+============
+
+This page provides examples of how to add query based custom checks for
+:program:`clang-tidy`.
+
+Custom checks are based on :program:`clang-query` syntax. Every custom checks
+will be registered in `custom` module to avoid name conflict. They can be
+enabled or disabled by the checks option like the built-in checks.
+
+Custom checks support inheritance from parent configurations like other
+configuration items.
+
+Goal: easy to write, cross platform, multiple versions supported toolkit for
----------------
vbvictor wrote:

```suggestion
Goals: easy to write, cross platform, multiple versions supported toolkit for
```

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


More information about the cfe-commits mailing list