]> granicus.if.org Git - clang/commit
[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)
commit20e5220f748b7df5df639d53eb5934165c544b2c
tree418629fb54a692e6e6e77401d14c82c20febc16e
parentc0876c1cbb17e5ecfffa8cc74e2f80fc47a94185
[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!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@357394 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTStructuralEquivalence.h
include/clang/Basic/DiagnosticASTKinds.td
include/clang/Basic/DiagnosticGroups.td
lib/AST/ASTStructuralEquivalence.cpp