[ASTImporter] Convert ODR diagnostics inside ASTImporter implementation
authorGabor Marton <martongabesz@gmail.com>
Mon, 1 Apr 2019 15:29:55 +0000 (15:29 +0000)
committerGabor Marton <martongabesz@gmail.com>
Mon, 1 Apr 2019 15:29:55 +0000 (15:29 +0000)
commit410f32ce7c69be70c7c13a52b875abd4a844d5d3
tree99fe87f233f4516352c874e0347d307d005fa116
parent95c585e258f6821619a19e9657d2f75e13405d15
[ASTImporter] Convert ODR diagnostics inside ASTImporter implementation

Summary:
ASTStructuralEquivalence uses a flag to indicate whether ODR diagnostics
should be considered errors or warnings as module Sema is more strict than
ASTMerge. The implementation of ASTImporter should allso follow
along the same lines.

Reviewers: martong, a.sidorin, shafik, a_sidorin

Reviewed By: shafik, a_sidorin

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

Tags: #clang

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

Patch by Endre Fulop!

llvm-svn: 357402
clang/lib/AST/ASTImporter.cpp