clang-tidy clang-analyzer-core.NonNullParamChecker

This commit is contained in:
Daniel Agar 2017-01-31 14:38:01 -05:00
parent 345123bb04
commit b068c61784
2 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,
## TODO: fix code and enable # clang-analyzer-core.CallAndMessage,
clang-analyzer-core.DivideZero,
clang-analyzer-core.DynamicTypePropagation,
## TODO: fix code and enable # clang-analyzer-core.NonNullParamChecker,
clang-analyzer-core.NonNullParamChecker,
## TODO: fix code and enable # clang-analyzer-core.NullDereference,
clang-analyzer-core.StackAddressEscape,
#clang-analyzer-core.UndefinedBinaryOperatorResult,
@ -41,7 +41,7 @@ Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,
clang-analyzer-nullability.NullablePassedToNonnull,
clang-analyzer-nullability.NullableReturnedFromNonnull,
clang-analyzer-nullability.NullPassedToNonnull,
## TODO: fix code and enable # clang-analyzer-nullability.NullReturnedFromNonnull,
clang-analyzer-nullability.NullReturnedFromNonnull,
## evaluate # clang-analyzer-optin.cplusplus.VirtualCall,
## TODO: fix code and enable # clang-analyzer-optin.performance.Padding,
## TODO: fix code and enable # clang-analyzer-security.FloatLoopCounter,
@ -64,14 +64,14 @@ Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,
cppcoreguidelines-c-copy-assignment-signature,
#cppcoreguidelines-interfaces-global-init,
#cppcoreguidelines-no-malloc,
## TODO: fix code and enable # cppcoreguidelines-pro-bounds-array-to-pointer-decay,
#cppcoreguidelines-pro-bounds-array-to-pointer-decay,
#cppcoreguidelines-pro-bounds-constant-array-index,
#cppcoreguidelines-pro-bounds-pointer-arithmetic,
## TODO: fix code and enable # cppcoreguidelines-pro-type-const-cast,
#cppcoreguidelines-pro-type-cstyle-cast,
## TODO: fix code and enable # cppcoreguidelines-pro-type-member-init,
#cppcoreguidelines-pro-type-reinterpret-cast,
## TODO: fix code and enable # cppcoreguidelines-pro-type-static-cast-downcast,
cppcoreguidelines-pro-type-static-cast-downcast,
#cppcoreguidelines-pro-type-union-access,
#cppcoreguidelines-pro-type-vararg,
cppcoreguidelines-slicing,

View File

@ -579,10 +579,10 @@ LogListHelper::_scan_logs(FILE *f, const char *dir, time_t &date)
}
}
}
}
closedir(dp);
}
}
//-------------------------------------------------------------------
bool