[PATCH] D55646: [ASTImporter] Make ODR diagnostics warning by default

Endre Fülöp via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 13 01:33:33 PST 2018


gamesh411 created this revision.
Herald added subscribers: cfe-commits, Szelethus, martong, dkrupp.
Herald added a reviewer: a.sidorin.
Herald added a reviewer: shafik.

- Make ODR diagnostics warning by default

After this change all odr-related diagnostics are considered warnings belonging
to Diagnostic Group "OneDefinitionRule". They can be propagated to error level
with '-Werror=odr'.

- Remove unused ErrorOnTagTypeMismatch member


Repository:
  rC Clang

https://reviews.llvm.org/D55646

Files:
  include/clang/AST/ASTStructuralEquivalence.h
  include/clang/Basic/DiagnosticASTKinds.td
  include/clang/Basic/DiagnosticGroups.td
  lib/AST/ASTImporter.cpp
  lib/AST/ASTStructuralEquivalence.cpp
  lib/Sema/SemaType.cpp
  test/ASTMerge/category/test.m
  test/ASTMerge/class-template-partial-spec/test.cpp
  test/ASTMerge/class-template/test.cpp
  test/ASTMerge/enum/test.c
  test/ASTMerge/function/test.c
  test/ASTMerge/interface/test.m
  test/ASTMerge/namespace/test.cpp
  test/ASTMerge/property/test.m
  test/ASTMerge/struct/test.c
  test/ASTMerge/typedef/test.c
  test/ASTMerge/var/test.c
  test/Modules/elaborated-type-specifier-from-hidden-module.m
  test/Modules/redefinition-c-tagtypes.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55646.178017.patch
Type: text/x-patch
Size: 55778 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181213/87ba991d/attachment-0001.bin>


More information about the cfe-commits mailing list