Home
last modified time | relevance | path

Searched +full:objective +full:- +full:c (Results 1 – 25 of 1026) sorted by relevance

12345678910>>...42

/external/clang/test/SemaObjCXX/
Dobjcbridge-attribute.mm1 // RUN: %clang_cc1 -fsyntax-only -x objective-c++ -fobjc-arc -verify -Wno-objc-root-class %s
4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 5…
6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no…
8 …yColor *CFMyColorRef; // expected-error {{parameter of 'objc_bridge' attribute must be a single n…
10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg…
12 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-
27 typedef struct __attribute__((objc_bridge(NSTesting))) __CFError *CFTestingRef; // expected-note {{…
30 … *)cf; // expected-error {{CF object of type 'CFTestingRef' (aka '__CFError *') is bridged to 'NST…
31 …// expected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C point…
32 … // expected-note {{use __bridge to convert directly (no change in ownership)}} \
[all …]
Dobjcbridge-attribute-arc.mm1 // RUN: %clang_cc1 -fsyntax-only -x objective-c++ -fobjc-arc -verify -Wno-objc-root-class %s
4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 5…
6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no…
8 …yColor *CFMyColorRef; // expected-error {{parameter of 'objc_bridge' attribute must be a single n…
10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg…
12 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-
27 typedef struct __attribute__((objc_bridge(NSTesting))) __CFError *CFTestingRef; // expected-note {{…
30 … *)cf; // expected-error {{CF object of type 'CFTestingRef' (aka '__CFError *') is bridged to 'NST…
31 …// expected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C point…
32 … // expected-note {{use __bridge to convert directly (no change in ownership)}} \
[all …]
Dwarn-objc-literal-conversion.mm1 // RUN: %clang_cc1 -fsyntax-only -verify -Wobjc-literal-conversion %s
24 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
29 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
30 if (@-12) {}
31 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
33 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
34 if (@-12LL) {}
35 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
40 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
41 if (@-12.55) {}
[all …]
Dobjc-decls-inside-namespace.mm1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
3 namespace C {
5 @protocol P; //expected-error{{Objective-C declarations may only appear in global scope}}
7 @class Bar; //expected-error{{Objective-C declarations may only appear in global scope}}
9 @compatibility_alias Foo Bar; //expected-error{{Objective-C declarations may only appear in global …
11 @interface A //expected-error{{Objective-C declarations may only appear in global scope}}
14 @implementation A //expected-error{{Objective-C declarations may only appear in global scope}}
17 @protocol P //expected-error{{Objective-C declarations may only appear in global scope}}
20 @interface A(C) //expected-error{{Objective-C declarations may only appear in global scope}}
23 @implementation A(C) //expected-error{{Objective-C declarations may only appear in global scope}}
[all …]
Dobjcbridge-static-cast.mm1 // RUN: %clang_cc1 -fsyntax-only -x objective-c++ -fobjc-arc -verify -Wno-objc-root-class %s
4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 3…
6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no…
8 …yColor *CFMyColorRef; // expected-error {{parameter of 'objc_bridge' attribute must be a single n…
10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg…
12 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-
27 typedef struct __attribute__((objc_bridge(NSTesting))) __CFError *CFTestingRef; // expected-note {{…
30 …>(cf); // expected-error {{CF object of type 'CFTestingRef' (aka '__CFError *') is bridged to 'NST…
31 …// expected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C point…
32 … // expected-note {{use __bridge with C-style cast to convert directly (no change in ownership)}} \
[all …]
/external/clang/test/SemaObjC/
Dobjcbridge-attribute-arc.m1 // RUN: %clang_cc1 -fsyntax-only -x objective-c -fobjc-arc -verify -Wno-objc-root-class %s
4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 5…
6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no…
8 …yColor *CFMyColorRef; // expected-error {{parameter of 'objc_bridge' attribute must be a single n…
10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg…
12 typedef void * __attribute__ ((objc_bridge(NSURL))) CFURLRef; // expected-error {{parameter of 'o…
14 typedef void * CFStringRef __attribute__ ((objc_bridge(NSString))); // expected-error {{parameter o…
16 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-
18 typedef struct __CFData __attribute__((objc_bridge(NSData))) CFDataRef; // expected-error {{paramet…
22 typedef struct __CFSetRef * CFSetRef __attribute__((objc_bridge(NSSet))); // expected-error {{param…
[all …]
Darc-type-conversion.m1 // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -verify -fblocks %s
10 …(void)(int*)arg; // expected-error {{cast of an Objective-C pointer to 'int *' is disallowed with …
12 …(void)(__autoreleasing id*)arg; // expected-error {{cast of an Objective-C pointer to '__autorelea…
13 …(void)(id*)arg; // expected-error {{cast of an Objective-C pointer to '__strong id *' is disallowe…
17 …(void)(void**)arg; // expected-error {{cast of an Objective-C pointer to 'void **' is disallowed w…
18 …cvt((void*)arg); // expected-error {{cast of Objective-C pointer type 'id' to C pointer type 'void…
19 …// expected-error {{implicit conversion of C pointer type 'void *' to Objective-C pointer type 'id…
20 … // expected-note 2 {{use __bridge to convert directly (no change in ownership)}} \
21 … // expected-note {{use CFBridgingRetain call to make an ARC object available as a +1 'void *'}} \
22 … // expected-note {{use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC}}
[all …]
Ddeprecate_function_containers.m1 // RUN: %clang_cc1 -fsyntax-only -fblocks -verify -Wno-objc-root-class %s
5 void p_foo() {} // expected-warning {{function definition inside an Objective-C container is deprec…
9 void foo() {} // expected-warning {{function definition inside an Objective-C container is deprecat…
10 inline void v_foo() {} // expected-warning {{function definition inside an Objective-C container is…
11 static int s_foo() {return 0; } // expected-warning {{function definition inside an Objective-C con…
12 …atic inline int si_val() { return 1; } // expected-warning {{function definition inside an Objecti…
16 void cat_foo() {} // expected-warning {{function definition inside an Objective-C container is depr…
30 @property (strong, readwrite) id moin1; // expected-note {{property declared here}}
32 …_observe_moin1(void (^callback)(id)) { // expected-warning {{function definition inside an Objecti…
34 …llback(prototypeState.moin1); // expected-error {{use of Objective-C property in function nested i…
Ddeprecated-objc-introspection.m1 // RUN: %clang_cc1 -triple=x86_64-apple-darwin -fsyntax-only -verify %s
3 //====------------------------------------------------------------====//
5 //====------------------------------------------------------------====//
17 - (id)performSelector:(SEL)aSelector;;
21 -(id)foo;
29 …[(*x).isa self]; // expected-warning {{direct access to Objective-C's isa is deprecated in favor o…
30 …[x->isa self]; // expected-warning {{direct access to Objective-C's isa is deprecated in favor of …
38 [(*y).isa self]; // expected-error {{instance variable 'isa' is protected}} \
39 …expected-warning{{receiver type 'struct objc_class *' is not 'id' or interface pointer, consider c…
40 [y->isa self]; // expected-error {{instance variable 'isa' is protected}} \
[all …]
Darc-unbridged-cast.m1 // // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fsyntax-only -fobjc-arc -verify %s
11 - (CFStringRef) implicitProperty;
12 - (CFStringRef) newString;
13 - (CFStringRef) makeString;
46 …= (id) unauditedString(); // expected-error {{requires a bridged cast}} expected-note {{use __brid…
47 …tedString() : (void*) 0); // expected-error {{requires a bridged cast}} expected-note {{use __brid…
48 …edString() : kUserConst); // expected-error {{requires a bridged cast}} expected-note {{use __brid…
49 …) 0 : unauditedString()); // expected-error {{requires a bridged cast}} expected-note {{use __brid…
50 …lp" : unauditedString()); // expected-error {{requires a bridged cast}} expected-note {{use __brid…
52 …x = (id) auditedCreateString(); // expected-error {{requires a bridged cast}} expected-note {{use …
[all …]
/external/grpc-grpc/
D.travis.yml3 language: objective-c
7 - CONFIG=opt
8 - TEST=objc
9 - JOBS=1
11 - SCHEME="RxLibraryUnitTests"
12 WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
14 - SCHEME="InteropTestsLocalSSL"
15 WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
17 - SCHEME="InteropTestsLocalCleartext"
18 WORKSPACE="Tests.xcworkspace" TEST_PATH="src/objective-c/tests" BUILD_ONLY="false"
[all …]
/external/clang/test/Index/
Dcomplete-call.cpp97 // RUN: c-index-test -code-completion-at=%s:47:9 %s | FileCheck -check-prefix=CHECK-CC1 %s
98 // CHECK-CC1: OverloadCandidate:{ResultType void}{Text foo_1}{LeftParen (}{RightParen )} (1)
99 // CHECK-CC1: Completion contexts:
100 // CHECK-CC1-NEXT: Any type
101 // CHECK-CC1-NEXT: Any value
102 // CHECK-CC1-NEXT: Enum tag
103 // CHECK-CC1-NEXT: Union tag
104 // CHECK-CC1-NEXT: Struct tag
105 // CHECK-CC1-NEXT: Class name
106 // CHECK-CC1-NEXT: Nested name specifier
[all …]
/external/google-styleguide/
Dobjcguide.md1 # Google Objective-C Style Guide
4 > Objective-C is a dynamic, object-oriented extension of C. It's designed to be
5 > easy to use and read, while enabling sophisticated object-oriented design. It
10 > for Objective-C. Please read it in addition to this guide.
13 > The purpose of this document is to describe the Objective-C (and
14 > Objective-C++) coding guidelines and practices that should be used for iOS and
17 > Open-source projects developed by Google conform to the requirements in this guide.
19 > Note that this guide is not an Objective-C tutorial. We assume that the reader
20 > is familiar with the language. If you are new to Objective-C or need a
22 > Objective-C](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ProgrammingW…
[all …]
/external/clang/docs/
DObjectiveCLiterals.rst2 Objective-C Literals
10 scalar literal expressions; *Collection Literals* provide a short-hand
12 way to use subscripting with Objective-C objects. Users of Apple
14 Compiler 4.0. Users of open-source LLVM.org compiler releases can use
17 These language additions simplify common Objective-C programming
30 ``double``), and boolean values (``BOOL``, C++ ``bool``). Scalar values
33 In Objective-C, any character, numeric or boolean literal prefixed with
35 object initialized with that value. C's type suffixes may be used to
39 --------
43 .. code-block:: objc
[all …]
/external/clang/test/Modules/
Drequire-modular-includes.m1 // RUN: rm -rf %t
5 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
6 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
7 // RUN: -Werror -fsyntax-only -x objective-c -
9 // Including a non-modular header
11 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
12 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
13 // RUN: -I %S/Inputs/require-modular-includes \
14 // RUN: -fsyntax-only -x objective-c - 2>&1 | FileCheck %s
18 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
[all …]
Ddiamond-pch.c1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -emit-module -fmodules-cache-pat…
3 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -emit-module -fmodules-cache-pat…
4 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -emit-module -fmodules-cache-pat…
5 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -emit-module -fmodules-cache-pat…
6 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -emit-pch -fmodules-cache-path=%…
7 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -include
8 // FIXME: When we have a syntax for modules in C, use that.
10 void test_diamond(int i, float f, double d, char c) { in test_diamond() argument
14 bottom(&c); in test_diamond()
[all …]
Dmodular_maps.cpp1 // RUN: rm -rf %t
3-x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=%S/Inputs/modular_maps/module…
4-x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=%S/Inputs/modular_maps/module…
7-x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulea.m…
8-x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulec.m…
11-x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulea-c…
12-x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulec-c…
16 #include "b.h" // expected-error {{private header}}
17 @import C;
18 const int v = a + c + x;
[all …]
/external/clang/test/CodeGenObjC/
Dimage-info.m1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o %t %s
2 // RUN: FileCheck --check-prefix CHECK-FRAGILE < %t %s
4 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s
5 // RUN: FileCheck --check-prefix CHECK-NONFRAGILE < %t %s
7 // CHECK-FRAGILE: !llvm.module.flags = !{{{.*}}}
8 // CHECK-FRAGILE: !{{[0-9]+}} = !{i32 1, !"Objective-C Version", i32 1}
9 // CHECK-FRAGILE-NEXT: !{{[0-9]+}} = !{i32 1, !"Objective-C Image Info Version", i32 0}
10 // CHECK-FRAGILE-NEXT: !{{[0-9]+}} = !{i32 1, !"Objective-C Image Info Section", !"__OBJC, __image_…
11 // CHECK-FRAGILE-NEXT: !{{[0-9]+}} = !{i32 4, !"Objective-C Garbage Collection", i32 0}
13 // CHECK-NONFRAGILE: !llvm.module.flags = !{{{.*}}}
[all …]
/external/clang/include/clang/AST/
DNSAPI.h1 //===--- NSAPI.h - NSFoundation APIs ----------------------------*- C++ -*-===//
8 //===----------------------------------------------------------------------===//
56 /// \brief The Objective-C NSString selectors.
92 /// \brief The Objective-C NSArray selectors.
117 /// \brief The Objective-C NSDictionary selectors.
134 /// \brief The Objective-C NSSet selectors.
189 /// \brief The Objective-C NSNumber selectors used to create NSNumber literals.
210 /// \brief Returns true if \param T is a typedef of "BOOL" in objective-c.
212 /// \brief Returns true if \param T is a typedef of "NSInteger" in objective-c.
214 /// \brief Returns true if \param T is a typedef of "NSUInteger" in objective-c.
[all …]
/external/grpc-grpc/examples/objective-c/helloworld/
DREADME.md1 # gRPC in 3 minutes (Objective-C)
7 …n obtain the latter by following [these setup instructions](https://github.com/grpc/homebrew-grpc).
9 ## Hello Objective-C gRPC!
11 Here's how to build and run the Objective-C implementation of the [Hello World](../../protos/hellow…
19 $ git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
21 $ git submodule update --init
24 Change your current directory to `examples/objective-c/helloworld`
27 $ cd examples/objective-c/helloworld
32 the C++ server in this repository:
53 The code sends a `HLWHelloRequest` containing the string "Objective-C" to a local server. The server
[all …]
/external/clang/test/FixIt/
Dfixit-static-object-decl.m1 // Objective-C recovery
3 // RUN: not %clang_cc1 -fixit -x objective-c %t
4 // RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c %t
6 // Objective-C++ recovery
8 // RUN: not %clang_cc1 -fixit -x objective-c++ %t -std=c++11
9 // RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c++ %t -std=c++11
31 auto l1 = [] () -> NSArray { return 0; };
Dfixit-missing-method-return-type.m1 // Objective-C recovery
3 // RUN: %clang_cc1 -Wmissing-method-return-type -fixit -x objective-c -Wno-objc-root-class %t
4 // RUN: %clang_cc1 -fsyntax-only -pedantic -Wmissing-method-return-type -Werror -x objective-c -Wno
6 // Objective-C++ recovery
8 // RUN: %clang_cc1 -Wmissing-method-return-type -fixit -x objective-c++ -Wno-objc-root-class %t
9 // RUN: %clang_cc1 -fsyntax-only -pedantic -Wmissing-method-return-type -Werror -x objective-c++ -W…
13 - initWithFoo:(id)foo; // expected-warning {{method has no return type specified; defaults to 'id'…
14 - Meth;
15 -Meth1;
19 - initWithFoo:(id)foo { return 0; } // expected-warning {{method has no return type specified; defa…
[all …]
Dfixit-objc-message.m1 // Objective-C recovery
3 // RUN: not %clang_cc1 -pedantic -Wall -fixit -x objective-c %t
4 // RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -x objective-c %t
6 // Objective-C++ recovery
8 // RUN: not %clang_cc1 -pedantic -Wall -fixit -x objective-c++ %t
9 // RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -x objective-c++ %t
12 - (int)method1:(int)x second:(float)y;
14 - (int)getBlah;
30 - (int)method1:(int)x second:(float)y;
34 - (int)method1:(int)x second:(float)y {
/external/clang/test/Analysis/
Dvariadic-method-types.m1 …N: %clang_cc1 -triple x86_64-apple-darwin10 -analyze -analyzer-checker=core,osx.cocoa.VariadicMeth…
3 //===----------------------------------------------------------------------===//
4 // The following code is reduced using delta-debugging from
9 // both svelte and portable to non-Mac platforms.
10 //===----------------------------------------------------------------------===//
19 - (BOOL)isEqual:(id)object;
20 - (oneway void)release;
21 - (id)retain;
22 - (id)autorelease;
25 - (id)copyWithZone:(NSZone *)zone;
[all …]
/external/grpc-grpc/src/objective-c/tests/
DPodfile21 pod '!ProtoCompiler', :path => "#{GRPC_LOCAL_SRC}/src/objective-c"
22 pod '!ProtoCompiler-gRPCPlugin', :path => "#{GRPC_LOCAL_SRC}/src/objective-c"
24 …pod 'BoringSSL-GRPC', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c", :inhibit_warnings => …
27 pod 'gRPC-Core', :path => GRPC_LOCAL_SRC
28 pod 'gRPC-RxLibrary', :path => GRPC_LOCAL_SRC
29 pod 'gRPC-ProtoRPC', :path => GRPC_LOCAL_SRC, :inhibit_warnings => true
33 pod 'gRPC-Core/Cronet-Implementation', :path => GRPC_LOCAL_SRC
34 pod 'CronetFramework', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c"
47 pod '!ProtoCompiler', :path => "#{GRPC_LOCAL_SRC}/src/objective-c"
48 pod '!ProtoCompiler-gRPCPlugin', :path => "#{GRPC_LOCAL_SRC}/src/objective-c"
[all …]

12345678910>>...42