Skip to content

Commit

Permalink
Merge pull request #40028 from Qrox/fix-header-guard-check
Browse files Browse the repository at this point in the history
Fix clang-tidy header guard check on Windows
  • Loading branch information
ZhilkinSerg authored Apr 30, 2020
2 parents 3287a44 + 1bf93ef commit c81cdcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/clang-tidy-plugin/HeaderGuardCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ static std::string getHeaderGuard( StringRef Filename )
Guard = Guard.substr( TopDir.length() + 1 );

std::replace( Guard.begin(), Guard.end(), '/', '_' );
std::replace( Guard.begin(), Guard.end(), '\\', '_' );
std::replace( Guard.begin(), Guard.end(), '.', '_' );
std::replace( Guard.begin(), Guard.end(), '-', '_' );

Expand Down

0 comments on commit c81cdcb

Please sign in to comment.