Skip to content

Commit 111f322

Browse files
committed
fix default namestyle check
1 parent 545f0fb commit 111f322

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CodeFormat/src/FormatContext.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#include <fstream>
66
#include <iostream>
77

8+
FormatContext::FormatContext() {
9+
_diagnosticStyle.name_style_check = false;
10+
}
11+
812
void FormatContext::SetWorkMode(WorkMode mode) {
913
_workMode = mode;
1014
}

CodeFormat/src/FormatContext.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
class FormatContext {
1313
public:
14+
FormatContext();
15+
1416
void SetWorkMode(WorkMode mode);
1517

1618
void SetWorkspacePath(std::string_view workspace);

0 commit comments

Comments
 (0)