Skip to content

build(clang-tidy): improve CMake setup and apply fixes#149

Merged
ingomueller-net merged 2 commits intosubstrait-io:mainfrom
ingomueller-net:fix-clang-tidy-issues
Apr 9, 2026
Merged

build(clang-tidy): improve CMake setup and apply fixes#149
ingomueller-net merged 2 commits intosubstrait-io:mainfrom
ingomueller-net:fix-clang-tidy-issues

Conversation

@ingomueller-net
Copy link
Copy Markdown
Contributor

@ingomueller-net ingomueller-net commented Mar 31, 2026

This PR improves the way how CMake sets up clang-tidy in two ways: (1) It includes a --header-filter in order to make clang-tidy also check and fix header files and (2) it deactivates clang-tidy checks for generated code, namely by protoc and ANTLR.

This PR then applies more fixes found by clang-tidy. Curiously, some of them only show up with #148, which consumes abseil-cpp differently.

@ingomueller-net ingomueller-net marked this pull request as ready for review March 31, 2026 10:38
@ingomueller-net ingomueller-net force-pushed the fix-clang-tidy-issues branch 2 times, most recently from 13e43ee to 9852f38 Compare April 9, 2026 09:05
@ingomueller-net ingomueller-net changed the title style(clang-tidy): apply more fixes found by clang-tidy build(clang-tidy): improve CMake setup and apply fixes Apr 9, 2026
@ingomueller-net ingomueller-net force-pushed the fix-clang-tidy-issues branch from 9852f38 to e10ccaf Compare April 9, 2026 12:28
This PR improves the way how CMake sets up `clang-tidy` in two ways: (1)
It includes a `--header-filter` in order to make `clang-tidy` also check
and fix header files and (2) it deactivates `clang-tidy` checks for
generated code, namely by `protoc` and ANTLR.

This PR then applies more fixes found by `clang-tidy`. Curiously, some
of them only show up with substrait-io#148, which consumes `abseil-cpp` differently.

Signed-off-by: Ingo Müller <ingomueller@google.com>
This PR applies more fixes found by `clang-tidy`. Curiously, they only
show up with substrait-io#148, which consumes `abseil-cpp` differently.

Signed-off-by: Ingo Müller <ingomueller@google.com>
@ingomueller-net ingomueller-net force-pushed the fix-clang-tidy-issues branch from e10ccaf to 7395209 Compare April 9, 2026 12:34
@ingomueller-net ingomueller-net merged commit 0cf4958 into substrait-io:main Apr 9, 2026
4 checks passed
@ingomueller-net ingomueller-net deleted the fix-clang-tidy-issues branch April 9, 2026 12:40
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