hanchenye-llvm-project/clang/test/SemaObjC
Nico Weber ff4b35e6e7 Objective-C: Serialize "more than one decl" state of ObjCMethodList.
This fixes PR21587, what r221933 fixed for regular programs is now also
fixed for decls coming from PCH files.

Use another bit from the count/bits uint16_t for storing the "more than one
decl" bit.  This reduces the number of bits for the count from 14 to 13.
The selector with the most overloads in Cocoa.h has ~55 overloads, so 13 bits
should still be plenty.  Since this changes the meaning of a serialized bit
pattern, also increase clang::serialization::VERSION_MAJOR.

Storing the "more than one decl" state of only the first overload isn't quite
correct, but Sema::AreMultipleMethodsInGlobalPool() currently only looks at
the state of the first overload so it's good enough for now.

llvm-svn: 224892
2014-12-27 22:14:15 +00:00
..
Inputs
ClassPropertyNotObject.m
ContClassPropertyLookup.m
DoubleMethod.m
NSString-type.m
access-property-getter.m [Objective-C]. Modern property getters have side-effects. 2014-12-18 00:30:54 +00:00
alias-test-1.m
alias-test-2.m
arc-bridged-cast.m Revert r194663 and r194647. 2013-11-14 04:44:56 +00:00
arc-cf.m
arc-decls.m ObjectiveC. 1) Warn when @dynamic (as well as synthesize) 2014-01-10 00:53:48 +00:00
arc-dict-bridged-cast.m
arc-invalid.m Objective-C. Fixes an obscuer crash caused by multiple inclusion of 2014-05-27 18:26:09 +00:00
arc-jump-block.m Reword switch/goto diagnostics "protected scope" diagnostics. Making up a term 2014-09-06 00:24:58 +00:00
arc-no-runtime.m
arc-non-pod-memaccess.m
arc-nsconsumed-errors.m
arc-objc-lifetime.m
arc-objcbridge-related-attribute.m ObjectiveC. Further improvements of use 2013-12-16 22:54:37 +00:00
arc-peformselector.m
arc-property-decl-attrs.m
arc-property-lifetime.m Fix a tranche of comment, test and doc typos 2013-12-05 16:25:25 +00:00
arc-property.m
arc-readonly-property-ivar-1.m
arc-readonly-property-ivar.m
arc-repeated-weak.mm Objective-C ARC. Fixes a crash when checking for 'weak' propery 2014-11-21 21:12:11 +00:00
arc-setter-property-match.m
arc-system-header.m
arc-type-conversion.m Objective-C. Revert my patch in r211234. 2014-06-18 23:22:38 +00:00
arc-unavailable-for-weakref.m Making some attribute diagnostics more consistent. Removes a newly-unused diagnostic. 2013-11-24 20:36:50 +00:00
arc-unavailable-system-function.m Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
arc-unbridged-cast.m
arc-unsafe-assigns.m
arc-unsafe_unretained.m
arc.m Objective-C. revert patch for rdar://17554063. 2014-10-28 18:28:16 +00:00
argument-checking.m
assign-rvalue-message.m
at-defs.m
atomoic-property-synnthesis-rules.m
attr-availability-1.m Patch for small addition to availability attribute. 2014-11-05 23:58:55 +00:00
attr-availability.m Objective-C. Recover from missing interface decl. 2014-08-21 17:06:57 +00:00
attr-cleanup.m
attr-deprecated-pch.m Objective-C: Serialize "more than one decl" state of ObjCMethodList. 2014-12-27 22:14:15 +00:00
attr-deprecated.m Objective-C: Tweak unavailability warning. 2014-12-27 07:09:37 +00:00
attr-designated-init.m Rename "secondary initializer" -> "convenience initializer" in the warnings, which is a more correct and consistent term. 2014-05-06 23:24:16 +00:00
attr-malloc.m
attr-objc-exception.m
attr-objc-gc.m
attr-print.m
attr-root-class.m
autoreleasepool.m Reword switch/goto diagnostics "protected scope" diagnostics. Making up a term 2014-09-06 00:24:58 +00:00
bad-property-synthesis-crash.m Do not use typo correction that is unaccessible. 2013-10-14 14:05:48 +00:00
bad-receiver-1.m
block-as-object.m
block-attr.m
block-explicit-return-type.m
block-id-as-block-argtype.m
block-ivar.m
block-on-method-param.m
block-return.m
block-type-safety.m Objective-C. Consider block pointer as NSObject as well as conforming to 2014-06-09 21:42:01 +00:00
blocks.m
boxing-illegal.m
builtin_objc_assign_ivar.m
builtin_objc_lib_functions.m Consolidate header inclusion diagnostics 2014-07-11 20:53:51 +00:00
builtin_objc_msgSend.m
builtin_objc_nslog.m Consolidate header inclusion diagnostics 2014-07-11 20:53:51 +00:00
call-super-2.m
catch-stmt.m
category-1.m Objective-C. Diagose use of undefined protocols 2014-03-11 17:10:51 +00:00
category-method-lookup-2.m
category-method-lookup.m
check-dup-decl-methods-1.m
check-dup-objc-decls-1.m
check-objcbridge-related-attribute-lookup.m Objective-C: Improve on various diagnostics related to 2013-12-09 22:04:26 +00:00
class-bitfield.m
class-conforming-protocol-1.m
class-conforming-protocol-2.m
class-def-test-1.m Objective-C. Diagose use of undefined protocols 2014-03-11 17:10:51 +00:00
class-extension-after-implementation.m
class-extension-dup-methods.m Objective-C. Do not warn when an instance method and 2014-03-17 17:46:10 +00:00
class-getter-using-dotsyntax.m
class-impl-1.m
class-message-protocol-lookup.m
class-method-lookup.m
class-method-self.m
class-property-access.m Objective-C. Patch to warn if the result of calling a property getter 2014-07-18 22:59:10 +00:00
class-proto-1.m Objective-C. Diagose use of undefined protocols 2014-03-11 17:10:51 +00:00
class-protocol-method-match.m
class-protocol.m
class-unavail-warning.m Objective-C. Try to fix the test in buildbot in my last patch. 2014-06-18 18:16:37 +00:00
cocoa-api-usage.m Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
cocoa-api-usage.m.fixed Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
compare-qualified-class.m Objective-C [Sema]. Fixes a bug in comparing qualified 2014-10-13 21:07:45 +00:00
compare-qualified-id.m Change 'method X in protocol not implemented' warning to include the name of the protocol. 2013-12-13 05:58:51 +00:00
compatible-protocol-qualified-types.m
compound-init.m
comptypes-1.m
comptypes-2.m
comptypes-3.m
comptypes-4.m
comptypes-5.m
comptypes-6.m
comptypes-7.m
comptypes-8.m
comptypes-9.m
comptypes-10.m
comptypes-a.m
comptypes-legal.m Objective-C qoi. When Objective-C pointer mismatches with 2014-06-19 23:05:46 +00:00
conditional-expr-2.m
conditional-expr-3.m
conditional-expr-4.m
conditional-expr-5.m
conditional-expr-6.m
conditional-expr-7.m
conditional-expr-8.m
conditional-expr.m Objective-C [Sema]. Fixes a bug in comparing qualified 2014-10-13 21:07:45 +00:00
conflict-atomic-property.m
conflict-nonfragile-abi2.m
conflicting-ivar-test-1.m
continuation-class-err.m
continuation-class-property.m ObjectiveC. When introducing a new property declaration in 2014-01-27 19:14:49 +00:00
conversion.m GetExprRange() (used by -Wconversion checking) should look through OpaqueValueExprs. 2013-10-14 18:55:27 +00:00
crash-label.m
crash-on-objc-bool-literal.m
custom-atomic-property.m
dealloc.m Objective-C. Fixes a bug where "new" family attribute 2014-01-28 22:46:29 +00:00
debugger-cast-result-to-id.m
debugger-support.m Don't manually insert L prefixes. 2014-11-06 13:30:38 +00:00
default-synthesize-1.m Objective-C [qoi]. When reporting that a property is not 2014-10-10 22:08:23 +00:00
default-synthesize-2.m
default-synthesize-3.m Objective-C [qoi]. When reporting that a property is not 2014-10-10 22:08:23 +00:00
default-synthesize.m Objective-C [qoi]. If property is going to be implemented 2014-08-29 20:29:31 +00:00
delay-parsing-cfunctions.m
deprecate_function_containers.m Objective-C. Diagnose use of properties in functions nested in, 2014-05-28 18:12:10 +00:00
deprecated-objc-introspection.m
deref-interface.m
direct-synthesized-ivar-access.m
dist-object-modifiers.m
duplicate-ivar-check.m
duplicate-ivar-in-class-extension.m
duplicate-property-class-extension.m
duplicate-property.m
encode-typeof-test.m Objective-C. Warn when @encode'ing provides an incomplete 2014-08-22 23:17:52 +00:00
enhanced-proto-2.m
enum-fixed-type.m
err-ivar-access-in-class-method.m
error-implicit-property.m
error-missing-getter.m Continue parsing an expression list even after an error is encountered. 2014-07-14 22:48:10 +00:00
error-outof-scope-property-use.m Do not use typo correction that is unaccessible. 2013-10-14 14:05:48 +00:00
error-property-gc-attr.m
exprs.m
foreach.m
format-arg-attribute.m Objective-C. Revert patch r193003 for further 2014-02-07 19:25:10 +00:00
format-cstrings-warning.m Objective-C. Under a special flag, -Wcstring-format-directive, 2014-09-11 19:13:23 +00:00
format-strings-objc.m Recommit r222044 with a test fix - it does not make sense to hunt 2014-11-14 22:09:15 +00:00
format-strings-system.h
forward-class-1.m
forward-class-receiver.m
forward-class-redeclare.m
forward-protocol-incomplete-impl-warn.m Fix test containing backslash and newline separated by space 2013-12-14 23:32:27 +00:00
gc-attributes.m
gcc-cast-ext.m
generic-selection.m
getter-setter-defined-in-category-of-parent.m
ibaction.m Enables support for custom subject lists for attributes. As a testbed, uses the custom subject for the ibaction attribute. 2013-11-29 14:57:58 +00:00
iboutlet.m Predefine IB_DESIGNABLE and IBInspectable macros. <rdar://problem/17441860> 2014-08-08 23:46:25 +00:00
iboutletcollection-attr.m Factor out custom parsing for iboutletcollection and vec_type_hint attributes 2013-10-31 01:56:18 +00:00
id.m
id_builtin.m
idiomatic-parentheses.m
ignore-qualifier-on-qualified-id.m
ignore-weakimport-method.m
illegal-nonarc-bridged-cast.m
incompatible-protocol-qualified-types.m
incomplete-implementation.m ObjectiveC: Don't warn when method implemented in 2013-12-05 20:52:31 +00:00
inst-method-lookup-in-root.m
instancetype.m
interface-1.m
interface-layout-2.m
interface-layout.m
interface-scope-2.m
interface-scope.m
interface-tu-variable.m
invalid-code.m
invalid-objc-decls-1.m
invalid-receiver.m
invalid-typename.m
ivar-access-package.m
ivar-access-tests.m
ivar-in-class-extension-error.m
ivar-in-class-extension.m
ivar-in-implementations.m
ivar-lookup-resolution-builtin.m Consolidate header inclusion diagnostics 2014-07-11 20:53:51 +00:00
ivar-lookup.m revert patch r216469. 2014-08-26 21:10:47 +00:00
ivar-ref-misuse.m
ivar-sem-check-1.m
ivar-sem-check-2.m
legacy-implementation-1.m
message.m
method-arg-qualifier-warning.m
method-attributes.m Implement the 'optnone' attribute, which suppresses most optimizations 2014-03-31 22:29:15 +00:00
method-bad-param.m
method-conflict-1.m
method-conflict-2.m
method-conflict.m
method-def-1.m
method-def-2.m
method-encoding-2.m
method-in-class-extension-impl.m
method-lookup-2.m
method-lookup-3.m Objective-C. Provide group name for warning 2014-12-18 19:41:11 +00:00
method-lookup-4.m
method-lookup-5.m
method-lookup.m
method-no-context.m
method-not-defined.m
method-prototype-scope.m
method-sentinel-attr.m Updated the wording of two attribute-related diagnostics so that they print the offending attribute name. Also updates the associated test cases. 2014-01-02 21:26:14 +00:00
method-typecheck-1.m
method-typecheck-2.m
method-typecheck-3.m
method-undef-category-warn-1.m Change 'method X in protocol not implemented' warning to include the name of the protocol. 2013-12-13 05:58:51 +00:00
method-undef-extension-warn-1.m Change 'method X in protocol not implemented' warning to include the name of the protocol. 2013-12-13 05:58:51 +00:00
method-undefined-warn-1.m
method-unused-attribute.m
method-warn-unused-attribute.m
mismatched-undefined-method.m
missing-atend-metadata.m
missing-method-context.m
missing-method-return-type.m
narrow-property-type-in-cont-class.m
nested-typedef-decl.m
newproperty-class-method-1.m
no-gc-weak-test.m
no-ivar-access-control.m
no-ivar-in-interface-block.m
no-objc-exceptions.m
no-protocol-option-tests.m
no-warn-qual-mismatch.m
no-warn-synth-protocol-meth.m
no-warn-unimpl-method.m
no-warning-unavail-unimp.m
nonarc-weak.m
nonnull.h
nonnull.m Fix representation of __attribute__((nonnull)) to support correctly modeling 2014-08-27 04:59:42 +00:00
nowarn-superclass-method-mismatch.m
ns_returns_retained_block_return.m More tests for // rdar://17259812 2014-06-12 16:55:43 +00:00
nsobject-attribute-1.m
nsobject-attribute.m Reworded the NSObject attribute diagnostics to be more consistent with other attribute diagnostics. Also updated the associated test case. 2014-01-02 22:45:33 +00:00
objc-array-literal.m ObjectiveC. Define a new cc1 flag 2013-11-01 21:58:17 +00:00
objc-asm-attribute-neg-test.m Objective-C. Changes per A. Ballman's comment 2014-07-16 19:44:34 +00:00
objc-buffered-methods.m
objc-cf-audited-warning.m Objective-C arc. Fixes a crash when issuing diagnostic for 2014-09-10 18:23:34 +00:00
objc-container-subscripting-1.m
objc-container-subscripting-2.m
objc-container-subscripting-3.m
objc-container-subscripting-attr.m Objective-C. Don't ignore availability attribute when 2014-06-10 19:02:48 +00:00
objc-container-subscripting.m
objc-cstyle-args-in-methods.m
objc-dictionary-literal.m More test for "void *" argument as index of a dictionary literal. 2014-09-10 22:12:13 +00:00
objc-literal-comparison.m Objective-C. revert patch for rdar://17554063. 2014-10-28 18:28:16 +00:00
objc-literal-nsnumber.m Objective-C. Check for integer overflow in Objective-C's 2014-06-18 20:49:02 +00:00
objc-literal-sig.m
objc-mixed-bridge-attribute.m Objective-C. More tests for both bridging attributes and 2014-06-11 19:10:46 +00:00
objc-qualified-property-lookup.m
objc-string-constant.m
objc2-merge-gc-attribue-decl.m
objc2-warn-weak-decl.m
objcbridge-attribute-arc.m [Objective-C]. This patch extends objc_bridge attribute to support objc_bridge(id). 2014-12-11 22:56:26 +00:00
objcbridge-attribute.m Objective-C. Improve diagnosis of bridging types. 2014-04-29 16:12:56 +00:00
objcbridge-related-attribute.m ObjectiveC. Further improvements of use 2013-12-16 22:54:37 +00:00
objcbridgemutable-attribute.m ObjectiveC migrator. Improve on definition, use 2013-11-22 00:02:22 +00:00
opaque-is-access-warn.m ARM64: initial clang support commit. 2014-03-29 15:09:45 +00:00
opaque-is-access.m ARM64: initial clang support commit. 2014-03-29 15:09:45 +00:00
overriding-property-in-class-extension.m Objective-C. Do not issue warning when 'readonly' 2013-12-13 18:19:59 +00:00
pedantic-dynamic-test.m
pragma-pack.m
property-2.m
property-3.m
property-4.m
property-5.m
property-6.m
property-7.m
property-8.m
property-9-impl-method.m
property-9.m
property-10.m Objective-C. Remove obsolete option from test. 2013-12-13 19:06:55 +00:00
property-11.m
property-12.m Objective-C. Do not issue warning when 'readonly' 2013-12-13 18:19:59 +00:00
property-13.m
property-ambiguous-synthesis.m
property-and-class-extension.m
property-and-ivar-use.m
property-category-1.m
property-category-2.m
property-category-3.m
property-category-4.m
property-category-impl.m
property-choose-expr.m
property-deprecated-warning.m Objective-C. Diagnose when property access is using declared 2014-06-16 17:25:41 +00:00
property-dot-receiver.m
property-error-readonly-assign.m
property-expression-error.m
property-impl-misuse.m
property-in-class-extension-1.m Objective-C. Do not issue warning when 'readonly' 2013-12-13 18:19:59 +00:00
property-in-class-extension.m
property-inherited.m [Objective-C Sema]. Warn when an indirectly overridden property 2014-02-15 00:04:36 +00:00
property-ivar-mismatch.m
property-lookup-in-id.m
property-method-lookup-impl.m
property-missing.m
property-nonfragile-abi.m
property-noninherited-availability-attr.m Objective-C. Patch to warn if the result of calling a property getter 2014-07-18 22:59:10 +00:00
property-noprotocol-warning.m
property-not-lvalue.m
property-ns-returns-not-retained-attr.m
property-ownership-attr.m
property-redundant-decl-accessor.m
property-typecheck-1.m Fix a tranche of comment, test and doc typos 2013-12-05 16:25:25 +00:00
property-user-setter.m Objective-C. Do not warn if user is using property-dox syntax to name a 2014-08-15 17:39:00 +00:00
property-weak.m
property.m
props-on-prots.m
protocol-archane.m
protocol-attribute.m Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
protocol-expr-1.m Objective-C. Warn if protocol used in an @protocol 2014-07-25 19:45:01 +00:00
protocol-expr-neg-1.m Objective-C. Warn if protocol used in an @protocol 2014-07-25 19:45:01 +00:00
protocol-id-test-1.m
protocol-id-test-2.m
protocol-id-test-3.m
protocol-implementation-inherited.m
protocol-implementing-class-methods.m
protocol-lookup-2.m
protocol-lookup.m
protocol-qualified-class-unsupported.m
protocol-typecheck.m
protocol-warn.m
protocols-suppress-conformance.m Objective-C [qoi]. When reporting that a property is not 2014-10-10 22:08:23 +00:00
protocols.m
provisional-ivar-lookup.m
qualified-protocol-method-conflicts.m
rdar6248119.m
rdr-6211479-array-property.m
receiver-forward-class.m
related-result-type-inference.m
resolve-method-in-global-pool.m Objective-C. When multiple nullary selectors are found in 2014-08-27 16:38:47 +00:00
restrict-id-type.m
return.m
scope-check.m Reword switch/goto diagnostics "protected scope" diagnostics. Making up a term 2014-09-06 00:24:58 +00:00
selector-1.m Objective-C. When we use @selector(save:), etc. there may be more 2014-06-24 17:02:19 +00:00
selector-2.m
selector-3.m Objective-C. Reduce false positive warnings with -Wselector by issuing warning 2014-05-09 19:51:39 +00:00
selector-4.m Objective-C. Reduce false positive warnings with -Wselector by issuing warning 2014-05-09 19:51:39 +00:00
selector-error.m
selector-overload.m Fix three tests that weren't checking anything 2013-12-08 22:22:31 +00:00
self-assign.m
self-comparison.m
self-declared-in-block.m
self-in-function.m
setter-dotsyntax.m
severe-syntax-error.m
sign-conversion.m
sizeof-interface.m
special-dep-unavail-warning.m Wordsmith "maybe" into "may be" in diagnostic, and move warning under flag. 2013-12-19 22:47:11 +00:00
stand-alone-implementation.m
static-ivar-ref-1.m
stmts.m
string.m
super-cat-prot.m
super-class-protocol-conformance.m
super-dealloc-attribute.m ObjectiveC. Method implementations should only check for 2013-11-05 00:28:21 +00:00
super-property-message-expr.m
super-property-notation.m Objective-C [qoi]. When reporting that a property is not 2014-10-10 22:08:23 +00:00
super.m
synchronized.m
synth-provisional-ivars-1.m
synth-provisional-ivars.m
synthesize-setter-contclass.m
synthesized-ivar.m
tentative-property-decl.m Objective-C. Do not issue warning when 'readonly' 2013-12-13 18:19:59 +00:00
transparent-union.m
try-catch.m
typedef-class.m
typo-correction.m
ucn-objc-string.m
undeclared-selector.m
undef-class-messagin-error.m
undef-protocol-methods-1.m Change 'method X in protocol not implemented' warning to include the name of the protocol. 2013-12-13 05:58:51 +00:00
undef-superclass-1.m
undefined-protocol-type-1.m
unimplemented-protocol-prop.m
uninit-variables.m
unknown-anytype.m
unqualified-to-qualified-class-warn.m
unused-backing-ivar-warning.m Another test for patch for // rdar://15890251 2014-01-27 22:44:17 +00:00
unused.m Objective-C. Patch to warn if the result of calling a property getter 2014-07-18 22:59:10 +00:00
va-method-1.m
warn-assign-property-nscopying.m
warn-cast-of-sel-expr.m
warn-category-method-deprecated.m Objective-C. Change to method lookup rules to look 2014-08-27 20:34:29 +00:00
warn-deprecated-implementations.m Objective-C. No need to issue deprecated warning if deprecated method 2014-03-18 00:10:37 +00:00
warn-direct-ivar-access.m
warn-explicit-call-initialize.m Objective-C. Allow [super initialize] in an +initialize 2014-08-25 21:27:38 +00:00
warn-forward-class-attr-deprecated.m Wordsmith "maybe" into "may be" in diagnostic, and move warning under flag. 2013-12-19 22:47:11 +00:00
warn-implicit-atomic-property.m
warn-implicit-self-in-block.m
warn-incompatible-builtin-types.m
warn-missing-super.m
warn-protocol-method-deprecated.m Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
warn-retain-block-property.m
warn-retain-cycle.m Objective-C ARC. Blocks that strongly capture themselves 2014-06-12 20:57:14 +00:00
warn-selector-selection.m
warn-strict-selector-match.m Objective-C. This patch is to resolve the method used in method 2014-08-13 21:07:35 +00:00
warn-superclass-method-mismatch.m
warn-thread-safety-analysis.m ThreadSafetyAnalysis: Don't crash when trying to analyze objc methods. 2014-05-09 17:08:01 +00:00
warn-unreachable.m [-Wunreachable-code] Expand paren-suppression heuristic to C++/ObjC bools. 2014-03-29 04:49:20 +00:00
warn-unused-exception-param.m
warn-weak-field.m
warn-write-strings.m
warning-missing-selector-name.m
weak-attr-ivar.m
weak-property.m
weak-receiver-warn.m
writable-property-in-superclass.m