clang-tidy: fix warnings from version 7

Fix some warnings that are new since clang-tidy version 4, and update
`.clang-tidy` to suppress the rest.
This commit is contained in:
Regina Pfeifer
2018-11-19 18:10:40 +01:00
committed by Brad King
parent 1dc85a6652
commit 5731ec30f0
12 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ bool cmForEachFunctionBlocker::IsFunctionBlocked(const cmListFileFunction& lff,
// Remove the function blocker for this scope or bail.
std::unique_ptr<cmFunctionBlocker> fb(
mf.RemoveFunctionBlocker(this, lff));
if (!fb.get()) {
if (!fb) {
return false;
}