Revert "Remove unnecessary 'visitDecl' default cases."

This commit is contained in:
Doug Gregor
2016-01-11 21:07:21 -08:00
parent bef06570c7
commit d1707c02c1
2 changed files with 7 additions and 0 deletions

View File

@@ -156,6 +156,9 @@ class UIdentVisitor : public ASTVisitor<UIdentVisitor,
public:
explicit UIdentVisitor(bool IsRef) : IsRef(IsRef) { }
/// TODO: reconsider whether having a default case is a good idea.
UIdent visitDecl(const Decl *D) { return UIdent(); }
UIdent visitFuncDecl(const FuncDecl *D);
UIdent visitVarDecl(const VarDecl *D);
UIdent visitExtensionDecl(const ExtensionDecl *D);