Skip to content

Commit 1796a6e

Browse files
[𝘀𝗽𝗿] initial version
Created using spr 1.3.5
1 parent c1c50c7 commit 1796a6e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

clang/include/clang/Frontend/FrontendActions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

clang/lib/Frontend/FrontendActions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

8686
std::unique_ptr<ASTConsumer>
87-
ReadPCHAndPreprocessAction::CreateASTConsumer(CompilerInstance &CI,
87+
DependencyScanningFrontendAction::CreateASTConsumer(CompilerInstance &CI,
8888
StringRef InFile) {
8989
return std::make_unique<ASTConsumer>();
9090
}

clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)