[llvm] Revert "[NFC] Don't recompute type name" (PR #119907)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 09:43:35 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 bc627a46a858ab1abf7a72a524ef1059b27cfa37 68d7d771d84cefff427cfa47e3bf2beeaf2706a6 --extensions h -- llvm/include/llvm/Support/TypeName.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Support/TypeName.h b/llvm/include/llvm/Support/TypeName.h
index 9547e76a7f..518a39ee02 100644
--- a/llvm/include/llvm/Support/TypeName.h
+++ b/llvm/include/llvm/Support/TypeName.h
@@ -23,8 +23,7 @@ namespace llvm {
/// The returned StringRef will point into a static storage duration string.
/// However, it may not be null terminated and may be some strangely aligned
/// inner substring of a larger string.
-template <typename DesiredTypeName>
-inline StringRef getTypeName() {
+template <typename DesiredTypeName> inline StringRef getTypeName() {
#if defined(__clang__) || defined(__GNUC__)
StringRef Name = __PRETTY_FUNCTION__;
``````````
</details>
https://github.com/llvm/llvm-project/pull/119907
More information about the llvm-commits
mailing list