diff options
author | Yitzhak Mandelbaum <yitzhakm@google.com> | 2019-05-20 14:44:40 +0000 |
---|---|---|
committer | Yitzhak Mandelbaum <yitzhakm@google.com> | 2019-05-20 14:44:40 +0000 |
commit | 0fa0ee19cf8841313df93a9948a3568cd93eeca2 (patch) | |
tree | fa7e59c5b6a7deed9c7a80fbc9aadc1943b5c90d /unittests/Tooling/RangeSelectorTest.cpp | |
parent | 656c6841800d286b6c4517d9c1f8308e808a4728 (diff) | |
download | clang-0fa0ee19cf8841313df93a9948a3568cd93eeca2.tar.gz |
[LibTooling] Fix build break in test after r361152.
r361152 broke gcc builds.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Tooling/RangeSelectorTest.cpp')
-rw-r--r-- | unittests/Tooling/RangeSelectorTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/Tooling/RangeSelectorTest.cpp b/unittests/Tooling/RangeSelectorTest.cpp index cb0436506e..683ac5fba0 100644 --- a/unittests/Tooling/RangeSelectorTest.cpp +++ b/unittests/Tooling/RangeSelectorTest.cpp @@ -8,6 +8,7 @@ #include "clang/Tooling/Refactoring/RangeSelector.h" #include "clang/ASTMatchers/ASTMatchers.h" +#include "clang/Frontend/ASTUnit.h" #include "clang/Tooling/FixIt.h" #include "clang/Tooling/Tooling.h" #include "llvm/Support/Error.h" @@ -31,7 +32,7 @@ using ::llvm::StringError; struct TestMatch { // The AST unit from which `result` is built. We bundle it because it backs // the result. Users are not expected to access it. - std::unique_ptr<ASTUnit> ASTUnit; + std::unique_ptr<clang::ASTUnit> ASTUnit; // The result to use in the test. References `ast_unit`. MatchResult Result; }; |