]> granicus.if.org Git - clang/commitdiff
Add documentation for the pcs attribute, based on r129534's commit message.
authorNico Weber <nicolasweber@gmx.de>
Sun, 30 Mar 2014 19:45:58 +0000 (19:45 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sun, 30 Mar 2014 19:45:58 +0000 (19:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205160 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td

index 560026b5b9194fa6d3aa9450e12bec6f3f930ed6..c0c908301834c67b03a70cb2b8a5f90d1fd29c92 100644 (file)
@@ -1030,7 +1030,7 @@ def Pcs : InheritableAttr {
                            ["aapcs", "aapcs-vfp"],
                            ["AAPCS", "AAPCS_VFP"]>];
 //  let Subjects = [Function, ObjCMethod];
-  let Documentation = [Undocumented];
+  let Documentation = [PcsDocs];
 }
 
 def Pure : InheritableAttr {
index 8208aa6cd41de4f581b927dfca0a47324f1b91be..eef3e5684122b73d8263446a3de4afecb692ce68 100644 (file)
@@ -577,6 +577,15 @@ The semantics are as follows:
   }];
 }
 
+def PcsDocs : Documentation {
+  let Category = DocCatFunction;
+  let Content = [{
+On ARM targets, this can attribute can be used to select calling conventions,
+similar to ``stdcall`` on x86. Valid parameter values are "aapcs" and
+"aapcs-vfp".
+  }];
+}
+
 def DocCatConsumed : DocumentationCategory<"Consumed Annotation Checking"> {
   let Content = [{
 Clang supports additional attributes for checking basic resource management