[clang] 408226f - Fix Sphinx build

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 21 05:52:38 PDT 2022


Author: Aaron Ballman
Date: 2022-04-21T08:52:29-04:00
New Revision: 408226f20ab51508350b2e683c39e1710ea73491

URL: https://github.com/llvm/llvm-project/commit/408226f20ab51508350b2e683c39e1710ea73491
DIFF: https://github.com/llvm/llvm-project/commit/408226f20ab51508350b2e683c39e1710ea73491.diff

LOG: Fix Sphinx build

Added: 
    

Modified: 
    clang/include/clang/Basic/AttrDocs.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index 818b39933f5d0..00d6b035ff3cf 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -6383,19 +6383,21 @@ The full documentation is available here: https://docs.microsoft.com/en-us/windo
 def HLSLSV_ShaderTypeAttrDocs : Documentation {
   let Category = DocCatFunction;
   let Content = [{
-The ``shader`` type attribute applies to HLSL shader entry functions to 
+The ``shader`` type attribute applies to HLSL shader entry functions to
 identify the shader type for the entry function.
 The syntax is:
+
+.. code-block:: text
+
   ``[shader(string-literal)]``
+
 where the string literal is one of: "pixel", "vertex", "geometry", "hull",
- "domain", "compute", "raygeneration", "intersection", "anyhit", "closesthit",
- "miss", "callable", "mesh", "amplification".
-Normally the shader type is set by shader target with the ``-T`` option like
-``-Tps_6_1``.
-When compiling to a library target like ``lib_6_3``, the shader type attribute
- can help the compiler to identify the shader type.
-It is mostly used by Raytracing shaders where shaders must be compiled into a
-library and linked at runtime.
+"domain", "compute", "raygeneration", "intersection", "anyhit", "closesthit",
+"miss", "callable", "mesh", "amplification". Normally the shader type is set
+by shader target with the ``-T`` option like ``-Tps_6_1``. When compiling to a
+library target like ``lib_6_3``, the shader type attribute can help the
+compiler to identify the shader type. It is mostly used by Raytracing shaders
+where shaders must be compiled into a library and linked at runtime.
   }];
 }
 


        


More information about the cfe-commits mailing list