diff options
author | Michael Han <Michael.Han@autodesk.com> | 2012-06-13 03:51:05 +0000 |
---|---|---|
committer | Michael Han <Michael.Han@autodesk.com> | 2012-06-13 03:51:05 +0000 |
commit | 0cddf59b4b133fb05da42f303db3232f95a04429 (patch) | |
tree | 241a92fb1b4df6d3668b478d7b126fa2955500c6 /docs/InternalsManual.html | |
parent | cd65f4903dc737d92655a0cf72755c16831ae668 (diff) |
Update clang attribute document.
Remove the instructions on manually adding boilerplate code of AttributeList::Kind and AttributeList::getKind().
Both are now generated by tblgen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/InternalsManual.html')
-rw-r--r-- | docs/InternalsManual.html | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/docs/InternalsManual.html b/docs/InternalsManual.html index 1ae1968299..ca870c4f75 100644 --- a/docs/InternalsManual.html +++ b/docs/InternalsManual.html @@ -1764,18 +1764,6 @@ then <tt>__attribute__((myattribute("Hello", 3)))</tt> will be a valid use.</p> <h4>Boilerplate</h4> -<p>Add an element to the <tt>AttributeList::Kind</tt> enum in <a -href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/AttributeList.h?view=markup">include/clang/Sema/AttributeList.h</a> -named <tt>AT_lower_with_underscores</tt>. That is, a CamelCased -<tt>AttributeName</tt> in <tt>Attr.td</tt> name should become -<tt>AT_attribute_name</tt>.</p> - -<p>Add a case to the <tt>StringSwitch</tt> in <tt>AttributeList::getKind()</tt> -in <a -href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/AttributeList.cpp?view=markup">lib/Sema/AttributeList.cpp</a> -for each spelling of your attribute. Less common attributes should come toward -the end of that list.</p> - <p>Write a new <tt>HandleYourAttr()</tt> function in <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?view=markup">lib/Sema/SemaDeclAttr.cpp</a>, and add a case to the switch in <tt>ProcessNonInheritableDeclAttr()</tt> or |