[PATCH] ClassScopeFunctionSpecializationDecl issue with -fdelayed-template-parsing
Will Wilson
will at indefiant.com
Fri Apr 26 09:13:38 PDT 2013
Hi Richard,
Thanks for the review!
On 26 April 2013 17:23, Richard Smith <richard at metafoo.co.uk> wrote:
> Change LGTM, thanks.
>
> + if (ClassTemplatePartialSpecializationDecl* MD =
> +
> dyn_cast_or_null<ClassTemplatePartialSpecializationDecl>(*II)) {
> + TemplateParamScopeStack.push_back(new ParseScope(this,
> +
> Scope::TemplateParamScope));
> + Actions.ActOnReenterTemplateScope(getCurScope(), MD);
> + } else if (CXXRecordDecl* MD = dyn_cast_or_null<CXXRecordDecl>(*II)) {
> + TemplateParamScopeStack.push_back(new ParseScope(this,
> +
> Scope::TemplateParamScope,
> + MD->getDescribedClassTemplate() != 0
> ));
>
> Can you fix the formatting of this code too? :) There's some strange
> indentation here (probably due to 80-column limits) and an extra space
> after the 0. Also a typo "outmost" should be "outermost".
>
I've attempted to fix the indenting but I've had to break out an argument
in the process, either way I don't think it hinders clarity. Incidentally
"outmost" is valid if archaic, but I've changed it anyhow.
Let me know if there's anything else, otherwise - over to you!
- Will.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130426/c6c1b6e4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: latetemplatefuncv2.patch
Type: application/octet-stream
Size: 4676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130426/c6c1b6e4/attachment.obj>
More information about the cfe-commits
mailing list