1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-16 14:08:35 +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)
{
assert(gen);
Json::Value installer = Json::objectValue;
// Exclude subdirectory installers. They are implementation details.