Issue |
156149
|
Summary |
[clang-tidy] Enable more checks in `.clang-tidy` config.
|
Labels |
clang-tidy,
code-quality
|
Assignees |
|
Reporter |
vbvictor
|
There are some useful checks that are disabled in [.clang-tidy](https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clang-tidy/.clang-tidy) config.
Each check should be analyzed for usefulness and enabled (or kept disabled) with closing corresponding subissue:
- bugprone-suspicious-stringview-data-usage
- bugprone-unchecked-optional-access
- bugprone-unused-return-value
- modernize-pass-by-value
- modernize-use-auto
- performance-type-promotion-in-math-fn
- performance-unnecessary-value-param
- readability-container-contains
- readability-convert-member-functions-to-static
- readability-named-parameter
- readability-simplify-boolean-expr
- readability-use-anyofallof
Command to run:
```console
./clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -checks='-*,my-check-name' -p build -quiet clang-tools-extra/clang-tidy/
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs