cmDyndepCollation: update template module database files if requested

This commit is contained in:
Ben Boeckel
2023-09-24 16:04:20 -04:00
parent 9c0491a3e4
commit bea4fb7cd6
3 changed files with 119 additions and 0 deletions

View File

@@ -41,6 +41,14 @@ public:
cmBuildDatabase(cmBuildDatabase const&);
~cmBuildDatabase();
using LookupTable = std::map<std::string, TranslationUnit*>;
// Generate a lookup table for the database.
//
// Only use when loading a single target's database in order to populate it.
LookupTable GenerateLookupTable();
bool HasPlaceholderNames() const;
void Write(std::string const& path) const;
static std::unique_ptr<cmBuildDatabase> Load(std::string const& path);