[lld] [lld] Initialize SingleStringMatcher::ExactMatch (PR #123138)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 15:25:48 PST 2025
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 4f48abff0fb90ea0a05470755b799cdb1ff79d89 1ab88d1f90dc563b65e0127a865297429e8a75ff --extensions cpp -- lld/Common/Strings.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/Common/Strings.cpp b/lld/Common/Strings.cpp
index 8e1a8ce212..58839e4afe 100644
--- a/lld/Common/Strings.cpp
+++ b/lld/Common/Strings.cpp
@@ -24,7 +24,8 @@ static bool isExact(StringRef Pattern) {
Pattern.ends_with("\"");
}
-SingleStringMatcher::SingleStringMatcher(StringRef Pattern) : ExactMatch(isExact(Pattern)) {
+SingleStringMatcher::SingleStringMatcher(StringRef Pattern)
+ : ExactMatch(isExact(Pattern)) {
if (ExactMatch) {
ExactPattern = Pattern.substr(1, Pattern.size() - 2);
} else {
``````````
</details>
https://github.com/llvm/llvm-project/pull/123138
More information about the llvm-commits
mailing list