[clang-tidy] Initialize DiagnosticEngine in ExpandModularHeaders
authorPiotr Zegar <me@piotrzegar.pl>
Mon, 24 Jul 2023 19:43:47 +0000 (19:43 +0000)
committerPiotr Zegar <me@piotrzegar.pl>
Mon, 24 Jul 2023 19:43:47 +0000 (19:43 +0000)
commit992fa7be3438bce61cfba7c0e0b07d9d1ddcc05b
tree9d0d333bb0f51606ce4a70e1936d280edcb2e408
parent2f0630f8bc91e81fd5948e82164cf82ae595caf2
[clang-tidy] Initialize DiagnosticEngine in ExpandModularHeaders

Fix issue preventing suppression of compiler warnings with
-Wno-<warning> under C++20 and above. Add call to
ProcessWarningOptions and propagate DiagnosticOpts more properly.

Fixes: #56709, #61969

Reviewed By: carlosgalvezp

Differential Revision: https://reviews.llvm.org/D156056
clang-tools-extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/infrastructure/diagnostic.cpp