@@ -183,21 +183,21 @@ TEST(CreateToolExecutorTest, CreateTestToolExecutor) {
183
183
}
184
184
185
185
TEST (StandaloneToolTest, SynctaxOnlyActionOnSimpleCode) {
186
- FixedCompilationDatabase Compilations (" / " , std::vector<std::string>());
186
+ FixedCompilationDatabase Compilations (" . " , std::vector<std::string>());
187
187
StandaloneToolExecutor Executor (Compilations,
188
- std::vector<std::string>(1 , " / a.cc" ));
189
- Executor.mapVirtualFile (" / a.cc" , " int x = 0;" );
188
+ std::vector<std::string>(1 , " a.cc" ));
189
+ Executor.mapVirtualFile (" a.cc" , " int x = 0;" );
190
190
191
191
auto Err = Executor.execute (newFrontendActionFactory<SyntaxOnlyAction>(),
192
192
getClangSyntaxOnlyAdjuster ());
193
193
ASSERT_TRUE (!Err);
194
194
}
195
195
196
196
TEST (StandaloneToolTest, SimpleAction) {
197
- FixedCompilationDatabase Compilations (" / " , std::vector<std::string>());
197
+ FixedCompilationDatabase Compilations (" . " , std::vector<std::string>());
198
198
StandaloneToolExecutor Executor (Compilations,
199
- std::vector<std::string>(1 , " / a.cc" ));
200
- Executor.mapVirtualFile (" / a.cc" , " int x = 0;" );
199
+ std::vector<std::string>(1 , " a.cc" ));
200
+ Executor.mapVirtualFile (" a.cc" , " int x = 0;" );
201
201
202
202
auto Err = Executor.execute (std::unique_ptr<FrontendActionFactory>(
203
203
new ReportResultActionFactory (Executor.getExecutionContext ())));
@@ -207,10 +207,10 @@ TEST(StandaloneToolTest, SimpleAction) {
207
207
}
208
208
209
209
TEST (StandaloneToolTest, SimpleActionWithResult) {
210
- FixedCompilationDatabase Compilations (" / " , std::vector<std::string>());
210
+ FixedCompilationDatabase Compilations (" . " , std::vector<std::string>());
211
211
StandaloneToolExecutor Executor (Compilations,
212
- std::vector<std::string>(1 , " / a.cc" ));
213
- Executor.mapVirtualFile (" / a.cc" , " int x = 0; void f() {}" );
212
+ std::vector<std::string>(1 , " a.cc" ));
213
+ Executor.mapVirtualFile (" a.cc" , " int x = 0; void f() {}" );
214
214
215
215
auto Err = Executor.execute (std::unique_ptr<FrontendActionFactory>(
216
216
new ReportResultActionFactory (Executor.getExecutionContext ())));
0 commit comments