MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / SetConfigFilePath

Method SetConfigFilePath

CodeFormat/src/FormatContext.cpp:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void FormatContext::SetConfigFilePath(std::string_view configPath) {
42 if (!configPath.empty()) {
43 auto &config = _configs.emplace_back("");
44 config.Editorconfig = LuaEditorConfig::OpenFile(std::string(configPath));
45 }
46}
47
48void FormatContext::SetDefaultStyleOptions(std::map<std::string, std::string, std::less<>> &keyValues) {
49 if (keyValues.empty()) {

Callers 2

InitFormatFunction · 0.80
InitCheckFunction · 0.80

Calls 2

stringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected