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 75a724e commit 25a71eaCopy full SHA for 25a71ea
clang/include/clang/ExtractAPI/ExtractAPIVisitor.h
@@ -1155,8 +1155,7 @@ bool ExtractAPIVisitorBase<Derived>::VisitTypedefNameDecl(
1155
// Also check whether the tag decl's name is the same as the typedef name
1156
// with prefixed underscores
1157
if (TagName.starts_with('_')) {
1158
- StringRef StrippedName =
1159
- TagName.drop_while([](char c) { return c == '_'; });
+ StringRef StrippedName = TagName.ltrim('_');
1160
1161
if (StrippedName == Name)
1162
return true;
0 commit comments