Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMAKE_CLANG_TIDY #125

Merged
merged 1 commit into from
Oct 16, 2024
Merged

CMAKE_CLANG_TIDY #125

merged 1 commit into from
Oct 16, 2024

Conversation

John-LittleBearLabs
Copy link
Collaborator

is optional. Default off.
Version not required.

Fixes #123

is optional. Default off.
Version not required.

Fixes #123
@@ -76,11 +76,12 @@ add_library(ipfs_client
${sources}
${headers} #Mostly for IDEs' sake - this used to be considered bad practice but... generator expressions and such
)
if(CLANG_TIDY_EXE)
if(USE_CLANG_TIDY AND CLANG_TIDY_EXE)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the essence of the change that motivates the PR.

If the clang-tidy you have installed on the system is too old to handle the options in the.clang-tidy file... or not installed... the build should just continue without failing all over the place for failure to generate additional static-analysis warnings.

This is most important in some CI environments, and in particular the conan-center Windows builders have ancient clang-tidy installed.

@John-LittleBearLabs John-LittleBearLabs changed the base branch from aresfail to main October 8, 2024 14:43
@John-LittleBearLabs John-LittleBearLabs merged commit 7dceff4 into main Oct 16, 2024
8 of 9 checks passed
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.

User-selected cmake cache variable for enabling clang-tidy
2 participants