Skip to content

Commit 2f48ca3

Browse files
committed
Revert "Silence MSVC warnings; NFC"
This reverts commit 44c0719. It broke several -Werror bots because of misuse of override.
1 parent e436bf6 commit 2f48ca3

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

clang/include/clang/AST/DynamicRecursiveASTVisitor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ template <bool IsConst> class DynamicRecursiveASTVisitorBase {
254254
virtual bool Traverse##CLASS##Decl(MaybeConst<CLASS##Decl> *D);
255255
#include "clang/AST/DeclNodes.inc"
256256

257-
#define ABSTRACT_DECL(DECL)
258257
#define DECL(CLASS, BASE) \
259258
bool WalkUpFrom##CLASS##Decl(MaybeConst<CLASS##Decl> *D); \
260259
virtual bool Visit##CLASS##Decl(MaybeConst<CLASS##Decl> *D) { return true; }
@@ -276,7 +275,6 @@ template <bool IsConst> class DynamicRecursiveASTVisitorBase {
276275
virtual bool Traverse##CLASS##Type(MaybeConst<CLASS##Type> *T);
277276
#include "clang/AST/TypeNodes.inc"
278277

279-
#define ABSTRACT_TYPE(CLASS, BASE)
280278
#define TYPE(CLASS, BASE) \
281279
bool WalkUpFrom##CLASS##Type(MaybeConst<CLASS##Type> *T); \
282280
virtual bool Visit##CLASS##Type(MaybeConst<CLASS##Type> *T) { return true; }

clang/lib/AST/DynamicRecursiveASTVisitor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ template <bool Const> struct Impl : RecursiveASTVisitor<Impl<Const>> {
221221
return Visitor.Traverse##CLASS##Decl(D); \
222222
}
223223
#include "clang/AST/DeclNodes.inc"
224-
#define ABSTRACT_DECL(DECL)
224+
225225
#define DECL(CLASS, BASE) \
226226
bool Visit##CLASS##Decl(CLASS##Decl *D) { \
227227
return Visitor.Visit##CLASS##Decl(D); \
@@ -246,7 +246,6 @@ template <bool Const> struct Impl : RecursiveASTVisitor<Impl<Const>> {
246246
}
247247
#include "clang/AST/TypeNodes.inc"
248248

249-
#define ABSTRACT_TYPE(CLASS, BASE)
250249
#define TYPE(CLASS, BASE) \
251250
bool Visit##CLASS##Type(CLASS##Type *T) { \
252251
return Visitor.Visit##CLASS##Type(T); \

0 commit comments

Comments
 (0)