Skip to content

Enable readability-string-compare and fix warning#565

Open
gaul wants to merge 1 commit intointel:thermald_nextfrom
gaul:clang-tidy/readability-string-compare
Open

Enable readability-string-compare and fix warning#565
gaul wants to merge 1 commit intointel:thermald_nextfrom
gaul:clang-tidy/readability-string-compare

Conversation

@gaul
Copy link
Copy Markdown
Contributor

@gaul gaul commented May 6, 2026

No description provided.

Signed-off-by: Andrew Gaul <andrew@gaul.org>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enables the readability-string-compare clang-tidy check and updates code to satisfy the new warning by replacing std::string::compare(...)-based equality with operator==.

Changes:

  • Enable readability-string-compare in .clang-tidy.
  • Replace !std::string::compare(...) with == for string equality in cthd_gddv::get_trip_temp().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/thd_gddv.cpp Uses operator== for string equality to comply with readability-string-compare.
.clang-tidy Enables readability-string-compare in the project’s clang-tidy configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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