Skip to content

[#386] Rename PascalCase C identifiers to snake_case and add naming c…#387

Open
rhusar wants to merge 1 commit into
modcluster:mainfrom
rhusar:386-fix-pascal-case
Open

[#386] Rename PascalCase C identifiers to snake_case and add naming c…#387
rhusar wants to merge 1 commit into
modcluster:mainfrom
rhusar:386-fix-pascal-case

Conversation

@rhusar
Copy link
Copy Markdown
Member

@rhusar rhusar commented May 16, 2026

…onvention CI check

Lets fix this mess.

…d naming convention CI check

Signed-off-by: Radoslav Husar <radosoft@gmail.com>
Copy link
Copy Markdown
Member

@jajik jajik left a comment

Choose a reason for hiding this comment

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

Great idea!

The CI part needs some changes, and I would prefer it to be in a separate commit. Also, a note in README would be great.

(Also review-wise, maybe it would be better to merge this after JFC reviews #385.)

Comment thread .github/workflows/ci.yml
code=0
cd mod_proxy_cluster/native
for file in */*.c */*.h; do
output=$(clang-tidy --checks='-*,readability-identifier-naming' "$file" -- -I/usr/include/apache2 -I/usr/include/apr-1.0 2>&1 | grep 'warning:.*identifier naming' || true)
Copy link
Copy Markdown
Member

@jajik jajik May 18, 2026

Choose a reason for hiding this comment

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

This does not work. When clang-tidy encounters an error before finding anything, this will report OK without checking the file.

This also expects apache and apr installed, so maybe it should depend on some compilation job (see perl tests).

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