mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
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:
committed by
Brad King
parent
d6754d37d5
commit
7f6b8d3399
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user