Skip to content

Add style-readability checks to clang-tidy config#392

Open
sahithi-nukala wants to merge 1 commit into
eclipse-score:mainfrom
sahithi-nukala:sah_clang_readability_checks
Open

Add style-readability checks to clang-tidy config#392
sahithi-nukala wants to merge 1 commit into
eclipse-score:mainfrom
sahithi-nukala:sah_clang_readability_checks

Conversation

@sahithi-nukala
Copy link
Copy Markdown
Contributor

@sahithi-nukala sahithi-nukala commented May 7, 2026

  • Configure CheckOptions for bugprone, and readability
  • checks with std:: types and SCORE_LANGUAGE_FUTURECPP assert macros.

Comment thread .clang-tidy Outdated
Comment thread .clang-tidy Outdated
Comment thread .clang-tidy Outdated
@sahithi-nukala sahithi-nukala force-pushed the sah_clang_readability_checks branch from 5b33a07 to 5242687 Compare May 11, 2026 11:03
@sahithi-nukala sahithi-nukala requested a review from limdor May 11, 2026 11:21
Copy link
Copy Markdown
Contributor

@limdor limdor left a comment

Choose a reason for hiding this comment

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

I did not finish the review but I see several custom types missing. Please take a look to the other configs and add also the custom types.

Comment thread .clang-tidy
Comment thread .clang-tidy
@sahithi-nukala sahithi-nukala force-pushed the sah_clang_readability_checks branch 2 times, most recently from a8ef2e4 to eeee021 Compare May 12, 2026 19:21
@sahithi-nukala sahithi-nukala requested a review from limdor May 13, 2026 05:16
Comment thread .clang-tidy Outdated
value: >
::score::cpp::basic_string_view;
::score::cpp::span;
::score::safecpp::basic_zstring_view;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
::score::safecpp::basic_zstring_view;

I got this wrong in the previous review. zstring_view is perfectly fine because it is guaranteed to be null terminated.
With so many checks it is hard to review. I tought I would be able to handle but it would be great if you could split it again and have a PR only with the # --- extra ---

@sahithi-nukala sahithi-nukala force-pushed the sah_clang_readability_checks branch from eeee021 to 0041791 Compare May 13, 2026 17:04
@sahithi-nukala sahithi-nukala force-pushed the sah_clang_readability_checks branch from 0041791 to 0928883 Compare May 13, 2026 17:51
@sahithi-nukala sahithi-nukala requested a review from limdor May 13, 2026 17:52
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