From 3b72d0f33396ef248387f15009c4bdda98e73cef Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sun, 14 Feb 2016 06:53:20 +0000 Subject: [PATCH] [index] Fix gcc builds. llvm-svn: 260843 --- clang/include/clang/Index/IndexingAction.h | 2 +- clang/tools/c-index-test/core_main.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Index/IndexingAction.h b/clang/include/clang/Index/IndexingAction.h index 3bb427e..e2e63dc 100644 --- a/clang/include/clang/Index/IndexingAction.h +++ b/clang/include/clang/Index/IndexingAction.h @@ -36,7 +36,7 @@ struct IndexingOptions { std::unique_ptr createIndexingAction(std::shared_ptr DataConsumer, IndexingOptions Opts, - std::unique_ptr WrappedAction = nullptr); + std::unique_ptr WrappedAction); void indexASTUnit(ASTUnit &Unit, std::shared_ptr DataConsumer, diff --git a/clang/tools/c-index-test/core_main.cpp b/clang/tools/c-index-test/core_main.cpp index d2faf2d..00fbd0c 100644 --- a/clang/tools/c-index-test/core_main.cpp +++ b/clang/tools/c-index-test/core_main.cpp @@ -119,7 +119,8 @@ static bool printSourceSymbols(ArrayRef Args) { auto DataConsumer = std::make_shared(outs()); IndexingOptions IndexOpts; std::unique_ptr IndexAction; - IndexAction = createIndexingAction(DataConsumer, IndexOpts); + IndexAction = createIndexingAction(DataConsumer, IndexOpts, + /*WrappedAction=*/nullptr); auto PCHContainerOps = std::make_shared(); ASTUnit *Unit = -- 2.7.4