Skip to content

Commit b39ba6c

Browse files
authored
Merge pull request swiftlang#40140 from etcwilde/ewilde/honor-implicicity
Don't force `SILGenName`, `CDecl`, and `Semantics` attrs to be implicit
2 parents d48306c + 3f8b7d0 commit b39ba6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/swift/AST/Attr.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class SILGenNameAttr : public DeclAttribute {
491491
Name(Name) {}
492492

493493
SILGenNameAttr(StringRef Name, bool Implicit)
494-
: SILGenNameAttr(Name, SourceLoc(), SourceRange(), /*Implicit=*/true) {}
494+
: SILGenNameAttr(Name, SourceLoc(), SourceRange(), Implicit) {}
495495

496496
/// The symbol name.
497497
const StringRef Name;
@@ -509,7 +509,7 @@ class CDeclAttr : public DeclAttribute {
509509
Name(Name) {}
510510

511511
CDeclAttr(StringRef Name, bool Implicit)
512-
: CDeclAttr(Name, SourceLoc(), SourceRange(), /*Implicit=*/true) {}
512+
: CDeclAttr(Name, SourceLoc(), SourceRange(), Implicit) {}
513513

514514
/// The symbol name.
515515
const StringRef Name;
@@ -528,7 +528,7 @@ class SemanticsAttr : public DeclAttribute {
528528
Value(Value) {}
529529

530530
SemanticsAttr(StringRef Value, bool Implicit)
531-
: SemanticsAttr(Value, SourceLoc(), SourceRange(), /*Implicit=*/true) {}
531+
: SemanticsAttr(Value, SourceLoc(), SourceRange(), Implicit) {}
532532

533533
/// The semantics tag value.
534534
const StringRef Value;

0 commit comments

Comments
 (0)