Skip to content

Commit eab9394

Browse files
authored
[clang][DependencyScanning] Fix spelling mistake for DiagnosticsEngineWithDiagOpts (#171535)
1 parent 53cd4ab commit eab9394

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

clang/include/clang/DependencyScanning/DependencyScannerImpl.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ class DependencyScanningAction {
6363
std::unique_ptr<DiagnosticOptions>
6464
createDiagOptions(ArrayRef<std::string> CommandLine);
6565

66-
struct DignosticsEngineWithDiagOpts {
66+
struct DiagnosticsEngineWithDiagOpts {
6767
// We need to bound the lifetime of the DiagOpts used to create the
6868
// DiganosticsEngine with the DiagnosticsEngine itself.
6969
std::unique_ptr<DiagnosticOptions> DiagOpts;
7070
IntrusiveRefCntPtr<DiagnosticsEngine> DiagEngine;
7171

72-
DignosticsEngineWithDiagOpts(ArrayRef<std::string> CommandLine,
73-
IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS,
74-
DiagnosticConsumer &DC);
72+
DiagnosticsEngineWithDiagOpts(ArrayRef<std::string> CommandLine,
73+
IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS,
74+
DiagnosticConsumer &DC);
7575
};
7676

7777
struct TextDiagnosticsPrinterWithOutput {
@@ -151,7 +151,7 @@ class CompilerInstanceWithContext {
151151
// DiagConsumer may points to DiagPrinterWithOS->DiagPrinter, or a custom
152152
// DiagnosticConsumer passed in from initialize.
153153
DiagnosticConsumer *DiagConsumer = nullptr;
154-
std::unique_ptr<DignosticsEngineWithDiagOpts> DiagEngineWithCmdAndOpts;
154+
std::unique_ptr<DiagnosticsEngineWithDiagOpts> DiagEngineWithCmdAndOpts;
155155

156156
// Context - compiler invocation
157157
// Compilation's command's arguments may be owned by Alloc when expanded from

clang/lib/DependencyScanning/DependencyScannerImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ dependencies::createDiagOptions(ArrayRef<std::string> CommandLine) {
367367
return DiagOpts;
368368
}
369369

370-
DignosticsEngineWithDiagOpts::DignosticsEngineWithDiagOpts(
370+
DiagnosticsEngineWithDiagOpts::DiagnosticsEngineWithDiagOpts(
371371
ArrayRef<std::string> CommandLine,
372372
IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS, DiagnosticConsumer &DC) {
373373
std::vector<const char *> CCommandLine(CommandLine.size(), nullptr);
@@ -725,7 +725,7 @@ bool CompilerInstanceWithContext::initialize(DiagnosticConsumer *DC) {
725725
std::tie(OverlayFS, CommandLine) = initVFSForByNameScanning(
726726
Worker.DepFS, CommandLine, CWD, "ScanningByName");
727727

728-
DiagEngineWithCmdAndOpts = std::make_unique<DignosticsEngineWithDiagOpts>(
728+
DiagEngineWithCmdAndOpts = std::make_unique<DiagnosticsEngineWithDiagOpts>(
729729
CommandLine, OverlayFS, *DiagConsumer);
730730

731731
std::tie(Driver, Compilation) = buildCompilation(

clang/lib/DependencyScanning/DependencyScanningWorker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ bool DependencyScanningWorker::scanDependencies(
100100
FS = std::move(OverlayFS);
101101
}
102102

103-
DignosticsEngineWithDiagOpts DiagEngineWithCmdAndOpts(CommandLine, FS, DC);
103+
DiagnosticsEngineWithDiagOpts DiagEngineWithCmdAndOpts(CommandLine, FS, DC);
104104
DependencyScanningAction Action(Service, WorkingDirectory, Consumer,
105105
Controller, DepFS);
106106

0 commit comments

Comments
 (0)