[llvm] de4d953 - [Demangle] Remove redundant declarations (NFC) (#166895)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 7 07:58:44 PST 2025
Author: Kazu Hirata
Date: 2025-11-07T07:58:40-08:00
New Revision: de4d95324656bf06fc198a72dc4ca2137904d3ad
URL: https://github.com/llvm/llvm-project/commit/de4d95324656bf06fc198a72dc4ca2137904d3ad
DIFF: https://github.com/llvm/llvm-project/commit/de4d95324656bf06fc198a72dc4ca2137904d3ad.diff
LOG: [Demangle] Remove redundant declarations (NFC) (#166895)
In C++17, static constexpr members are implicitly inline, so they no
longer require an out-of-line definition.
Identified with readability-redundant-declaration.
Added:
Modified:
llvm/lib/Demangle/ItaniumDemangle.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Demangle/ItaniumDemangle.cpp b/llvm/lib/Demangle/ItaniumDemangle.cpp
index 1009cc91ca12a..8e476cdafdb71 100644
--- a/llvm/lib/Demangle/ItaniumDemangle.cpp
+++ b/llvm/lib/Demangle/ItaniumDemangle.cpp
@@ -25,10 +25,6 @@
using namespace llvm;
using namespace llvm::itanium_demangle;
-constexpr const char *itanium_demangle::FloatData<float>::spec;
-constexpr const char *itanium_demangle::FloatData<double>::spec;
-constexpr const char *itanium_demangle::FloatData<long double>::spec;
-
// <discriminator> := _ <non-negative number> # when number < 10
// := __ <non-negative number> _ # when number >= 10
// extension := decimal-digit+ # at the end of string
More information about the llvm-commits
mailing list