[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
Mon Jun 3 00:23:08 PDT 2024


================
@@ -533,6 +533,8 @@ __rdtscp(unsigned int *__A) {
 /// \see __rdpmc
 #define _rdpmc(A) __rdpmc(A)
 
+;
----------------
hdoc wrote:

If it sounds reasonable to you, I can fix this with the same method used in the `clang/lib/Headers/amxcomplexintrin.h` file. Unfortunately changing the underlying comment parsing functionality would be a complicated change.

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


More information about the cfe-commits mailing list