|
CPGen
C++ project generator
|
Shared utilities for locating CPGen's template directories. More...
#include <filesystem>#include <vector>

Go to the source code of this file.
Namespaces | |
| namespace | PathResolver |
Functions | |
| std::filesystem::path | PathResolver::executablePath () |
| Resolve the absolute path of the running executable. | |
| std::vector< std::filesystem::path > | PathResolver::resolveTemplatePaths () |
| Build the ordered list of template search directories. | |
| std::filesystem::path | PathResolver::findTemplatesRoot () |
| Return the first existing template root directory. | |
Shared utilities for locating CPGen's template directories.
Centralises the template search-path logic that was previously duplicated between ModuleResolver and main.cpp.
~/.config/cpgen/templates (user-local)/usr/local/share/cpgen/templates (system-wide, local install)/usr/share/cpgen/templates (system-wide, package manager)<executable_dir>/templates (development in-tree build)