clang-format indenting comment-only line incorrectly #12300
Answered
by
sean-mcmanus
MatejVitek
asked this question in
Q&A
-
I have the following setup in my user settings.json:
However, this setup is indenting my comment lines incorrectly. My expected result would look like:
However, the result of formatting with the above setup is the following:
I have searched through the docs to find any more comment-related options that could help me fix this, but I couldn't find any. How do I properly indent these comment lines? |
Beta Was this translation helpful? Give feedback.
Answered by
sean-mcmanus
May 16, 2024
Replies: 1 comment 1 reply
-
@MatejVitek It seems like it could be a clang-format bug regarding SpacesBeforeTrailingComments. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MatejVitek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@MatejVitek It seems like it could be a clang-format bug regarding SpacesBeforeTrailingComments.