File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Tooling/DependencyScanning Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ class InitOnlyAction : public FrontendAction {
3232 bool usesPreprocessorOnly () const override { return false ; }
3333};
3434
35- // / Preprocessor-based frontend action that also loads PCH files .
36- class ReadPCHAndPreprocessAction : public FrontendAction {
35+ // / Preprocessor-based frontend action that is used for dependency scanning .
36+ class DependencyScanningFrontendAction : public FrontendAction {
3737 void ExecuteAction () override ;
3838
3939 std::unique_ptr<ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ void InitOnlyAction::ExecuteAction() {
6969}
7070
7171// Basically PreprocessOnlyAction::ExecuteAction.
72- void ReadPCHAndPreprocessAction ::ExecuteAction () {
72+ void DependencyScanningFrontendAction ::ExecuteAction () {
7373 Preprocessor &PP = getCompilerInstance ().getPreprocessor ();
7474
7575 // Ignore unknown pragmas.
@@ -84,7 +84,7 @@ void ReadPCHAndPreprocessAction::ExecuteAction() {
8484}
8585
8686std::unique_ptr<ASTConsumer>
87- ReadPCHAndPreprocessAction ::CreateASTConsumer (CompilerInstance &CI,
87+ DependencyScanningFrontendAction ::CreateASTConsumer (CompilerInstance &CI,
8888 StringRef InFile) {
8989 return std::make_unique<ASTConsumer>();
9090}
Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ class DependencyScanningAction : public tooling::ToolAction {
439439 else if (ModuleName)
440440 Action = std::make_unique<GetDependenciesByModuleNameAction>(*ModuleName);
441441 else
442- Action = std::make_unique<ReadPCHAndPreprocessAction >();
442+ Action = std::make_unique<DependencyScanningFrontendAction >();
443443
444444 if (ScanInstance.getDiagnostics ().hasErrorOccurred ())
445445 return false ;
You can’t perform that action at this time.
0 commit comments