[PATCH| ArrayRef'ize Sema::FinalizeDeclaratorGroup, Sema::BuildDeclaratorGroup and Sema::ActOnDocumentableDecls

David Blaikie dblaikie at gmail.com
Fri May 17 10:39:49 PDT 2013


On Fri, May 17, 2013 at 6:31 AM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> On 11 May 2013 15:26, Robert Wilhelm <robert.wilhelm at gmx.net> wrote:
> > This patch converts three methods to ArrayRef in Sema.
> > No functionality change.
> > Passes make test on x86_64-unknown-linux-gnu
>
> -  if (TypeMayContainAuto && NumDecls > 1) {
> +  if (TypeMayContainAuto && !Group.empty()) {
>
> Should be 'Group.size() > 1' no?
>
> -      Group++;
> -      NumDecls--;
> +      Group.slice(1);
>
> slice returns a new array ref, it doesn't modify the current one.


& if these mistakes weren't causing test failures - perhaps you could
figure out which tests are missing & add them :)

- David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130517/438c5bda/attachment.html>


More information about the cfe-commits mailing list