Community
Participate
Working Groups
example code: int main(void) { if(true && true) //_comment_ { } } I do not know if this is intended but I would expect that _comment_ is assigned as the trailing comment of the if condition node but it is assigned as the leading comment of the then clause node.
What do you mean by "assigned"? What API reflects this assignment? Is there a user operation for which it matters?
No public API bt I am working with org.eclipse.cdt.internal.core.dom.rewrite.commenthandler.NodeCommentMap and its respective methods e.g. #getTrailingCommentsForNode(IASTNode)