clang/Modules: Delay err_module_file_conflict if a diagnostic is in flight
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 10 Nov 2019 19:17:42 +0000 (11:17 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 11 Nov 2019 23:34:52 +0000 (15:34 -0800)
commiteef69021607950487a9e4110851a05abb54d0fb6
tree75b7d27d3458d23d4b29db740af7af0c82972149
parent0cf86da1741fb1a4278dc31dfc8f1538c9186892
clang/Modules: Delay err_module_file_conflict if a diagnostic is in flight

As part of an audit of whether all errors are being reported from the
ASTReader, delay err_module_file_conflict if a diagnostic is already in
flight when it is hit.  This required plumbing an extra argument through
the delayed diagnostic mechanics in DiagnosticsEngine.
clang/include/clang/Basic/Diagnostic.h
clang/include/clang/Serialization/ASTReader.h
clang/lib/Basic/Diagnostic.cpp
clang/lib/Serialization/ASTReader.cpp