[clang-tools-extra] [clang-tidy] Add an option to treat warnings as errors (PR #128221)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 11 10:21:47 PDT 2025
================
@@ -374,6 +379,8 @@ def main():
common_clang_tidy_args.append("-extra-arg-before=%s" % arg)
for plugin in args.plugins:
common_clang_tidy_args.append("-load=%s" % plugin)
+ if args.warnings_as_errors != "":
----------------
PiotrZSL wrote:
probably this would be sufficient:
```suggestion
if args.warnings_as_errors:
```
https://github.com/llvm/llvm-project/pull/128221
More information about the cfe-commits
mailing list