[cfe-commits] r173516 - in /cfe/trunk: lib/AST/ASTContext.cpp test/Index/annotate-comments-typedef.m
Sean Silva
silvas at purdue.edu
Fri Jan 25 14:57:13 PST 2013
+ if (const EnumType *ET = QT->getAs<EnumType>()) {
+ if (const EnumDecl *ED = ET->getDecl())
+ if (comments::FullComment *FC = getCommentForDecl(ED, PP)) {
+ comments::FullComment *CFC = cloneFullComment(FC, D);
+ return CFC;
+ }
+ }
how about just `return cloneFullComment(FC, D);`? Then you can drop
the braces for all three of the `if`'s and it will look a bit neater.
-- Sean Silva
More information about the cfe-commits
mailing list