[cfe-commits] [PATCH] Add support for non-inheritable declaration attributes

Peter Collingbourne peter at pcc.me.uk
Sun Jan 2 18:17:36 PST 2011


Hi,

This patch series adds support for non-inheritable attributes on
declarations.  It is a prerequisite for certain aspects of the CUDA
support.  At the same time it has the side effect of taking care of
some FIXMEs associated with the 'overloadable' attribute.

The series isn't perfect by any means but I think it represents a
worthwhile incremental improvement.

The series does not change default behaviour so the test suite is
unmodified.

0001-tblgen-Add-support-for-non-inheritable-attributes.patch is a
patch to LLVM (tblgen).  I'd particularly appreciate any advice on
this patch as I'm not too familiar with tblgen.  In particular I'm
not sure if this is a reliable way of obtaining the name of the most
specific superclass:

+    const std::string &SuperName = R.getSuperClasses().back()->getName();

Reviews appreciated.

Thanks,
-- 
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Generalise-support-for-non-inheritable-attributes.patch
Type: text/x-diff
Size: 16285 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110103/2e6ba4f8/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tblgen-Add-support-for-non-inheritable-attributes.patch
Type: text/x-diff
Size: 5590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110103/2e6ba4f8/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Sema-support-for-processing-non-inheritable-declarat.patch
Type: text/x-diff
Size: 9315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110103/2e6ba4f8/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Sema-process-non-inheritable-attributes-on-function-.patch
Type: text/x-diff
Size: 7977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110103/2e6ba4f8/attachment-0003.patch>


More information about the cfe-commits mailing list