Add centralized clang-tidy infrastructure#2
Conversation
209b4ce to
87b5b33
Compare
| @@ -0,0 +1,11 @@ | |||
| --- | |||
| name: Improvement | |||
| about: 'Issue to track a improvement' | |||
| ## Related ticket | ||
|
|
||
| > [!IMPORTANT] | ||
| > Please replace `[ISSUE-NUMBER]` with the issue-number that tracks this bug fix. If there is no such |
There was a problem hiding this comment.
tracks this bug fix -> this improvement
|
|
||
| # NOTE: WarningsAsErrors is yet subject to be expanded per module as compliance increases. | ||
| WarningsAsErrors: > | ||
| clang-analyzer-*, |
| --- | ||
| # Default clang-tidy configuration for S-CORE C++ modules. | ||
| # NOTE: the set of enabled checks is yet subject to be tailored per module. | ||
| Checks: > |
| @@ -0,0 +1,3 @@ | |||
| ASAN_OPTIONS=exitcode=55 allow_addr2line=1 verbosity=1 check_initialization_order=1 detect_stack_use_after_return=1 print_stats=1 halt_on_error=1 allocator_may_return_null=1 detect_leaks=1 suppressions=%ROOT%sanitizers/suppressions/asan.supp | |||
There was a problem hiding this comment.
do we also have to add "ubsan.supp" and "lsan.supp" in the template?
| @@ -0,0 +1 @@ | |||
| 8.3.0 | |||
There was a problem hiding this comment.
why specify bazelversion in tests folder?
There was a problem hiding this comment.
it's better to add separat readme file in each tool, i.e clang_tidy/readme.md, sanitizers/readme.md etc.
the readme file in root only summarizes all tools in this repo.
0e3d62d to
d584adc
Compare
…ession, remove dead clang_tidy.bazelrc, improve HeaderFilterRegex and docs
| @@ -1,3 +1,3 @@ | |||
| ASAN_OPTIONS=allocator_may_return_null=1 allow_addr2line=1 check_initialization_order=1 detect_leaks=1 detect_stack_use_after_return=1 exitcode=55 halt_on_error=1 print_stats=1 strict_string_checks=1 verbosity=1 suppressions=%ROOT%sanitizers/suppressions/asan.supp | |||
There was a problem hiding this comment.
could you please seperate the tsan, ubsn and lsan changes to a seperate PR?
rmaddikery
left a comment
There was a problem hiding this comment.
Would be ideal to see ONLY the changes related to Adding centralized clang-tidy infrastructure and not sanitizers.
| module(name = "score_cpp_policies") | ||
| module( | ||
| name = "score_cpp_policies", | ||
| version = "0.0.0", |
There was a problem hiding this comment.
The version = "0.0.0", is not really needed
| bazel_dep(name = "rules_go", version = "0.60.0", repo_name = "io_bazel_rules_go") | ||
|
|
||
| bazel_dep(name = "score_cpp_policies") | ||
| bazel_dep(name = "score_cpp_policies", version = "0.0.0") |
There was a problem hiding this comment.
The , version = "0.0.0" is not needed here either
| bazel_dep(name = "toolchains_llvm", version = "1.7.0") | ||
| bazel_dep(name = "rules_cc", version = "0.2.17") | ||
|
|
||
| bazel_dep(name = "rules_go", version = "0.60.0", repo_name = "io_bazel_rules_go") |
Summary
Adds centralized clang-tidy support to `score_cpp_policies`.