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

Function IF_EXIST

CodeFormatCore/src/Config/LuaStyle.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47void LuaStyle::Parse(std::map<std::string, std::string, std::less<>> &configMap) {
48 IF_EXIST(indent_style) {
49 if (value == "tab") {
50 indent_style = IndentStyle::Tab;
51 } else if (value == "space") {
52 indent_style = IndentStyle::Space;
53 }
54 }
55
56 NUMBER_OPTION(indent_size)
57

Callers 1

ParseMethod · 0.85

Calls 3

IsNumberFunction · 0.85
SetAllMethod · 0.45

Tested by

no test coverage detected