File tree Expand file tree Collapse file tree 9 files changed +25
-15
lines changed Expand file tree Collapse file tree 9 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 1
- // ===------ unittest/AST/Language .h - AST unit test support ---------------===//
1
+ // ===--- CommandLineArgs .h --------------------------------- ---------------===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
//
9
- // This file defines language options for AST unittests.
9
+ // This file defines language options for Clang unittests.
10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
- #ifndef LLVM_CLANG_UNITTESTS_AST_LANGUAGE_H
14
- #define LLVM_CLANG_UNITTESTS_AST_LANGUAGE_H
13
+ #ifndef LLVM_CLANG_TESTING_COMMANDLINEARGS_H
14
+ #define LLVM_CLANG_TESTING_COMMANDLINEARGS_H
15
15
16
- #include < vector>
17
16
#include < string>
17
+ #include < vector>
18
18
19
19
namespace clang {
20
20
Original file line number Diff line number Diff line change @@ -152,6 +152,12 @@ module Clang_StaticAnalyzer_Frontend {
152
152
module * { export * }
153
153
}
154
154
155
+ module Clang_Testing {
156
+ requires cplusplus
157
+ umbrella "Testing"
158
+ module * { export * }
159
+ }
160
+
155
161
module Clang_Tooling {
156
162
requires cplusplus umbrella "Tooling" module * { export * }
157
163
// FIXME: Exclude these headers to avoid pulling all of the AST matchers
Original file line number Diff line number Diff line change @@ -24,3 +24,4 @@ if(CLANG_ENABLE_STATIC_ANALYZER)
24
24
add_subdirectory (StaticAnalyzer)
25
25
endif ()
26
26
add_subdirectory (Format)
27
+ add_subdirectory (Testing)
Original file line number Diff line number Diff line change
1
+ set (LLVM_LINK_COMPONENTS
2
+ Support
3
+ )
4
+
5
+ add_clang_library(clangTesting
6
+ CommandLineArgs.cpp
7
+ )
Original file line number Diff line number Diff line change 1
- // ===------ unittest/AST/Language .cpp - AST unit test support -------------===//
1
+ // ===--- CommandLineArgs .cpp --------------------------------- -------------===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- //
9
- // This file defines language options for AST unittests.
10
- //
11
- // ===----------------------------------------------------------------------===//
12
8
13
- #include " Language .h"
9
+ #include " clang/Testing/CommandLineArgs .h"
14
10
#include " llvm/Support/ErrorHandling.h"
15
11
16
12
namespace clang {
Original file line number Diff line number Diff line change 19
19
#include " clang/AST/ASTImporter.h"
20
20
#include " clang/AST/ASTImporterSharedState.h"
21
21
#include " clang/Frontend/ASTUnit.h"
22
+ #include " clang/Testing/CommandLineArgs.h"
22
23
#include " llvm/Support/Error.h"
23
24
#include " llvm/Support/ErrorHandling.h"
24
25
25
26
#include " DeclMatcher.h"
26
- #include " Language.h"
27
27
28
28
#include < sstream>
29
29
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ add_clang_unittest(ASTTests
26
26
DeclTest.cpp
27
27
EvaluateAsRValueTest.cpp
28
28
ExternalASTSourceTest.cpp
29
- Language .cpp
30
29
NamedDeclPrinterTest.cpp
31
30
RecursiveASTVisitorTest.cpp
32
31
SizelessTypesTest.cpp
@@ -42,6 +41,7 @@ clang_target_link_libraries(ASTTests
42
41
clangBasic
43
42
clangFrontend
44
43
clangSerialization
44
+ clangTesting
45
45
clangTooling
46
46
)
47
47
Original file line number Diff line number Diff line change 21
21
#include " clang/AST/ASTContext.h"
22
22
#include " clang/ASTMatchers/ASTMatchFinder.h"
23
23
#include " clang/ASTMatchers/ASTMatchers.h"
24
+ #include " clang/Testing/CommandLineArgs.h"
24
25
#include " clang/Tooling/Tooling.h"
25
- #include " Language.h"
26
26
#include " gtest/gtest.h"
27
27
28
28
namespace clang {
Original file line number Diff line number Diff line change 2
2
#include " clang/AST/ASTStructuralEquivalence.h"
3
3
#include " clang/ASTMatchers/ASTMatchers.h"
4
4
#include " clang/Frontend/ASTUnit.h"
5
+ #include " clang/Testing/CommandLineArgs.h"
5
6
#include " clang/Tooling/Tooling.h"
6
7
#include " llvm/Support/Host.h"
7
8
8
- #include " Language.h"
9
9
#include " DeclMatcher.h"
10
10
11
11
#include " gtest/gtest.h"
You can’t perform that action at this time.
0 commit comments