From: Anders Carlsson Date: Mon, 14 Dec 2009 00:51:04 +0000 (+0000) Subject: Rename dump to dumpDeclContext, so that call RD->dump() won't dump the decl context... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84834432289a810e713f82f1ed94a99ad8a5c2ea;p=clang Rename dump to dumpDeclContext, so that call RD->dump() won't dump the decl context by default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91256 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index 17f379dace..497f86347a 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -1006,7 +1006,7 @@ public: static bool classof(const Name##Decl *D) { return true; } #include "clang/AST/DeclNodes.def" - void dump() const; + void dumpDeclContext() const; private: void LoadLexicalDeclsFromExternalStorage() const; diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index ed16b33116..32ac53d85b 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/lib/AST/DeclPrinter.cpp @@ -148,7 +148,7 @@ void Decl::printGroup(Decl** Begin, unsigned NumDecls, } } -void DeclContext::dump() const { +void DeclContext::dumpDeclContext() const { // Get the translation unit const DeclContext *DC = this; while (!DC->isTranslationUnit())