@@ -97,6 +97,9 @@ The improvements are...
Improvements to clang-tidy
--
+- Improved :program:`run-clang-tidy.py` script. Added argument `-source-filter`
+ to filter out source files from the compilation database.
duddel wrote:
Ok, I c
https://github.com/duddel updated
https://github.com/llvm/llvm-project/pull/82416
>From a3596bf357ef991abcaef04f8811958c0984d9f6 Mon Sep 17 00:00:00 2001
From: duddel
Date: Tue, 20 Feb 2024 21:11:26 +0100
Subject: [PATCH 1/5] add -source-ignore option to run-clang-tidy.py
---
.../clang-tidy/t
@@ -462,6 +469,19 @@ def main():
[make_absolute(entry["file"], entry["directory"]) for entry in
database]
)
+# Filter source files from compilation database.
+if args.source_filter:
+try:
+source_filter_re = re.compile(args.source_filte
@@ -300,6 +300,13 @@ def main():
"the main file of each translation unit are always "
"displayed.",
)
+parser.add_argument(
+"-source-filter",
duddel wrote:
see 13510698c238ee380b28fe0847332a4b4db49b5a
https://github.com/llvm/l
@@ -462,6 +469,18 @@ def main():
[make_absolute(entry["file"], entry["directory"]) for entry in
database]
)
+# Filter source files from compilation database.
+if args.source_filter:
+try:
+source_filter_re = re.compile(args.source_filte
https://github.com/duddel updated
https://github.com/llvm/llvm-project/pull/82416
>From a3596bf357ef991abcaef04f8811958c0984d9f6 Mon Sep 17 00:00:00 2001
From: duddel
Date: Tue, 20 Feb 2024 21:11:26 +0100
Subject: [PATCH 1/4] add -source-ignore option to run-clang-tidy.py
---
.../clang-tidy/t
https://github.com/duddel edited https://github.com/llvm/llvm-project/pull/82416
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/duddel updated
https://github.com/llvm/llvm-project/pull/82416
>From a3596bf357ef991abcaef04f8811958c0984d9f6 Mon Sep 17 00:00:00 2001
From: duddel
Date: Tue, 20 Feb 2024 21:11:26 +0100
Subject: [PATCH 1/3] add -source-ignore option to run-clang-tidy.py
---
.../clang-tidy/t
duddel wrote:
> > Why "ignore" instead of "filter"?
>
> Why can't we make "filter" use a full regex that supports negative
> expressions instead?
We can. I provide a patch that inverts the logic (`-source-filter`), so it is
aligned with `-header-filter`.
https://github.com/llvm/llvm-project/
https://github.com/duddel updated
https://github.com/llvm/llvm-project/pull/82416
>From a3596bf357ef991abcaef04f8811958c0984d9f6 Mon Sep 17 00:00:00 2001
From: duddel
Date: Tue, 20 Feb 2024 21:11:26 +0100
Subject: [PATCH 1/2] add -source-ignore option to run-clang-tidy.py
---
.../clang-tidy/t
10 matches
Mail list logo