Skip to content

Commit 08662d7

Browse files
committed
Clarify semantics
1 parent b468a42 commit 08662d7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/include/clang/Basic/AttrDocs.td

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9687,14 +9687,15 @@ may redirect the call to the identifier given as the first argument to the
96879687
attribute (the modular implementation function).
96889688

96899689
The second argument is a implementation name, and the remaining arguments are
9690-
aspects of the format string for the compiler to report. If the compiler does
9691-
not understand an aspect, it must summarily consider any call to require that
9692-
aspect.
9690+
aspects of the format string for the compiler to report. The implementation
9691+
name is an unevaluted identifier be in the C namespace.
96939692

96949693
The compiler reports that a call requires an aspect by issuing a relocation for
96959694
the symbol ``<impl_name>_<aspect>`` at the point of the call. This arranges for
96969695
code and data needed to support the aspect of the implementation to be brought
96979696
into the link to satisfy weak references in the modular implemenation function.
9697+
If the compiler does not understand an aspect, it must summarily consider any
9698+
call to require that aspect.
96989699

96999700
For example, say ``printf`` is annotated with
97009701
``modular_format(__modular_printf, "__printf", "float")``. Then, a call to

0 commit comments

Comments
 (0)