aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2021-04-06 10:38:19 +0200
committerJan Svoboda <jan_svoboda@apple.com>2021-04-06 10:40:47 +0200
commit2935737da32dd21bf02e1a3c912a340de660d557 (patch)
treefd2abf5a7e3f0436dad7f395d146af97c9534905 /clang/lib/Frontend/CompilerInstance.cpp
parentb7ef804807855e607da3eba221c1fc59e27f778e (diff)
downloadllvm-2935737da32dd21bf02e1a3c912a340de660d557.zip
llvm-2935737da32dd21bf02e1a3c912a340de660d557.tar.gz
llvm-2935737da32dd21bf02e1a3c912a340de660d557.tar.bz2
[clang][tooling] Create SourceManager for DiagnosticsEngine before command-line parsing
In D84673, we started using `DiagnosticsEngine` during command-line parsing in more contexts. When using `ToolInvocation`, a custom `DiagnosticsConsumer` can be specified and it might expect `SourceManager` to be present on the emitted diagnostics. This patch ensures the `SourceManager` is set up in such scenarios. Test authored by Jordan Rupprecht. Reviewed By: rupprecht Differential Revision: https://reviews.llvm.org/D99414
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions