https://github.com/naveen-seth created https://github.com/llvm/llvm-project/pull/171535
None >From 1e86d044f390cadeae2bbbc717ce7e7b2f9d4bd8 Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig <[email protected]> Date: Wed, 10 Dec 2025 00:37:40 +0100 Subject: [PATCH] [clang][DependencyScanning] Fix spellling mistake for DiagnosticsEngineWithDiagOpts --- .../clang/DependencyScanning/DependencyScannerImpl.h | 6 +++--- clang/lib/DependencyScanning/DependencyScannerImpl.cpp | 4 ++-- clang/lib/DependencyScanning/DependencyScanningWorker.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/clang/include/clang/DependencyScanning/DependencyScannerImpl.h b/clang/include/clang/DependencyScanning/DependencyScannerImpl.h index 352a0ad44fb7f..172c3ca371ed7 100644 --- a/clang/include/clang/DependencyScanning/DependencyScannerImpl.h +++ b/clang/include/clang/DependencyScanning/DependencyScannerImpl.h @@ -63,13 +63,13 @@ class DependencyScanningAction { std::unique_ptr<DiagnosticOptions> createDiagOptions(ArrayRef<std::string> CommandLine); -struct DignosticsEngineWithDiagOpts { +struct DiagnosticsEngineWithDiagOpts { // We need to bound the lifetime of the DiagOpts used to create the // DiganosticsEngine with the DiagnosticsEngine itself. std::unique_ptr<DiagnosticOptions> DiagOpts; IntrusiveRefCntPtr<DiagnosticsEngine> DiagEngine; - DignosticsEngineWithDiagOpts(ArrayRef<std::string> CommandLine, + DiagnosticsEngineWithDiagOpts(ArrayRef<std::string> CommandLine, IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS, DiagnosticConsumer &DC); }; @@ -151,7 +151,7 @@ class CompilerInstanceWithContext { // DiagConsumer may points to DiagPrinterWithOS->DiagPrinter, or a custom // DiagnosticConsumer passed in from initialize. DiagnosticConsumer *DiagConsumer = nullptr; - std::unique_ptr<DignosticsEngineWithDiagOpts> DiagEngineWithCmdAndOpts; + std::unique_ptr<DiagnosticsEngineWithDiagOpts> DiagEngineWithCmdAndOpts; // Context - compiler invocation // Compilation's command's arguments may be owned by Alloc when expanded from diff --git a/clang/lib/DependencyScanning/DependencyScannerImpl.cpp b/clang/lib/DependencyScanning/DependencyScannerImpl.cpp index acd05cc50daa8..beec192e3031d 100644 --- a/clang/lib/DependencyScanning/DependencyScannerImpl.cpp +++ b/clang/lib/DependencyScanning/DependencyScannerImpl.cpp @@ -367,7 +367,7 @@ dependencies::createDiagOptions(ArrayRef<std::string> CommandLine) { return DiagOpts; } -DignosticsEngineWithDiagOpts::DignosticsEngineWithDiagOpts( +DiagnosticsEngineWithDiagOpts::DiagnosticsEngineWithDiagOpts( ArrayRef<std::string> CommandLine, IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS, DiagnosticConsumer &DC) { std::vector<const char *> CCommandLine(CommandLine.size(), nullptr); @@ -725,7 +725,7 @@ bool CompilerInstanceWithContext::initialize(DiagnosticConsumer *DC) { std::tie(OverlayFS, CommandLine) = initVFSForByNameScanning( Worker.DepFS, CommandLine, CWD, "ScanningByName"); - DiagEngineWithCmdAndOpts = std::make_unique<DignosticsEngineWithDiagOpts>( + DiagEngineWithCmdAndOpts = std::make_unique<DiagnosticsEngineWithDiagOpts>( CommandLine, OverlayFS, *DiagConsumer); std::tie(Driver, Compilation) = buildCompilation( diff --git a/clang/lib/DependencyScanning/DependencyScanningWorker.cpp b/clang/lib/DependencyScanning/DependencyScanningWorker.cpp index 7b03abd8e3138..5982dcf160083 100644 --- a/clang/lib/DependencyScanning/DependencyScanningWorker.cpp +++ b/clang/lib/DependencyScanning/DependencyScanningWorker.cpp @@ -100,7 +100,7 @@ bool DependencyScanningWorker::scanDependencies( FS = std::move(OverlayFS); } - DignosticsEngineWithDiagOpts DiagEngineWithCmdAndOpts(CommandLine, FS, DC); + DiagnosticsEngineWithDiagOpts DiagEngineWithCmdAndOpts(CommandLine, FS, DC); DependencyScanningAction Action(Service, WorkingDirectory, Consumer, Controller, DepFS); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
