@@ -807,8 +807,8 @@ Warns when objects which are supposed to be globally unique might get duplicated
807
807
when built into a shared library.
808
808
809
809
This can occur to objects which are hidden from the dynamic linker, due to
810
- having hidden visibility (on posix) or lacking an import/export annotation (on
811
- windows). If such an object is built into a shared library, each instance
810
+ having hidden visibility (on posix) or lacking a dllimport/dllexport attribute
811
+ (on windows). If such an object is built into a shared library, each instance
812
812
of the library will get its own copy. This can cause very subtle bugs if there was
813
813
only supposed to be one copy of the object in question: singletons aren't single,
814
814
changes to one object won't affect the others, the object's initializer will run
@@ -817,7 +817,7 @@ once per copy, etc.
817
817
Specifically, this warning fires when it detects an object which:
818
818
1. Is defined as ``inline`` in a header file (so it might get compiled into multiple libaries), and
819
819
2. Has external linkage (otherwise it's supposed to be duplicated), and
820
- 3. Has hidden visibility (posix) or lacks an import/export annotation (windows).
820
+ 3. Has hidden visibility (posix) or lacks a dllimport/dllexport attribute (windows).
821
821
822
822
As well as one of the following:
823
823
1. The object is mutable, or
0 commit comments