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

Robert Wilhelm robert.wilhelm at gmx.net
Thu May 23 14:41:35 PDT 2013


Thanks for the review. I have attached new version of the patch.


I looked why there were no test failures:
the off-by-one error in Sema::BuildDeclaratorGroup had no negativ effect
(besides small runtime penalty) because you need minimum two decls to be
different for a diagnostic.

The Group.slice(1) in Sema::ActOnDocumetableDecls is called in testsuite
at typedefs  but was not able to create a doxygen comments where it
makes a difference.

 
On Fri, 2013-05-17 at 10:39 -0700, David Blaikie wrote:
> 
> 
> 
> 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 --------------
A non-text attachment was scrubbed...
Name: ArrayRef_DeclaratorGroup2.patch
Type: text/x-patch
Size: 10648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130523/6a99ac38/attachment.bin>


More information about the cfe-commits mailing list