@@ -155,7 +155,7 @@ bool LuaFormat::Check(std::string_view workspace, std::shared_ptr<CodeSpellCheck
155155 {
156156 auto errors = _parser->GetErrors ();
157157
158- std::cerr << format (" Check {}\t {} error" , inputFile, errors.size ()) << std::endl;
158+ std::cerr << Util:: format (" Check {}\t {} error" , inputFile, errors.size ()) << std::endl;
159159
160160 for (auto & error : errors)
161161 {
@@ -194,7 +194,7 @@ bool LuaFormat::Check(std::string_view workspace, std::shared_ptr<CodeSpellCheck
194194 auto diagnosis = ctx.GetDiagnosisInfos ();
195195 if (!diagnosis.empty ())
196196 {
197- std::cerr << format (" Check {}\t {} warning" , inputFile, diagnosis.size ()) << std::endl;
197+ std::cerr << Util:: format (" Check {}\t {} warning" , inputFile, diagnosis.size ()) << std::endl;
198198
199199 for (auto & d : diagnosis)
200200 {
@@ -208,7 +208,7 @@ bool LuaFormat::Check(std::string_view workspace, std::shared_ptr<CodeSpellCheck
208208
209209 return false ;
210210 }
211- std::cout << format (" Check {} OK" , inputFile) << std::endl;
211+ std::cout << Util:: format (" Check {} OK" , inputFile) << std::endl;
212212 return true ;
213213}
214214
@@ -220,6 +220,6 @@ void LuaFormat::DiagnosisInspection(std::string_view message, TextRange range, s
220220 auto startChar = file->GetColumn (range.StartOffset );
221221 auto endLine = file->GetLine (range.EndOffset );
222222 auto endChar = file->GetColumn (range.EndOffset );
223- std::cerr << format (" {}({}:{} to {}:{}): {}" , path, startLine + 1 , startChar, endLine + 1 , endChar,
223+ std::cerr << Util:: format (" {}({}:{} to {}:{}): {}" , path, startLine + 1 , startChar, endLine + 1 , endChar,
224224 message) << std::endl;
225225}
0 commit comments