[clang-tools-extra] [run-clang-tidy.py] Add -directory-filter option to run-clang-tidy.py (PR #89302)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 19 07:37:27 PDT 2024


================
@@ -307,6 +307,14 @@ def main():
         "source files from compilation database to output "
         "diagnostics from.",
     )
+    parser.add_argument(
+        "-directory-filter",
+        dest="directory_filter",
+        action="append",
+        default=[],
+        help="List of directories matching the names of the "
+        "compilation database to filter.",
----------------
PiotrZSL wrote:

use regexp instead of list of directories

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


More information about the cfe-commits mailing list