Skip to content

Add centralized clang-tidy infrastructure#2

Draft
RSingh1511 wants to merge 1 commit intoeclipse-score:mainfrom
RSingh1511:rs/clang_tidy
Draft

Add centralized clang-tidy infrastructure#2
RSingh1511 wants to merge 1 commit intoeclipse-score:mainfrom
RSingh1511:rs/clang_tidy

Conversation

@RSingh1511
Copy link
Copy Markdown

Summary

Adds centralized clang-tidy support to `score_cpp_policies`.

@RSingh1511 RSingh1511 force-pushed the rs/clang_tidy branch 3 times, most recently from 209b4ce to 87b5b33 Compare March 25, 2026 05:08
@RSingh1511 RSingh1511 requested a review from rmaddikery March 25, 2026 05:09
@@ -0,0 +1,11 @@
---
name: Improvement
about: 'Issue to track a improvement'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Issue to track an improvement'

## Related ticket

> [!IMPORTANT]
> Please replace `[ISSUE-NUMBER]` with the issue-number that tracks this bug fix. If there is no such
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tracks this bug fix -> this improvement


# NOTE: WarningsAsErrors is yet subject to be expanded per module as compliance increases.
WarningsAsErrors: >
clang-analyzer-*,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove ","

---
# Default clang-tidy configuration for S-CORE C++ modules.
# NOTE: the set of enabled checks is yet subject to be tailored per module.
Checks: >
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use ">" or ">-"?

@@ -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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we also have to add "ubsan.supp" and "lsan.supp" in the template?

@@ -0,0 +1 @@
8.3.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why specify bazelversion in tests folder?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@RSingh1511 RSingh1511 force-pushed the rs/clang_tidy branch 4 times, most recently from 15bde1a to 0e3d62d Compare April 13, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants