Simplify boolean expressions

Use clang-tidy's readability-simplify-boolean-expr checker.
After applying the fix-its, revise all changes *very* carefully.
Be aware of false positives and invalid changes.
This commit is contained in:
Daniel Pfeifer
2016-06-01 23:29:53 +02:00
committed by Brad King
parent d6754d37d5
commit 7f6b8d3399
37 changed files with 73 additions and 169 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ cmCustomCommand::cmCustomCommand(cmMakefile const* mf,
, Backtrace()
, Comment(comment ? comment : "")
, WorkingDirectory(workingDirectory ? workingDirectory : "")
, HaveComment(comment ? true : false)
, HaveComment(comment != NULL)
, EscapeAllowMakeVars(false)
, EscapeOldStyle(true)
{