We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eccd279 commit 771ab15Copy full SHA for 771ab15
clang-tools-extra/clang-tidy/utils/HeaderGuard.cpp
@@ -281,7 +281,7 @@ void HeaderGuardCheck::registerPPCallbacks(const SourceManager &SM,
281
282
std::string HeaderGuardCheck::sanitizeHeaderGuard(StringRef Guard) {
283
// Only reserved identifiers are allowed to start with an '_'.
284
- return Guard.drop_while([](char C) { return C == '_'; }).str();
+ return Guard.ltrim('_').str();
285
}
286
287
bool HeaderGuardCheck::shouldSuggestEndifComment(StringRef FileName) {
0 commit comments