]> granicus.if.org Git - clang/commitdiff
Update clang attribute document.
authorMichael Han <Michael.Han@autodesk.com>
Wed, 13 Jun 2012 03:51:05 +0000 (03:51 +0000)
committerMichael Han <Michael.Han@autodesk.com>
Wed, 13 Jun 2012 03:51:05 +0000 (03:51 +0000)
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

docs/InternalsManual.html

index 1ae1968299e780a769374f87b12c03be22ff62e7..ca870c4f75002067544c0ef73966d85a15c16cea 100644 (file)
@@ -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