Skip to content

Conversation

bavulapati
Copy link
Contributor

@bavulapati bavulapati commented Jul 17, 2025

Follow up #1824 (comment)

Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
sourcemeta_library(NAMESPACE sourcemeta PROJECT core NAME yaml
PRIVATE_HEADERS error.h
SOURCES yaml.cc)
sourcemeta_clang_tidy_attempt_enable(TARGET_NAME "sourcemeta_core_yaml")
Copy link
Member

Choose a reason for hiding this comment

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

Can you instead do this by default on the definition of sourcemeta_library and sourcemeta_executable? Then you don't have to add it for every library


function(sourcemeta_clang_tidy_attempt_disable)
unset(CMAKE_CXX_CLANG_TIDY PARENT_SCOPE)
set_target_properties("${SOURCEMETA_CLANG_TIDY_TARGET_NAME}"
Copy link
Member

Choose a reason for hiding this comment

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

Did you confirm this works? I haven't tried it yet, but when I tried your past PR, it wouldn't seem to like it called ClangTidy at all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is tested locally

bavulapati and others added 2 commits July 18, 2025 16:21
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Copy link
Member

@jviotti jviotti left a comment

Choose a reason for hiding this comment

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

Very nice. I just added a small commit cleaning some stuff up so we can merge it fast.

@jviotti
Copy link
Member

jviotti commented Jul 18, 2025

Ah, I think there is a conflict on the removal of the C++ standard. I'll let you fix that and then we can merge

@bavulapati
Copy link
Contributor Author

@jviotti The conflict is resolved. Can we merge this?

@bavulapati bavulapati force-pushed the clang-tidy-target-level branch from c606fa8 to 176e98d Compare July 21, 2025 14:06
@bavulapati
Copy link
Contributor Author

@jviotti Let's merge this before others to avoid merge conflicts on this PR.

@jviotti jviotti merged commit 5ddb95c into sourcemeta:main Jul 21, 2025
14 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.

2 participants