@@ -807,8 +807,8 @@ Warns when objects which are supposed to be globally unique might get duplicated
807807when built into a shared library.
808808
809809This 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
812812of the library will get its own copy. This can cause very subtle bugs if there was
813813only supposed to be one copy of the object in question: singletons aren't single,
814814changes to one object won't affect the others, the object's initializer will run
@@ -817,7 +817,7 @@ once per copy, etc.
817817Specifically, this warning fires when it detects an object which:
8188181. Is defined as ``inline`` in a header file (so it might get compiled into multiple libaries), and
8198192. 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).
821821
822822As well as one of the following:
8238231. The object is mutable, or
@@ -831,7 +831,7 @@ order of preference, this may be done by:
831831 ``__declspec(dllimport)``, or ``__declspec(dllexport)``.
832832
833833When annotating an object with ``__declspec(dllimport)`` or ``__declspec(dllexport)``,
834- take care to ensure that the object is only imported in one dll, and is exported
834+ take care to ensure that the object is only exported from one dll, and is imported
835835everywhere else.
836836
837837Note that for (2), all levels of a pointer variable must be constant;
0 commit comments