1
0
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:
Brad King
2021-06-03 14:52:33 -04:00
parent 410bf8ed4f
commit dbfb50cd72

View File

@@ -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.