[clang] [HLSL] Run availability diagnostic on exported functions (PR #97352)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 1 14:41:51 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 938cbdb4cf428bf08558c24d845aeac9174c7022 c8c6b5084bd1bb5f01d3e4edd2d8c932ff9ea0ad -- clang/lib/Sema/SemaHLSL.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Sema/SemaHLSL.cpp b/clang/lib/Sema/SemaHLSL.cpp
index d22e6e8915..192238960e 100644
--- a/clang/lib/Sema/SemaHLSL.cpp
+++ b/clang/lib/Sema/SemaHLSL.cpp
@@ -677,11 +677,11 @@ void DiagnoseHLSLAvailability::RunOnTranslationUnit(
   // shader environment context based on whether it is a shader entry function
   // or an exported function. Exported functions can be in namespaces and in
   // export declarations so we need to scan those declaration contexts as well.
-  llvm::SmallVector<const DeclContext*, 8> DeclContextsToScan;
+  llvm::SmallVector<const DeclContext *, 8> DeclContextsToScan;
   DeclContextsToScan.push_back(TU);
 
   while (!DeclContextsToScan.empty()) {
-    const DeclContext* DC = DeclContextsToScan.pop_back_val();
+    const DeclContext *DC = DeclContextsToScan.pop_back_val();
     for (auto &D : DC->decls()) {
       // do not scan implicit declaration generated by the implementation
       if (D->isImplicit())

``````````

</details>


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


More information about the cfe-commits mailing list