Skip to content

Commit 25a71ea

Browse files
review: use ltrim instead of drop_while
1 parent 75a724e commit 25a71ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/include/clang/ExtractAPI/ExtractAPIVisitor.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,8 +1155,7 @@ bool ExtractAPIVisitorBase<Derived>::VisitTypedefNameDecl(
11551155
// Also check whether the tag decl's name is the same as the typedef name
11561156
// with prefixed underscores
11571157
if (TagName.starts_with('_')) {
1158-
StringRef StrippedName =
1159-
TagName.drop_while([](char c) { return c == '_'; });
1158+
StringRef StrippedName = TagName.ltrim('_');
11601159

11611160
if (StrippedName == Name)
11621161
return true;

0 commit comments

Comments
 (0)