[cfe-commits] r173516 - in /cfe/trunk: lib/AST/ASTContext.cpp test/Index/annotate-comments-typedef.m

jahanian fjahanian at apple.com
Fri Jan 25 15:09:27 PST 2013


On Jan 25, 2013, at 2:57 PM, Sean Silva <silvas at purdue.edu> wrote:

> +      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.]

Sure. In r173521.
- Fariborz

> 
> -- Sean Silva




More information about the cfe-commits mailing list