diff options
| author | Balazs Benics <balazs.benics@sigmatechnology.se> | 2022-05-20 21:41:25 +0200 |
|---|---|---|
| committer | Balazs Benics <balazs.benics@sigmatechnology.se> | 2022-05-20 21:41:25 +0200 |
| commit | 0606467ea122da5cb23a588e1222a4140445734a (patch) | |
| tree | e15d0a0dc650e9f4b66023ea8f198b90c68d561e /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 20ec4161d7c9e146c844fadf5af2a44afb9e7a60 (diff) | |
[clang-tidy] Introduce the WarnIntoHeaders option to modernize-deprecated-headers
Unfortunately, we must restrict the checker to warn for deprecated headers
only if the header is included directly from a c++ source file.
For header files, we cannot know if the project has a C source file
that also directly/indirectly includes the offending header file
otherwise. Thus, it's better to be on the safe side and suppress those
reports.
One can opt-in the old behavior, emitting diagnostics into header files,
if one explicitly sets the WarnIntoHeaders=true, in which case nothing
will be changed.
Reviewed By: LegalizeAdulthood
Differential Revision: https://reviews.llvm.org/D125769
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
