[llvm] 61e966e - [Support] Remove redundant declarations (NFC) (#166011)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 1 12:42:02 PDT 2025
Author: Kazu Hirata
Date: 2025-11-01T12:41:59-07:00
New Revision: 61e966ec9020833cad3aef2c65baae289d967871
URL: https://github.com/llvm/llvm-project/commit/61e966ec9020833cad3aef2c65baae289d967871
DIFF: https://github.com/llvm/llvm-project/commit/61e966ec9020833cad3aef2c65baae289d967871.diff
LOG: [Support] Remove redundant declarations (NFC) (#166011)
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/Support/raw_ostream.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
index 07b99896543bd..d6f27fb7e7b63 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/lib/Support/raw_ostream.cpp
@@ -61,17 +61,6 @@
using namespace llvm;
-constexpr raw_ostream::Colors raw_ostream::BLACK;
-constexpr raw_ostream::Colors raw_ostream::RED;
-constexpr raw_ostream::Colors raw_ostream::GREEN;
-constexpr raw_ostream::Colors raw_ostream::YELLOW;
-constexpr raw_ostream::Colors raw_ostream::BLUE;
-constexpr raw_ostream::Colors raw_ostream::MAGENTA;
-constexpr raw_ostream::Colors raw_ostream::CYAN;
-constexpr raw_ostream::Colors raw_ostream::WHITE;
-constexpr raw_ostream::Colors raw_ostream::SAVEDCOLOR;
-constexpr raw_ostream::Colors raw_ostream::RESET;
-
raw_ostream::~raw_ostream() {
// raw_ostream's subclasses should take care to flush the buffer
// in their destructors.
More information about the llvm-commits
mailing list