[clang-tools-extra] r270082 - [include-fixer] Fix unused variable warning in Release builds.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Thu May 19 09:57:57 PDT 2016
Author: d0k
Date: Thu May 19 11:57:57 2016
New Revision: 270082
URL: http://llvm.org/viewvc/llvm-project?rev=270082&view=rev
Log:
[include-fixer] Fix unused variable warning in Release builds.
Modified:
clang-tools-extra/trunk/include-fixer/IncludeFixer.cpp
Modified: clang-tools-extra/trunk/include-fixer/IncludeFixer.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/IncludeFixer.cpp?rev=270082&r1=270081&r2=270082&view=diff
==============================================================================
--- clang-tools-extra/trunk/include-fixer/IncludeFixer.cpp (original)
+++ clang-tools-extra/trunk/include-fixer/IncludeFixer.cpp Thu May 19 11:57:57 2016
@@ -259,10 +259,11 @@ public:
Insertions.insert(
clang::tooling::Replacement(Filename, FirstIncludeOffset, 0, Text));
}
- DEBUG(llvm::dbgs() << "Header insertions:\n");
- for (const auto &R : Insertions) {
- DEBUG(llvm::dbgs() << R.toString() << "\n");
- }
+ DEBUG({
+ llvm::dbgs() << "Header insertions:\n";
+ for (const auto &R : Insertions)
+ llvm::dbgs() << R.toString() << '\n';
+ });
clang::format::FormatStyle Style =
clang::format::getStyle("file", Filename, FallbackStyle);
More information about the cfe-commits
mailing list