[flang-commits] [flang] [flang][Evaluate] Add `ExtractSubstring` to evaluate/tools.h (PR #81265)
via flang-commits
flang-commits at lists.llvm.org
Fri Feb 9 08:28:11 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 fdb16e6fd81b38835795f22730b39b30ddd90f07 351e27690238980100075f7a5654c1471f15651f -- flang/include/flang/Evaluate/tools.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/include/flang/Evaluate/tools.h b/flang/include/flang/Evaluate/tools.h
index e999997494..182856b6ec 100644
--- a/flang/include/flang/Evaluate/tools.h
+++ b/flang/include/flang/Evaluate/tools.h
@@ -448,8 +448,7 @@ struct ExtractSubstringHelper {
}
};
-template <typename A>
-std::optional<Substring> ExtractSubstring(const A &x) {
+template <typename A> std::optional<Substring> ExtractSubstring(const A &x) {
return ExtractSubstringHelper::visit(x);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/81265
More information about the flang-commits
mailing list