[index] Fix gcc builds.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 14 Feb 2016 06:53:20 +0000 (06:53 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 14 Feb 2016 06:53:20 +0000 (06:53 +0000)
llvm-svn: 260843

clang/include/clang/Index/IndexingAction.h
clang/tools/c-index-test/core_main.cpp

index 3bb427e..e2e63dc 100644 (file)
@@ -36,7 +36,7 @@ struct IndexingOptions {
 std::unique_ptr<FrontendAction>
 createIndexingAction(std::shared_ptr<IndexDataConsumer> DataConsumer,
                      IndexingOptions Opts,
-                     std::unique_ptr<FrontendAction> WrappedAction = nullptr);
+                     std::unique_ptr<FrontendAction> WrappedAction);
 
 void indexASTUnit(ASTUnit &Unit,
                   std::shared_ptr<IndexDataConsumer> DataConsumer,
index d2faf2d..00fbd0c 100644 (file)
@@ -119,7 +119,8 @@ static bool printSourceSymbols(ArrayRef<const char *> Args) {
   auto DataConsumer = std::make_shared<PrintIndexDataConsumer>(outs());
   IndexingOptions IndexOpts;
   std::unique_ptr<FrontendAction> IndexAction;
-  IndexAction = createIndexingAction(DataConsumer, IndexOpts);
+  IndexAction = createIndexingAction(DataConsumer, IndexOpts,
+                                     /*WrappedAction=*/nullptr);
 
   auto PCHContainerOps = std::make_shared<PCHContainerOperations>();
   ASTUnit *Unit =