[clang] [Clang] Constant Expressions inside of GCC' asm strings (PR #131003)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 17 09:26:09 PDT 2025
================
@@ -1958,6 +1958,24 @@ references can be used instead of numeric references.
return -1;
}
+
+Constexpr strings in GNU ASM statememts
+=======================================
+
+In C++11 mode (and greater), Clang supports specifying the template,
+constraints, and clobber strings with a parenthesized constant expression
+producing an object with ``data`` and ``size`` member functions,
+such as ``std::string``.
----------------
cor3ntin wrote:
Can we reference https://eel.is/c++draft/dcl#pre-12 or cppreference?
https://github.com/llvm/llvm-project/pull/131003
More information about the cfe-commits
mailing list