Skip to content

Commit 8f019f1

Browse files
author
git apple-llvm automerger
committed
Merge commit 'd5d697f35912' from llvm.org/main into next
2 parents 61c79e8 + d5d697f commit 8f019f1

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

clang/lib/Analysis/ExprMutationAnalyzer.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,12 @@ const auto isMoveOnly = [] {
238238
};
239239

240240
template <class T> struct NodeID;
241-
template <> struct NodeID<Expr> { static constexpr StringRef value = "expr"; };
242-
template <> struct NodeID<Decl> { static constexpr StringRef value = "decl"; };
243-
constexpr StringRef NodeID<Expr>::value;
244-
constexpr StringRef NodeID<Decl>::value;
241+
template <> struct NodeID<Expr> {
242+
static constexpr StringRef value = "expr";
243+
};
244+
template <> struct NodeID<Decl> {
245+
static constexpr StringRef value = "decl";
246+
};
245247

246248
template <class T,
247249
class F = const Stmt *(ExprMutationAnalyzer::Analyzer::*)(const T *)>

clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3254,9 +3254,6 @@ bool ConditionBRVisitor::printValue(const Expr *CondVarExpr, raw_ostream &Out,
32543254
return true;
32553255
}
32563256

3257-
constexpr llvm::StringLiteral ConditionBRVisitor::GenericTrueMessage;
3258-
constexpr llvm::StringLiteral ConditionBRVisitor::GenericFalseMessage;
3259-
32603257
bool ConditionBRVisitor::isPieceMessageGeneric(
32613258
const PathDiagnosticPiece *Piece) {
32623259
return Piece->getString() == GenericTrueMessage ||

clang/lib/Tooling/Syntax/TokenBufferTokenManager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
namespace clang {
1212
namespace syntax {
13-
constexpr llvm::StringLiteral syntax::TokenBufferTokenManager::Kind;
14-
1513
std::pair<FileID, ArrayRef<syntax::Token>>
1614
syntax::TokenBufferTokenManager::lexBuffer(
1715
std::unique_ptr<llvm::MemoryBuffer> Input) {

0 commit comments

Comments
 (0)