[PATCH] D44480: [Sema] Don't skip function bodies with 'auto' without trailing return type
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 14 10:53:41 PDT 2018
aaron.ballman added a reviewer: rsmith.
aaron.ballman added a comment.
Adding Richard as a reviewer, because this seems somewhat clever to me (so there may be a better change to make).
================
Comment at: lib/Sema/SemaDecl.cpp:12611
+ // false on C++14's auto return type without trailing return type.
+ auto *DT = FD->getReturnType()->getContainedDeducedType();
+ if (DT && DT->getDeducedType().isNull())
----------------
Please don't use `auto` here as the type is not spelled out explicitly. Also, the type can be const-qualified.
Repository:
rC Clang
https://reviews.llvm.org/D44480
More information about the cfe-commits
mailing list