Skip to content

Commit 670baee

Browse files
tim-dlangdlang-bot
authored andcommitted
Add extern(C++, class) and extern(C++, struct) to grammar
1 parent bb6ed6a commit 670baee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/attribute.dd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ $(GNAME LinkageAttribute):
8383
$(D extern) $(D $(LPAREN)) $(D C) $(D ++) $(D ,) $(D $(RPAREN))
8484
$(D extern) $(D $(LPAREN)) $(D C) $(D ++) $(D ,) $(GLINK2 type, QualifiedIdentifier) $(D $(RPAREN))
8585
$(D extern) $(D $(LPAREN)) $(D C) $(D ++) $(D ,) $(GLINK NamespaceList) $(D $(RPAREN))
86+
$(D extern) $(D $(LPAREN)) $(D C) $(D ++) $(D ,) $(D class) $(D $(RPAREN))
87+
$(D extern) $(D $(LPAREN)) $(D C) $(D ++) $(D ,) $(D struct) $(D $(RPAREN))
8688

8789
$(GNAME LinkageType):
8890
$(D C)
@@ -104,7 +106,9 @@ $(GNAME NamespaceList):
104106
extensible by the implementation ($(D they are not keywords)).
105107
$(D C) and $(D D) must be supplied, the others are what
106108
makes sense for the implementation.
107-
$(D C++) offers limited compatibility with C++.
109+
$(D C++) offers limited compatibility with C++, see the
110+
$(LINK2 cpp_interface.html, Interfacing to C++)
111+
documentation for more information.
108112
$(D Objective-C) offers compatibility with Objective-C,
109113
see the $(LINK2 objc_interface.html, Interfacing to Objective-C)
110114
documentation for more information.

0 commit comments

Comments
 (0)