[PATCH| ArrayRef'ize Sema::FinalizeDeclaratorGroup, Sema::BuildDeclaratorGroup and Sema::ActOnDocumentableDecls
Rafael EspĂndola
rafael.espindola at gmail.com
Fri May 17 06:31:41 PDT 2013
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.
Cheers,
Rafael
More information about the cfe-commits
mailing list