llvm-project/clang/test/Analysis/inlining
Richard Smith 7ae1b4a0ce 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
2020-02-07 11:47:37 -08:00
..
Inputs/expected-plists [analyzer][NFC][tests] Pre-normalize expected-plists 2019-06-08 13:51:37 +00:00
DynDispatchBifurcate.m
InlineObjCClassMethod.m [analyzer] Move analyzer-eagerly-assume to AnalyzerOptions, enable by default 2018-08-29 20:29:17 +00:00
InlineObjCInstanceMethod.h
InlineObjCInstanceMethod.m
ObjCDynTypePopagation.m
ObjCImproperDynamictallyDetectableCast.m
RetainCountExamples.m
analysis-order.c
assume-super-init-does-not-return-nil.m
containers.cpp [analyzer] Move analyzer-eagerly-assume to AnalyzerOptions, enable by default 2018-08-29 20:29:17 +00:00
dyn-dispatch-bifurcate.cpp [analyzer] Move analyzer-eagerly-assume to AnalyzerOptions, enable by default 2018-08-29 20:29:17 +00:00
eager-reclamation-path-notes.c Reapply r362994 & co "[analyzer][tests] Add normalize_plist to replace diff_plist" 2019-06-11 14:21:32 +00:00
eager-reclamation-path-notes.cpp Implement P1766R1: diagnose giving non-C-compatible classes a typedef name for linkage purposes. 2020-02-07 11:47:37 -08:00
false-positive-suppression.c [analyzer] Move analyzer-eagerly-assume to AnalyzerOptions, enable by default 2018-08-29 20:29:17 +00:00
false-positive-suppression.cpp
false-positive-suppression.m
inline-defensive-checks.c
inline-defensive-checks.cpp
inline-defensive-checks.m
path-notes.c Reapply r362994 & co "[analyzer][tests] Add normalize_plist to replace diff_plist" 2019-06-11 14:21:32 +00:00
path-notes.cpp Reapply r362994 & co "[analyzer][tests] Add normalize_plist to replace diff_plist" 2019-06-11 14:21:32 +00:00
path-notes.m Reapply r362994 & co "[analyzer][tests] Add normalize_plist to replace diff_plist" 2019-06-11 14:21:32 +00:00
placement-new-fp-suppression.cpp [analyzer] Specify the C++ standard in more tests. 2019-10-19 00:08:17 +00:00
retain-count-self-init.m
stl.cpp [analyzer] Move analyzer-eagerly-assume to AnalyzerOptions, enable by default 2018-08-29 20:29:17 +00:00
temp-dtors-path-notes.cpp [analyzer] Add support for pre-C++17 copy elision. 2018-06-28 00:30:18 +00:00
test-always-inline-size-option.c
test_objc_inlining_option.m