mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
56350 - Give Identifier a hasUnderscoredNaming() helper and in the places currently using str().startsWith, change it to use the new helper.
This commit is contained in:
@@ -834,7 +834,7 @@ public:
|
||||
[&](const ValueDecl *vd) {
|
||||
return !printer.isVisible(vd) || vd->isObjC() ||
|
||||
(vd->isStdlibDecl() && !vd->getName().isSpecial() &&
|
||||
vd->getBaseIdentifier().str().startswith("_")) ||
|
||||
vd->getBaseIdentifier().hasUnderscoredNaming()) ||
|
||||
(vd->isStdlibDecl() && isa<StructDecl>(vd)) ||
|
||||
(vd->isStdlibDecl() &&
|
||||
vd->getASTContext().getErrorDecl() == vd);
|
||||
|
||||
Reference in New Issue
Block a user