Skip to content

Commit a0cd9be

Browse files
committed
Changed derived class with prefix string, 'My'.
1 parent 58a95bb commit a0cd9be

10 files changed

+579
-580
lines changed

CMakeLists.txt

+8-8
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ add_executable(
130130
cppnamelint
131131
submodule/tinytoml.git/include/toml/toml.h
132132
source/TraceMemo.h
133-
source/CommandLine.h
134133
source/Main.cpp
135134
source/Detection.h
136135
source/Detection.cpp
@@ -142,13 +141,14 @@ add_executable(
142141
source/Logger.cpp
143142
source/DumpDecl.h
144143
source/DumpDecl.cpp
145-
source/Factory.h
146-
source/Factory.cpp
147-
source/AstVisitor.h
148-
source/AstVisitor.cpp
149-
source/AstVisitorPriv.cpp
150-
source/AstConsumer.h
151-
source/AstConsumer.cpp
144+
source/MyCommandLine.h
145+
source/MyFactory.h
146+
source/MyFactory.cpp
147+
source/MyAstVisitor.h
148+
source/MyAstVisitor.cpp
149+
source/MyAstVisitorPriv.cpp
150+
source/MyAstConsumer.h
151+
source/MyAstConsumer.cpp
152152
source/test/TestConfig.cpp
153153
source/test/TestDetection.cpp
154154
source/test/TestRunCheck.cpp

source/Main.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
#include <nlohmann/json.hpp>
1212

1313
// This project
14-
#include "AstConsumer.h"
15-
#include "AstVisitor.h"
16-
#include "CommandLine.h"
1714
#include "Common.h"
1815
#include "Config.h"
1916
#include "Detection.h"
20-
#include "Factory.h"
17+
#include "MyAstConsumer.h"
18+
#include "MyAstVisitor.h"
19+
#include "MyCommandLine.h"
20+
#include "MyFactory.h"
2121

2222
// LLVM
2323
#include "clang/Tooling/CompilationDatabase.h"
@@ -55,8 +55,7 @@ int RunCheckFormFile(namelint::MemoBoard &Memo) {
5555
//
5656
// Create clang tool then add clang tool arguments.
5757
//
58-
vector<string> SingleFileInList = {Memo.File.Source};
59-
ClangTool Tool(*Compilations, SingleFileInList);
58+
ClangTool Tool(*Compilations, {Memo.File.Source});
6059

6160
//
6261
// Execute `check` command.

source/AstConsumer.cpp renamed to source/MyAstConsumer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#include "Common.h"
44
#include "Config.h"
55

6-
#include "AstConsumer.h"
7-
#include "AstVisitor.h"
6+
#include "MyAstConsumer.h"
7+
#include "MyAstVisitor.h"
88

99
using namespace std;
1010

File renamed without changes.

0 commit comments

Comments
 (0)