clang-format indenting comment-only line incorrectly #12300
Answered
by
sean-mcmanus
Matej Vitek (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? |
Answered by
sean-mcmanus
May 16, 2024
Replies: 1 comment 1 reply
|
Matej Vitek (@MatejVitek) It seems like it could be a clang-format bug regarding SpacesBeforeTrailingComments. |
1 reply
Answer selected by
MatejVitek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Matej Vitek (@MatejVitek) It seems like it could be a clang-format bug regarding SpacesBeforeTrailingComments.