Skip to content

Fix clang-tidy on master: mark ParserTransactionControl::getDocumentation [[nodiscard]] - #131891

Merged
murphy-4o merged 1 commit into
ClickHouse:masterfrom
murphy-4o:fix/tidy-nodiscard-parser-transaction-control
Nov 16, 2026
Merged

murphy-4o merged 1 commit into
ClickHouse:masterfrom
murphy-4o:fix/tidy-nodiscard-parser-transaction-control

Conversation

@murphy-4o

@murphy-4o murphy-4o commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Related: #126158
Related: #131664

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Description

Fixes the clang-tidy build on master (Build (arm_tidy, 2/4..4/4) fail since 980235e9d01): #131664 added ParserTransactionControl::getDocumentation without [[nodiscard]], and #126158 enabled modernize-use-nodiscard. Each was green alone. This is the only such site among the files master changed after #126158's last master merge.

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/131891]

Version info

  • Merged into: 26.11.1.2405-master (included in 26.11 and later)

ClickHouse#131664 added the declaration while ClickHouse#126158 enabled modernize-use-nodiscard; each passed CI on its own, together they break the clang-tidy build on master.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [204ec1d]

Summary: ⏳

job_name test_name status info comment
Build profile diff ERROR

AI Review

Summary

PR #131891 adds [[nodiscard]] to ParserTransactionControl::getDocumentation, matching the base declaration and sibling overrides to fix clang-tidy diagnostics. Reviewed the full diff, current implementation, callers, and prior discussion; no actionable findings.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Nov 16, 2026
@murphy-4o
murphy-4o added this pull request to the merge queue Nov 16, 2026
alexey-milovidov added a commit that referenced this pull request Nov 16, 2026
`clang-tidy` (`modernize-use-nodiscard`) fails on `master` here: the check was
enabled while `getDocumentation` was added. The same change as the open
#131891, so merging `master` after
it lands is clean.

Report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=76867&sha=90898904eab189fe4d95c3b533df16f7a71cdaa3&name_0=PR&name_1=Build%20%28arm_tidy%2C%202%2F4%29
Related: #131891

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh clickhouse-gh Bot added the comp-sql-syntax SQL/grammar parsing, AST nodes, syntax-level features. label Nov 16, 2026
Merged via the queue into ClickHouse:master with commit 7b28c8d Nov 16, 2026
178 of 193 checks passed
@murphy-4o
murphy-4o deleted the fix/tidy-nodiscard-parser-transaction-control branch November 16, 2026 03:18
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 16, 2026
murphy-4o added a commit to groeneai/ClickHouse that referenced this pull request Nov 16, 2026
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Nov 20, 2026
The previous run (375f67d) failed Build (arm_tidy) only on master's
src/Parsers/ParserTransactionControl.h:12, fixed on master by ClickHouse#131891.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-sql-syntax SQL/grammar parsing, AST nodes, syntax-level features. pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants