This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Make header-guard check a little looser on comment whitespace
ClosedPublic

Authored by sammccall on May 4 2022, 12:37 PM.

Details

Summary

Currently it rejects "// FOO_BAR_H" as an endif comment due to the extra space.
A user complained that this is too picky, which seems fair enough.

Diff Detail

Event Timeline

sammccall created this revision.May 4 2022, 12:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 12:37 PM
sammccall requested review of this revision.May 4 2022, 12:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 12:37 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein accepted this revision.May 5 2022, 6:14 AM

I think "// FOO_BAR_H" in your message should be "// FOO_BAR_H" (two space).

This revision is now accepted and ready to land.May 5 2022, 6:14 AM

I think "// FOO_BAR_H" in your message should be "// FOO_BAR_H" (two space).

It's actually correct in the commit message, just phab renders it wrong :-(