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

Remove trailing whitespace from c-style comments. #18130

Closed
silvasean opened this issue Oct 31, 2013 · 1 comment
Closed

Remove trailing whitespace from c-style comments. #18130

silvasean opened this issue Oct 31, 2013 · 1 comment
Labels
bugzilla Issues migrated from bugzilla clang-format

Comments

@silvasean
Copy link
Contributor

Bugzilla Link 17756
Resolution FIXED
Resolved on Nov 12, 2013 11:58
Version trunk
OS Linux

Extended Description

Before:

static inline void silk_nsq_del_dec_scale_states(
const silk_encoder_state psEncC, / I Encoder State */
);

After:
static inline void silk_nsq_del_dec_scale_states(
const silk_encoder_state psEncC, / I Encoder State
*/
);

(here's a paste in case bugzilla mangles the long lines in "Before" https://pastebin.mozilla.org/3390092.

Note how the end of the comment gets wrapped even though it would fit just fine on the same line.

@llvmbot
Copy link
Collaborator

llvmbot commented Nov 12, 2013

Fixed in r194493: clang-format will just replace whitespace with one space character instead of breaking the line, if it results in a line fitting in the column limit.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang-format
Projects
None yet
Development

No branches or pull requests

2 participants