[clang-tidy] Make header-guard check a little looser on comment whitespace
authorSam McCall <sam.mccall@gmail.com>
Wed, 4 May 2022 19:37:24 +0000 (21:37 +0200)
committerSam McCall <sam.mccall@gmail.com>
Thu, 5 May 2022 15:42:35 +0000 (17:42 +0200)
commit7cf97d62f40990c2f86f75eb5a1d9cf2bd9de71e
tree4149187da747f94f802cf07665c342d4063f2d72
parent990ea3925b7ad07fa4f7bd24398c4338769fdf05
[clang-tidy] Make header-guard check a little looser on comment whitespace

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.

Differential Revision: https://reviews.llvm.org/D124955
clang-tools-extra/clang-tidy/utils/HeaderGuard.cpp
clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp