Skip to content

Commit 234c0c8

Browse files
committed
fix include
1 parent aa59114 commit 234c0c8

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

CodeFormat/src/LuaFormat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

Util/include/Util/FileFinder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
class FileFinder {
1010
public:
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

Util/include/Util/Utf8.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

3-
#include <string>
4-
#include <string_view>
3+
#include <cstddef>
4+
#include <cstdint>
55

66
namespace utf8 {
77
/*

Util/src/FileFinder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)