]> granicus.if.org Git - clang/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260843 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 3bb427e36d8961ad413d8ffca13c902aa6451ace..e2e63dc6357d21b27670c47c7497ec9c623f39f7 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 d2faf2d0692d81e917b8a9b8dc469d71e558d148..00fbd0c2dad2c1fd5a3c25d0e8648fe2d746df80 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 =