@@ -26,8 +26,8 @@ class FileEntry;
2626class InitOnlyAction : public FrontendAction {
2727 void ExecuteAction () override ;
2828
29- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
30- StringRef InFile) override ;
29+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
30+ StringRef InFile) override ;
3131
3232public:
3333 // Don't claim to only use the preprocessor, we want to follow the AST path,
@@ -41,38 +41,38 @@ class InitOnlyAction : public FrontendAction {
4141
4242class ASTPrintAction : public ASTFrontendAction {
4343protected:
44- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
45- StringRef InFile) override ;
44+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
45+ StringRef InFile) override ;
4646};
4747
4848class ASTDumpAction : public ASTFrontendAction {
4949protected:
50- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
51- StringRef InFile) override ;
50+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
51+ StringRef InFile) override ;
5252};
5353
5454class ASTDeclListAction : public ASTFrontendAction {
5555protected:
56- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
57- StringRef InFile) override ;
56+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
57+ StringRef InFile) override ;
5858};
5959
6060class ASTViewAction : public ASTFrontendAction {
6161protected:
62- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
63- StringRef InFile) override ;
62+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
63+ StringRef InFile) override ;
6464};
6565
6666class DeclContextPrintAction : public ASTFrontendAction {
6767protected:
68- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
69- StringRef InFile) override ;
68+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
69+ StringRef InFile) override ;
7070};
7171
7272class GeneratePCHAction : public ASTFrontendAction {
7373protected:
74- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
75- StringRef InFile) override ;
74+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
75+ StringRef InFile) override ;
7676
7777 TranslationUnitKind getTranslationUnitKind () override {
7878 return TU_Prefix;
@@ -98,8 +98,8 @@ class GenerateModuleAction : public ASTFrontendAction {
9898 bool IsSystem;
9999
100100protected:
101- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
102- StringRef InFile) override ;
101+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
102+ StringRef InFile) override ;
103103
104104 TranslationUnitKind getTranslationUnitKind () override {
105105 return TU_Module;
@@ -128,8 +128,8 @@ class GenerateModuleAction : public ASTFrontendAction {
128128
129129class SyntaxOnlyAction : public ASTFrontendAction {
130130protected:
131- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
132- StringRef InFile) override ;
131+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
132+ StringRef InFile) override ;
133133
134134public:
135135 bool hasCodeCompletionSupport () const override { return true ; }
@@ -139,8 +139,8 @@ class SyntaxOnlyAction : public ASTFrontendAction {
139139// / basic debugging and discovery.
140140class DumpModuleInfoAction : public ASTFrontendAction {
141141protected:
142- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
143- StringRef InFile) override ;
142+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
143+ StringRef InFile) override ;
144144 void ExecuteAction () override ;
145145
146146public:
@@ -152,8 +152,8 @@ class DumpModuleInfoAction : public ASTFrontendAction {
152152
153153class VerifyPCHAction : public ASTFrontendAction {
154154protected:
155- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
156- StringRef InFile) override ;
155+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
156+ StringRef InFile) override ;
157157
158158 void ExecuteAction () override ;
159159
@@ -177,8 +177,8 @@ class ASTMergeAction : public FrontendAction {
177177 std::vector<std::string> ASTFiles;
178178
179179protected:
180- ASTConsumer * CreateASTConsumer (CompilerInstance &CI,
181- StringRef InFile) override ;
180+ std::unique_ptr< ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
181+ StringRef InFile) override ;
182182
183183 bool BeginSourceFileAction (CompilerInstance &CI,
184184 StringRef Filename) override ;
@@ -200,7 +200,8 @@ class ASTMergeAction : public FrontendAction {
200200class PrintPreambleAction : public FrontendAction {
201201protected:
202202 void ExecuteAction () override ;
203- ASTConsumer *CreateASTConsumer (CompilerInstance &, StringRef) override {
203+ std::unique_ptr<ASTConsumer> CreateASTConsumer (CompilerInstance &,
204+ StringRef) override {
204205 return nullptr ;
205206 }
206207
0 commit comments