[clang] Fix Twine usage (PR #90728)
via cfe-commits
cfe-commits at lists.llvm.org
Wed May 1 05:21:06 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 576261ac8f803e5142fd8634805e48d0063de4e1 ad0384030a78be7d91851c565db41af1b161378f -- clang/lib/Driver/ToolChains/HIPUtility.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/HIPUtility.cpp b/clang/lib/Driver/ToolChains/HIPUtility.cpp
index e696d43bb3..e535b9f2f3 100644
--- a/clang/lib/Driver/ToolChains/HIPUtility.cpp
+++ b/clang/lib/Driver/ToolChains/HIPUtility.cpp
@@ -107,7 +107,8 @@ private:
if (!ID.empty()) {
ID = llvm::utohexstr(llvm::MD5Hash(ID), /*LowerCase=*/true);
FatBinSymbols.insert((Twine(FatBinPrefix) + '_' + ID).str());
- GPUBinHandleSymbols.insert((Twine(GPUBinHandlePrefix) + '_' + ID).str());
+ GPUBinHandleSymbols.insert(
+ (Twine(GPUBinHandlePrefix) + '_' + ID).str());
continue;
}
if (IA->getInputArg().getNumValues() == 0)
``````````
</details>
https://github.com/llvm/llvm-project/pull/90728
More information about the cfe-commits
mailing list