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

Function ReformatLuaCode

CodeFormatCLib/src/CodeFormatCLib.cpp:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5extern "C" {
6
7EMMY_API char *ReformatLuaCode(const char *code, const char *uri, FormattingOptions options) {
8 CodeFormat &codeFormat = CodeFormat::GetInstance();
9 auto result = codeFormat.Reformat(uri, code, options);
10 return result;
11}
12
13EMMY_API RangeFormatResult RangeFormatLuaCode(const char *code, const char *uri, int startLine, int startCol, int endLine, int endCol, FormattingOptions options) {
14 CodeFormat &codeFormat = CodeFormat::GetInstance();

Callers

nothing calls this directly

Calls 1

ReformatMethod · 0.45

Tested by

no test coverage detected