[clang] [llvm] [HLSL] Adding Flatten and Branch if attributes (PR #116331)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 14 23:33:03 PST 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 95b680e4c353d479fbfb96adb39696042c005e99 9beb5f17bfefcea148c1954b1b7bd458c4372389 --extensions cpp,h -- clang/lib/CodeGen/CGStmt.cpp clang/lib/CodeGen/CodeGenFunction.cpp clang/lib/CodeGen/CodeGenFunction.h clang/lib/CodeGen/CodeGenPGO.cpp clang/lib/Sema/SemaStmtAttr.cpp llvm/include/llvm/IR/IRBuilder.h llvm/include/llvm/IR/ProfDataUtils.h llvm/lib/IR/ProfDataUtils.cpp llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp llvm/lib/Target/SPIRV/SPIRVStructurizer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaStmtAttr.cpp b/clang/lib/Sema/SemaStmtAttr.cpp
index 68323092cb..827a674ece 100644
--- a/clang/lib/Sema/SemaStmtAttr.cpp
+++ b/clang/lib/Sema/SemaStmtAttr.cpp
@@ -624,7 +624,7 @@ static Attr *handleHLSLLoopHintAttr(Sema &S, Stmt *St, const ParsedAttr &A,
}
static Attr *handleHLSLBranchHint(Sema &S, Stmt *St, const ParsedAttr &A,
- SourceRange Range) {
+ SourceRange Range) {
return ::new (S.Context) HLSLBranchHintAttr(S.Context, A);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/116331
More information about the cfe-commits
mailing list