From 0efd52487e95f18c88f9c55791d733efccb29079 Mon Sep 17 00:00:00 2001 From: Nicola Zaghen Date: Tue, 15 May 2018 16:37:45 +0000 Subject: [clang-tools-extra] Update uses of DEBUG macro to LLVM_DEBUG. The DEBUG() macro is very generic so it might clash with other projects. The renaming was done as follows: - git grep -l 'DEBUG' | xargs sed -i 's/\bDEBUG\s\?(/LLVM_DEBUG(/g' - git diff -U0 master | ../clang/tools/clang-format/clang-format-diff.py -i -p1 -style LLVM Differential Revision: https://reviews.llvm.org/D44976 llvm-svn: 332371 --- clang-tools-extra/clang-move/HelperDeclRefGraph.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'clang-tools-extra/clang-move/HelperDeclRefGraph.cpp') diff --git a/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp b/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp index 00ab9ea651f..28200e0b1c9 100644 --- a/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp +++ b/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp @@ -116,9 +116,9 @@ void HelperDeclRGBuilder::run( if (const auto *FuncRef = Result.Nodes.getNodeAs("func_ref")) { const auto *DC = Result.Nodes.getNodeAs("dc"); assert(DC); - DEBUG(llvm::dbgs() << "Find helper function usage: " - << FuncRef->getDecl()->getNameAsString() << " (" - << FuncRef->getDecl() << ")\n"); + LLVM_DEBUG(llvm::dbgs() << "Find helper function usage: " + << FuncRef->getDecl()->getNameAsString() << " (" + << FuncRef->getDecl() << ")\n"); RG->addEdge( getOutmostClassOrFunDecl(DC->getCanonicalDecl()), getOutmostClassOrFunDecl(FuncRef->getDecl()->getCanonicalDecl())); @@ -126,9 +126,9 @@ void HelperDeclRGBuilder::run( Result.Nodes.getNodeAs("used_class")) { const auto *DC = Result.Nodes.getNodeAs("dc"); assert(DC); - DEBUG(llvm::dbgs() << "Find helper class usage: " - << UsedClass->getNameAsString() << " (" << UsedClass - << ")\n"); + LLVM_DEBUG(llvm::dbgs() + << "Find helper class usage: " << UsedClass->getNameAsString() + << " (" << UsedClass << ")\n"); RG->addEdge(getOutmostClassOrFunDecl(DC->getCanonicalDecl()), UsedClass); } } -- cgit v1.2.3