[ODRHash diagnostics] Move repetetive code at lambda calls into lambdas themselves. NFC.

It helps to avoid copy-paste mistakes and makes custom code paths more
noticeable.

Not funnelling all diagnostic through `ODRDiagDeclError` because plan to
break down `err_module_odr_violation_mismatch_decl_diff` into smaller
pieces instead of making it bigger and bigger.

Differential Revision: https://reviews.llvm.org/D128487
This commit is contained in:
Volodymyr Sapsai 2022-06-22 18:08:05 -07:00
parent 3d2629dd3a
commit 017c068f78
1 changed files with 264 additions and 446 deletions

File diff suppressed because it is too large Load Diff