forked from OSchip/llvm-project
Blindly try to fix the clang-tools-extra build since my local build doesn't appear to be picking it up
llvm-svn: 207230
This commit is contained in:
parent
39808ff901
commit
329be894f1
|
@ -24,10 +24,10 @@ namespace query {
|
|||
/// Represents the state for a particular clang-query session.
|
||||
class QuerySession {
|
||||
public:
|
||||
QuerySession(llvm::ArrayRef<ASTUnit *> ASTs)
|
||||
QuerySession(llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs)
|
||||
: ASTs(ASTs), OutKind(OK_Diag), BindRoot(true) {}
|
||||
|
||||
llvm::ArrayRef<ASTUnit *> ASTs;
|
||||
llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs;
|
||||
OutputKind OutKind;
|
||||
bool BindRoot;
|
||||
llvm::StringMap<ast_matchers::dynamic::VariantValue> NamedValues;
|
||||
|
|
|
@ -85,7 +85,7 @@ int main(int argc, const char **argv) {
|
|||
}
|
||||
|
||||
ClangTool Tool(*Compilations, SourcePaths);
|
||||
std::vector<ASTUnit *> ASTs;
|
||||
std::vector<std::unique_ptr<ASTUnit>> ASTs;
|
||||
if (Tool.buildASTs(ASTs) != 0)
|
||||
return 1;
|
||||
|
||||
|
@ -128,7 +128,5 @@ int main(int argc, const char **argv) {
|
|||
}
|
||||
}
|
||||
|
||||
llvm::DeleteContainerPointers(ASTs);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue