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

[clang-format] format applied to // clang-format off annotation #91877

Open
yshui opened this issue May 12, 2024 · 0 comments
Open

[clang-format] format applied to // clang-format off annotation #91877

yshui opened this issue May 12, 2024 · 0 comments

Comments

@yshui
Copy link
Contributor

yshui commented May 12, 2024

Example: https://github.com/yshui/picom/blob/d91e260f2738c765f72e9e990bfecf1baa76a70f/src/options.c#L399

clang-format configuration: https://github.com/yshui/picom/blob/next/.clang-format

When formatted, clang-format will try to add an extra level of indentation to // clang-format off, which, even not considering the fact that this line is telling clang-format to not touch it, is still wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant