File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ bool LuaFormat::CheckWorkspace() {
373373 finder.AddIgnoreDirectory (" .vs" );
374374 finder.AddIgnoreDirectory (" .vscode" );
375375 for (auto pattern: _ignorePattern) {
376- finder.AddignorePatterns (pattern);
376+ finder.AddIgnorePatterns (pattern);
377377 }
378378
379379 auto files = finder.FindFiles ();
@@ -423,7 +423,7 @@ bool LuaFormat::ReformatWorkspace() {
423423 finder.AddIgnoreDirectory (" .vs" );
424424 finder.AddIgnoreDirectory (" .vscode" );
425425 for (auto pattern: _ignorePattern) {
426- finder.AddignorePatterns (pattern);
426+ finder.AddIgnorePatterns (pattern);
427427 }
428428
429429 auto files = finder.FindFiles ();
Original file line number Diff line number Diff line change 88
99class FileFinder {
1010public:
11- FileFinder (std::filesystem::path root);
11+ explicit FileFinder (std::filesystem::path root);
1212
1313 void AddIgnoreDirectory (const std::string &extension);
1414
1515 void AddFindExtension (const std::string &extension);
1616
1717 void AddFindFile (const std::string &fileName);
1818
19- void AddignorePatterns (const std::string &pattern);
19+ void AddIgnorePatterns (const std::string &pattern);
2020
2121 std::vector<std::string> FindFiles ();
2222
Original file line number Diff line number Diff line change 11#pragma once
22
3- #include < string >
4- #include < string_view >
3+ #include < cstddef >
4+ #include < cstdint >
55
66namespace utf8 {
77/*
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ void FileFinder::AddFindFile(const std::string &fileName) {
1717 _findFile.insert (fileName);
1818}
1919
20- void FileFinder::AddignorePatterns (const std::string &pattern) {
20+ void FileFinder::AddIgnorePatterns (const std::string &pattern) {
2121 if (pattern.empty ()) {
2222 return ;
2323 }
You can’t perform that action at this time.
0 commit comments