================ @@ -6641,6 +6623,37 @@ The ``#pragma comment(lib, ...)`` directive is supported on all ELF targets. The second parameter is the library name (without the traditional Unix prefix of ``lib``). This allows you to provide an implicit link of dependent libraries. +Embedding Copyright Information on AIX +====================================== +Clang supports the ``#pragma comment(copyright, "string")`` directive on AIX +targets. This directive embeds a copyright or identifying string into the +compiled object file so that the string survives into shared libraries and +executables. The directive is silently ignored on non-AIX targets. + +.. code-block:: c + + #pragma comment(copyright, "string-literal") + +The *string-literal* may be any ordinary string constant, including +concatenated string literals. The directive may appear at file scope; it is ---------------- cor3ntin wrote:
```suggestion The *string-literal* is an unprefixed string literal. The directive may appear at file scope; it is ``` We might want to parse it as an unevaluated encoding - this should not go through literal encoding conversion presumably. But there is a question of what encoding should actually be used etc. We probably want negative tests for `#pragma comment(copyright, u8"string-literal")` @hubert-reinterpretcast https://github.com/llvm/llvm-project/pull/178184 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
