MCPcopy Create free account
hub / github.com/Koihik/LuaFormatter / lua_format

Function lua_format

src/lua-format.cpp:111–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111std::string lua_format(std::istream& is, const Config& config) {
112 std::ostringstream os;
113 os << is.rdbuf();
114 std::string original = os.str();
115 ANTLRInputStream input(original);
116 std::string formatted = __format(input, config);
117 formatted = handleLineSeparator(original, formatted, config);
118 return resetContentInDisableFormatBlocks(original, formatted);
119}
120
121std::string lua_format(const std::string& str, const Config& config) {
122 ANTLRInputStream input(str);

Callers 4

test_config.cppFile · 0.85
test_parser.cppFile · 0.85
test_args.cppFile · 0.85
mainFunction · 0.85

Calls 4

__formatFunction · 0.85
handleLineSeparatorFunction · 0.85
strMethod · 0.80

Tested by

no test coverage detected