]> granicus.if.org Git - clang/commitdiff
[LibTooling] Fix build break in test after r361152.
authorYitzhak Mandelbaum <yitzhakm@google.com>
Mon, 20 May 2019 14:44:40 +0000 (14:44 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Mon, 20 May 2019 14:44:40 +0000 (14:44 +0000)
r361152 broke gcc builds.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361160 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Tooling/RangeSelectorTest.cpp

index cb0436506ef29029dbefcbfcdfc66e7a605117a6..683ac5fba07d3e7c3417d4004d05f6e7170cc621 100644 (file)
@@ -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;
 };