[clang] [clang][Dependency Scanning] Refactor Scanning Compiler Instance Initialization (PR #161300)
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 1 10:17:46 PDT 2025
================
@@ -72,9 +74,77 @@ class DependencyScanningAction {
bool DiagConsumerFinished = false;
};
-// Helper functions
-void sanitizeDiagOpts(DiagnosticOptions &DiagOpts);
+// Helper functions and data types.
+std::unique_ptr<DiagnosticOptions>
+createDiagOptions(const std::vector<std::string> &CommandLine);
----------------
jansvoboda11 wrote:
```suggestion
createDiagOptions(ArrayRef<std::string> CommandLine);
```
https://github.com/llvm/llvm-project/pull/161300
More information about the cfe-commits
mailing list