Skip to content

Commit 10439a0

Browse files
committed
[CodeCompletion] Hide names starting with '$__' (instead of '$_')
rdar://problem/50073762
1 parent fcc35c7 commit 10439a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/Decl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2758,9 +2758,9 @@ bool ValueDecl::shouldHideFromEditor() const {
27582758
if (getBaseName().isEditorPlaceholder())
27592759
return true;
27602760

2761-
// '$_' names are reserved by compiler internal.
2761+
// '$__' names are reserved by compiler internal.
27622762
if (!getBaseName().isSpecial() &&
2763-
getBaseName().getIdentifier().str().startswith("$_"))
2763+
getBaseName().getIdentifier().str().startswith("$__"))
27642764
return true;
27652765

27662766
return false;

0 commit comments

Comments
 (0)