[ASTImporter] Make ODR error handling configurable
authorGabor Marton <martongabesz@gmail.com>
Mon, 1 Apr 2019 14:46:53 +0000 (14:46 +0000)
committerGabor Marton <martongabesz@gmail.com>
Mon, 1 Apr 2019 14:46:53 +0000 (14:46 +0000)
commit60768cd8967224929345c82ce885b9f21c405663
tree8ce730a1fc763a41083d3c0e2e3f3da200114447
parentda20f5ca74522c5ad7630180e7b99709e453dee5
[ASTImporter] Make ODR error handling configurable

Summary:
ODR errors are not necessarily true errors during the import of ASTs.
ASTMerge and CrossTU should use the warning equivalent of every CTU error,
while Sema should emit errors as before.

Reviewers: martong, a_sidorin, shafik, a.sidorin

Reviewed By: a_sidorin

Subscribers: rnkovacs, dkrupp, Szelethus, jdoerfert, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D58897

Patch by Endre Fulop!

llvm-svn: 357394
clang/include/clang/AST/ASTStructuralEquivalence.h
clang/include/clang/Basic/DiagnosticASTKinds.td
clang/include/clang/Basic/DiagnosticGroups.td
clang/lib/AST/ASTStructuralEquivalence.cpp