Skip to content

Commit 61e966e

Browse files
[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.
1 parent bf71c34 commit 61e966e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

llvm/lib/Support/raw_ostream.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,6 @@
6161

6262
using namespace llvm;
6363

64-
constexpr raw_ostream::Colors raw_ostream::BLACK;
65-
constexpr raw_ostream::Colors raw_ostream::RED;
66-
constexpr raw_ostream::Colors raw_ostream::GREEN;
67-
constexpr raw_ostream::Colors raw_ostream::YELLOW;
68-
constexpr raw_ostream::Colors raw_ostream::BLUE;
69-
constexpr raw_ostream::Colors raw_ostream::MAGENTA;
70-
constexpr raw_ostream::Colors raw_ostream::CYAN;
71-
constexpr raw_ostream::Colors raw_ostream::WHITE;
72-
constexpr raw_ostream::Colors raw_ostream::SAVEDCOLOR;
73-
constexpr raw_ostream::Colors raw_ostream::RESET;
74-
7564
raw_ostream::~raw_ostream() {
7665
// raw_ostream's subclasses should take care to flush the buffer
7766
// in their destructors.

0 commit comments

Comments
 (0)