From: Michael Han
Date: Wed, 13 Jun 2012 03:51:05 +0000 (+0000)
Subject: Update clang attribute document.
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cddf59b4b133fb05da42f303db3232f95a04429;p=clang
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
---
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 __attribute__((myattribute("Hello", 3))) will be a valid use.
Boilerplate
-Add an element to the AttributeList::Kind enum in include/clang/Sema/AttributeList.h
-named AT_lower_with_underscores. That is, a CamelCased
-AttributeName in Attr.td name should become
-AT_attribute_name.
-
-Add a case to the StringSwitch in AttributeList::getKind()
-in lib/Sema/AttributeList.cpp
-for each spelling of your attribute. Less common attributes should come toward
-the end of that list.
-
Write a new HandleYourAttr() function in lib/Sema/SemaDeclAttr.cpp,
and add a case to the switch in ProcessNonInheritableDeclAttr() or