Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Doxygen comments for fields are not detected in PACK macro #34397

Open Quuxplusone opened 6 years ago

Quuxplusone commented 6 years ago
Bugzilla Link PR35424
Status NEW
Importance P normal
Reported by Philipp Schoppe (ph.schoppe@gmail.com)
Reported on 2017-11-26 03:35:11 -0800
Last modified on 2018-01-09 07:08:31 -0800
Version 5.0
Hardware PC Linux
CC klimek@google.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments test.h (315 bytes, text/x-chdr)
Blocks
Blocked by
See also
Created attachment 19475
test header file

While implementing a clang ASTVisitor that parses doxygen comments, I noticed
the absence of 'FullComment' nodes for FieldDecls when the enclosing RecordDecl
is wrapped in a custom 'PACK' macro.

When dumping the AST for the attached test file, the FullComment for the
FieldDecl a is only present for the structs test1 and test2. For the struct
test3, no FullComment block is generated. The only difference is that the
__attribute__(__packed__) is wrapped in a macro.
Quuxplusone commented 6 years ago

Attached test.h (315 bytes, text/x-chdr): test header file