Skip to content

Commit 72efe15

Browse files
authored
Reapply 44c0719 with fix; NFC (llvm#125100)
Silence MSVC warnings; NFC After the changes to DynamicRecursiveASTVisitor, we started getting several warnings from MSVC like: warning C4661: 'bool clang::DynamicRecursiveASTVisitorBase<false>::WalkUpFromNamedDecl(clang::NamedDecl *)': no suitable definition provided for explicit template instantiation request These changes silence the warnings by providing a definition for those functions.
1 parent 0d46657 commit 72efe15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/include/clang/AST/DynamicRecursiveASTVisitor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ template <bool IsConst> class DynamicRecursiveASTVisitorBase {
251251
// Decls.
252252
#define ABSTRACT_DECL(DECL)
253253
#define DECL(CLASS, BASE) \
254+
bool WalkUpFrom##CLASS##Decl(MaybeConst<CLASS##Decl> *D); \
254255
virtual bool Traverse##CLASS##Decl(MaybeConst<CLASS##Decl> *D);
255256
#include "clang/AST/DeclNodes.inc"
256257

257258
#define DECL(CLASS, BASE) \
258-
bool WalkUpFrom##CLASS##Decl(MaybeConst<CLASS##Decl> *D); \
259259
virtual bool Visit##CLASS##Decl(MaybeConst<CLASS##Decl> *D) { return true; }
260260
#include "clang/AST/DeclNodes.inc"
261261

@@ -272,11 +272,11 @@ template <bool IsConst> class DynamicRecursiveASTVisitorBase {
272272
// Types.
273273
#define ABSTRACT_TYPE(CLASS, BASE)
274274
#define TYPE(CLASS, BASE) \
275+
bool WalkUpFrom##CLASS##Type(MaybeConst<CLASS##Type> *T); \
275276
virtual bool Traverse##CLASS##Type(MaybeConst<CLASS##Type> *T);
276277
#include "clang/AST/TypeNodes.inc"
277278

278279
#define TYPE(CLASS, BASE) \
279-
bool WalkUpFrom##CLASS##Type(MaybeConst<CLASS##Type> *T); \
280280
virtual bool Visit##CLASS##Type(MaybeConst<CLASS##Type> *T) { return true; }
281281
#include "clang/AST/TypeNodes.inc"
282282

0 commit comments

Comments
 (0)