chore: upgrade to clang-format@21
This commit is contained in:
@ -14,29 +14,29 @@ namespace waybar {
|
||||
class Config {
|
||||
public:
|
||||
static const std::vector<std::string> CONFIG_DIRS;
|
||||
static const char *CONFIG_PATH_ENV;
|
||||
static const char* CONFIG_PATH_ENV;
|
||||
|
||||
/* Try to find any of provided names in the supported set of config directories */
|
||||
static std::optional<std::string> findConfigPath(
|
||||
const std::vector<std::string> &names, const std::vector<std::string> &dirs = CONFIG_DIRS);
|
||||
const std::vector<std::string>& names, const std::vector<std::string>& dirs = CONFIG_DIRS);
|
||||
|
||||
static std::vector<std::string> tryExpandPath(const std::string &base,
|
||||
const std::string &filename);
|
||||
static std::vector<std::string> tryExpandPath(const std::string& base,
|
||||
const std::string& filename);
|
||||
|
||||
Config() = default;
|
||||
|
||||
void load(const std::string &config);
|
||||
void load(const std::string& config);
|
||||
|
||||
Json::Value &getConfig() { return config_; }
|
||||
Json::Value& getConfig() { return config_; }
|
||||
|
||||
std::vector<Json::Value> getOutputConfigs(const std::string &name, const std::string &identifier);
|
||||
std::vector<Json::Value> getOutputConfigs(const std::string& name, const std::string& identifier);
|
||||
|
||||
private:
|
||||
void setupConfig(Json::Value &dst, const std::string &config_file, int depth);
|
||||
void resolveConfigIncludes(Json::Value &config, int depth);
|
||||
void mergeConfig(Json::Value &a_config_, Json::Value &b_config_);
|
||||
void setupConfig(Json::Value& dst, const std::string& config_file, int depth);
|
||||
void resolveConfigIncludes(Json::Value& config, int depth);
|
||||
void mergeConfig(Json::Value& a_config_, Json::Value& b_config_);
|
||||
static std::vector<std::string> findIncludePath(
|
||||
const std::string &name, const std::vector<std::string> &dirs = CONFIG_DIRS);
|
||||
const std::string& name, const std::vector<std::string>& dirs = CONFIG_DIRS);
|
||||
|
||||
std::string config_file_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user