From: Yitzhak Mandelbaum Date: Mon, 20 May 2019 14:44:40 +0000 (+0000) Subject: [LibTooling] Fix build break in test after r361152. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fa0ee19cf8841313df93a9948a3568cd93eeca2;p=clang [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 --- 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; + std::unique_ptr ASTUnit; // The result to use in the test. References `ast_unit`. MatchResult Result; };