[clang-tools-extra] r251262 - [clang-tidy] Add return value for non-assert builds.
Daniel Jasper via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 25 14:44:55 PDT 2015
Author: djasper
Date: Sun Oct 25 16:44:55 2015
New Revision: 251262
URL: http://llvm.org/viewvc/llvm-project?rev=251262&view=rev
Log:
[clang-tidy] Add return value for non-assert builds.
Modified:
clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp
Modified: clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp?rev=251262&r1=251261&r2=251262&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp Sun Oct 25 16:44:55 2015
@@ -84,6 +84,7 @@ getZeroLiteralToCompareWithForGivenType(
default:
assert(false && "Unexpected cast kind");
}
+ return "";
}
bool isUnaryLogicalNotOperator(const Stmt *Statement) {
More information about the cfe-commits
mailing list