diff options
author | Yitzhak Mandelbaum <yitzhakm@google.com> | 2019-10-16 01:06:46 +0000 |
---|---|---|
committer | Yitzhak Mandelbaum <yitzhakm@google.com> | 2019-10-16 01:06:46 +0000 |
commit | 8bb47cd8c30c29d064cefe2b69510160535727ae (patch) | |
tree | 51042b748140569a08a39adf631172fee6c6e861 /clang/unittests/Tooling/StencilTest.cpp | |
parent | a3378063ff6c65a2335a5eca42858b2a968c1094 (diff) | |
download | bcm5719-llvm-8bb47cd8c30c29d064cefe2b69510160535727ae.tar.gz bcm5719-llvm-8bb47cd8c30c29d064cefe2b69510160535727ae.zip |
[libTooling] Put all Transformer declarations in a single namespace.
Summary:
This revision introduces a new namespace, `clang::transformer`, to hold
the declarations for the Transformer library.
Reviewers: gribozavr
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68876
llvm-svn: 374962
Diffstat (limited to 'clang/unittests/Tooling/StencilTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/StencilTest.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/clang/unittests/Tooling/StencilTest.cpp b/clang/unittests/Tooling/StencilTest.cpp index c524441bebb..c62eae79d24 100644 --- a/clang/unittests/Tooling/StencilTest.cpp +++ b/clang/unittests/Tooling/StencilTest.cpp @@ -16,7 +16,7 @@ #include "gtest/gtest.h" using namespace clang; -using namespace tooling; +using namespace transformer; using namespace ast_matchers; namespace { @@ -27,15 +27,6 @@ using ::testing::AllOf; using ::testing::Eq; using ::testing::HasSubstr; using MatchResult = MatchFinder::MatchResult; -using stencil::access; -using stencil::addressOf; -using stencil::cat; -using stencil::deref; -using stencil::dPrint; -using stencil::expression; -using stencil::ifBound; -using stencil::run; -using stencil::text; // Create a valid translation-unit from a statement. static std::string wrapSnippet(StringRef StatementCode) { @@ -64,7 +55,7 @@ struct TestMatch { // `StatementCode` may contain other statements not described by `Matcher`. static llvm::Optional<TestMatch> matchStmt(StringRef StatementCode, StatementMatcher Matcher) { - auto AstUnit = buildASTFromCode(wrapSnippet(StatementCode)); + auto AstUnit = tooling::buildASTFromCode(wrapSnippet(StatementCode)); if (AstUnit == nullptr) { ADD_FAILURE() << "AST construction failed"; return llvm::None; |