diff options
| author | Richard Smith <richard@metafoo.co.uk> | 2020-02-05 18:52:38 -0800 |
|---|---|---|
| committer | Richard Smith <richard@metafoo.co.uk> | 2020-02-07 11:47:37 -0800 |
| commit | 7ae1b4a0ce9c7f269cf3069e41496a78e3f28d49 (patch) | |
| tree | 62476fa16fb80a6630c2ef6ad00a1a1bd2937a2a /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 884acbb9e167d5668e43581630239d688edec8ad (diff) | |
Implement P1766R1: diagnose giving non-C-compatible classes a typedef name for linkage purposes.
Summary:
Due to a recent (but retroactive) C++ rule change, only sufficiently
C-compatible classes are permitted to be given a typedef name for
linkage purposes. Add an enabled-by-default warning for these cases, and
rephrase our existing error for the case where we encounter the typedef
name for linkage after we've already computed and used a wrong linkage
in terms of the new rule.
Reviewers: rjmccall
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D74103
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
