Debian Codegraph @

CodeFormatter/fmtCMakeForamt.cpp

raw
1 #include "fmtCMakeForamt.hpp"
2
3 #include "Platform.hpp"
4
5 fmtCMakeForamt::fmtCMakeForamt()
6 {
7 SetName("cmake-format");
8 SetFileTypes({ FileExtManager::TypeCMake });
9 SetDescription(_("Parse cmake listfiles and format them nicely"));
10 SetShortDescription(_("cmake-format - a CMake formatter"));
11 SetConfigFilepath("$(WorkspacePath)/.cmake-format");
12 SetInplaceFormatter(true);
13
14 // local command
15 wxString cmake_format;
16 ThePlatform->Which("cmake-format", &cmake_format);
17 SetCommand({ cmake_format, R"#(--line-width=120 --tab-size=4 -i "$(CurrentFileFullPath)")#" });
18 }
19
20 fmtCMakeForamt::~fmtCMakeForamt() {}