This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix regression about adding leading whitespace to the content of line comments
ClosedPublic

Authored by krasimir on Jan 31 2017, 7:33 AM.

Details

Summary

The reflower didn't measure precisely the line column of a line in the middle of
a line comment section that has a prefix that needs to be adapted.

source:

/// a
//b

format before:

/// a
 //b

format after:

/// a
// b

Event Timeline

krasimir created this revision.Jan 31 2017, 7:33 AM
krasimir updated this revision to Diff 86434.Jan 31 2017, 7:37 AM
  • Removed newline
krasimir updated this revision to Diff 86435.Jan 31 2017, 7:40 AM
  • Updated obsolete comments
krasimir added subscribers: cfe-commits, sammccall.
djasper accepted this revision.Jan 31 2017, 7:48 AM

Looks good.

This revision is now accepted and ready to land.Jan 31 2017, 7:48 AM
This revision was automatically updated to reflect the committed changes.