[clang-tools-extra] r207230 - Blindly try to fix the clang-tools-extra build since my local build doesn't appear to be picking it up
David Blaikie
dblaikie at gmail.com
Fri Apr 25 08:06:19 PDT 2014
Author: dblaikie
Date: Fri Apr 25 10:06:18 2014
New Revision: 207230
URL: http://llvm.org/viewvc/llvm-project?rev=207230&view=rev
Log:
Blindly try to fix the clang-tools-extra build since my local build doesn't appear to be picking it up
Modified:
clang-tools-extra/trunk/clang-query/QuerySession.h
clang-tools-extra/trunk/clang-query/tool/ClangQuery.cpp
Modified: clang-tools-extra/trunk/clang-query/QuerySession.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-query/QuerySession.h?rev=207230&r1=207229&r2=207230&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-query/QuerySession.h (original)
+++ clang-tools-extra/trunk/clang-query/QuerySession.h Fri Apr 25 10:06:18 2014
@@ -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;
Modified: clang-tools-extra/trunk/clang-query/tool/ClangQuery.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-query/tool/ClangQuery.cpp?rev=207230&r1=207229&r2=207230&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-query/tool/ClangQuery.cpp (original)
+++ clang-tools-extra/trunk/clang-query/tool/ClangQuery.cpp Fri Apr 25 10:06:18 2014
@@ -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;
}
More information about the cfe-commits
mailing list