[clang] Correct confusing header in HLSLDocs (PR #100017)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 16:52:57 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Greg Roth (pow2clk)

<details>
<summary>Changes</summary>

Because AvailabilityDiagnostics.rst mistakenly overlined the "Examples" section, it was included in the generated HLSLDocs page. By demoting it to a subheader, it shouldn't show up as a top-level HLSLDocs page.

---
Full diff: https://github.com/llvm/llvm-project/pull/100017.diff


1 Files Affected:

- (modified) clang/docs/HLSL/AvailabilityDiagnostics.rst (-1) 


``````````diff
diff --git a/clang/docs/HLSL/AvailabilityDiagnostics.rst b/clang/docs/HLSL/AvailabilityDiagnostics.rst
index bb9d02f21dde6..7ce82c1946b87 100644
--- a/clang/docs/HLSL/AvailabilityDiagnostics.rst
+++ b/clang/docs/HLSL/AvailabilityDiagnostics.rst
@@ -52,7 +52,6 @@ If the compilation target is a shader library, only availability based on shader
 
 As a result, availability based on specific shader stage will only be diagnosed in code that is reachable from a shader entry point or library export function. It also means that function bodies might be scanned multiple time. When that happens, care should be taken not to produce duplicated diagnostics.
 
-========
 Examples
 ========
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/100017


More information about the cfe-commits mailing list