diff options
author | Nicola Zaghen <nicola.zaghen@imgtec.com> | 2018-05-15 16:37:45 +0000 |
---|---|---|
committer | Nicola Zaghen <nicola.zaghen@imgtec.com> | 2018-05-15 16:37:45 +0000 |
commit | 0efd52487e95f18c88f9c55791d733efccb29079 (patch) | |
tree | 9c801eb8010132407de5189c96b05c469f95bc5c /clang-tools-extra/clang-move/ClangMove.cpp | |
parent | 6043fd21b6a36de96bfeafba12bcf5f52cad8fee (diff) | |
download | bcm5719-llvm-0efd52487e95f18c88f9c55791d733efccb29079.tar.gz bcm5719-llvm-0efd52487e95f18c88f9c55791d733efccb29079.zip |
[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
Diffstat (limited to 'clang-tools-extra/clang-move/ClangMove.cpp')
-rw-r--r-- | clang-tools-extra/clang-move/ClangMove.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/clang-tools-extra/clang-move/ClangMove.cpp b/clang-tools-extra/clang-move/ClangMove.cpp index b89e0be1c37..16b0f723509 100644 --- a/clang-tools-extra/clang-move/ClangMove.cpp +++ b/clang-tools-extra/clang-move/ClangMove.cpp @@ -680,8 +680,8 @@ void ClangMoveTool::run(const ast_matchers::MatchFinder::MatchResult &Result) { Result.Nodes.getNodeAs<clang::NamedDecl>("helper_decls")) { MovedDecls.push_back(ND); HelperDeclarations.push_back(ND); - DEBUG(llvm::dbgs() << "Add helper : " - << ND->getNameAsString() << " (" << ND << ")\n"); + LLVM_DEBUG(llvm::dbgs() << "Add helper : " << ND->getNameAsString() << " (" + << ND << ")\n"); } else if (const auto *UD = Result.Nodes.getNodeAs<clang::NamedDecl>("using_decl")) { MovedDecls.push_back(UD); @@ -741,12 +741,12 @@ void ClangMoveTool::removeDeclsInOldFiles() { // We remove the helper declarations which are not used in the old.cc after // moving the given declarations. for (const auto *D : HelperDeclarations) { - DEBUG(llvm::dbgs() << "Check helper is used: " - << D->getNameAsString() << " (" << D << ")\n"); + LLVM_DEBUG(llvm::dbgs() << "Check helper is used: " + << D->getNameAsString() << " (" << D << ")\n"); if (!UsedDecls.count(HelperDeclRGBuilder::getOutmostClassOrFunDecl( D->getCanonicalDecl()))) { - DEBUG(llvm::dbgs() << "Helper removed in old.cc: " - << D->getNameAsString() << " (" << D << ")\n"); + LLVM_DEBUG(llvm::dbgs() << "Helper removed in old.cc: " + << D->getNameAsString() << " (" << D << ")\n"); RemovedDecls.push_back(D); } } @@ -826,8 +826,8 @@ void ClangMoveTool::moveDeclsToNewFiles() { D->getCanonicalDecl()))) continue; - DEBUG(llvm::dbgs() << "Helper used in new.cc: " << D->getNameAsString() - << " " << D << "\n"); + LLVM_DEBUG(llvm::dbgs() << "Helper used in new.cc: " << D->getNameAsString() + << " " << D << "\n"); ActualNewCCDecls.push_back(D); } @@ -937,7 +937,7 @@ void ClangMoveTool::onEndOfTranslationUnit() { moveAll(SM, Context->Spec.OldCC, Context->Spec.NewCC); return; } - DEBUG(RGBuilder.getGraph()->dump()); + LLVM_DEBUG(RGBuilder.getGraph()->dump()); moveDeclsToNewFiles(); removeDeclsInOldFiles(); } |