[clang] [Clang][Comments] Attach comments to decl even if preproc directives are in between (PR #88367)

via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 11 02:18:26 PDT 2024


================
@@ -62,6 +62,8 @@
 ///    The 2nd source tile. Max size is 1024 Bytes.
 #define _tile_cmmimfp16ps(dst, a, b) __builtin_ia32_tcmmimfp16ps(dst, a, b)
 
+;
----------------
hdoc wrote:

This is a workaround to a Clang issue where doc comments cannot be associated with macros in Clang. The semicolon breaks up the preceding doc comment from the subsequent function. Without this, we get `-Wdocumentation` errors during the build.

https://github.com/llvm/llvm-project/pull/88367


More information about the cfe-commits mailing list