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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 6 06:07:37 PDT 2024


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

As far as the changes go, that is fine. I do still think we need to change the underlying comment parsing at some point (not as part of this PR) though because I don't think this will be very obvious to users.

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


More information about the cfe-commits mailing list