[clang-tools-extra] r364535 - [clang-tidy] Fix NDEBUG build [NFC]
Mikael Holmen via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 27 05:47:58 PDT 2019
Author: uabelho
Date: Thu Jun 27 05:47:57 2019
New Revision: 364535
URL: http://llvm.org/viewvc/llvm-project?rev=364535&view=rev
Log:
[clang-tidy] Fix NDEBUG build [NFC]
Modified:
clang-tools-extra/trunk/clang-tidy/utils/TransformerClangTidyCheck.cpp
Modified: clang-tools-extra/trunk/clang-tidy/utils/TransformerClangTidyCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/utils/TransformerClangTidyCheck.cpp?rev=364535&r1=364534&r2=364535&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/utils/TransformerClangTidyCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/utils/TransformerClangTidyCheck.cpp Thu Jun 27 05:47:57 2019
@@ -14,9 +14,11 @@ namespace tidy {
namespace utils {
using tooling::RewriteRule;
+#ifndef NDEBUG
static bool hasExplanation(const RewriteRule::Case &C) {
return C.Explanation != nullptr;
}
+#endif
// This constructor cannot dispatch to the simpler one (below), because, in
// order to get meaningful results from `getLangOpts` and `Options`, we need the
More information about the cfe-commits
mailing list