mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 19:43:23 +08:00
cmFileAPICodemodel: Assert input in DirectoryObject::DumpInstaller
This tells clang-analyzer that the `gen` argument is never `nullptr`.
This commit is contained in:
@@ -874,6 +874,7 @@ Json::Value DirectoryObject::DumpInstallers()
|
|||||||
|
|
||||||
Json::Value DirectoryObject::DumpInstaller(cmInstallGenerator* gen)
|
Json::Value DirectoryObject::DumpInstaller(cmInstallGenerator* gen)
|
||||||
{
|
{
|
||||||
|
assert(gen);
|
||||||
Json::Value installer = Json::objectValue;
|
Json::Value installer = Json::objectValue;
|
||||||
|
|
||||||
// Exclude subdirectory installers. They are implementation details.
|
// Exclude subdirectory installers. They are implementation details.
|
||||||
|
Reference in New Issue
Block a user