[clang] clang/utils/TableGen/NeonEmitter.cpp:1058: pointless string copy ? (#94375) (PR #94408)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 4 16:06:37 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 0360d03240f59e6b26a16769943f905c9520fe04 a018f2598f860498711cc46dcb41916d11127f15 -- clang/utils/TableGen/NeonEmitter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/utils/TableGen/NeonEmitter.cpp b/clang/utils/TableGen/NeonEmitter.cpp
index 3f06e88c95..ca8f42eb58 100644
--- a/clang/utils/TableGen/NeonEmitter.cpp
+++ b/clang/utils/TableGen/NeonEmitter.cpp
@@ -1055,7 +1055,8 @@ std::string Intrinsic::getMangledName(bool ForceClassS) const {
return mangleName(Name, ForceClassS ? ClassS : LocalCK);
}
-std::string Intrinsic::mangleName( const std::string & Name, ClassKind LocalCK) const {
+std::string Intrinsic::mangleName(const std::string &Name,
+ ClassKind LocalCK) const {
std::string typeCode = getInstTypeCode(BaseType, LocalCK);
std::string S = Name;
``````````
</details>
https://github.com/llvm/llvm-project/pull/94408
More information about the cfe-commits
mailing list