HomeSort by relevance Sort by last modified time
    Searched full:nonnull (Results 1 - 25 of 2172) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/SemaObjC/
nonnull.h 2 #define NONNULL_ATTR __attribute__((nonnull))
  /external/clang/test/CodeGen/
nonnull.c 3 // CHECK: define void @foo(i32* nonnull %x)
4 void foo(int * __attribute__((nonnull)) x) {
8 // CHECK: define void @bar(i32* nonnull %x)
9 void bar(int * x) __attribute__((nonnull(1))) {
13 // CHECK: define void @bar2(i32* %x, i32* nonnull %y)
14 void bar2(int * x, int * y) __attribute__((nonnull(2))) {
19 // CHECK: define nonnull i32* @bar3()
24 // CHECK: define i32 @bar4(i32 %n, i32* nonnull %p)
25 int bar4(int n, int *p) __attribute__((nonnull)) {
29 // CHECK: define i32 @bar5(i32 %n, i32* nonnull %p
    [all...]
  /external/clang/test/Analysis/
nonnull.m 4 - (void)takePointer:(void *)ptr __attribute__((nonnull(1)));
5 - (void)takePointerArg:(void *)__attribute__((nonnull)) ptr;
12 [obj takePointer:p]; // expected-warning{{nonnull}}
17 // [[nonnull]] is an inherited attribute.
24 [obj takePointer:p]; // expected-warning{{nonnull}}
30 [obj takePointerArg:p]; // expected-warning{{nonnull}}
73 extern void rdar16153464_check(union rdar16153464_pub_ctx_t outer) __attribute((nonnull(1)));
76 rdar16153464_check(0); // expected-warning{{nonnull}}
80 void multipleAttributes_1(char *p, char *q) __attribute((nonnull(1))) __attribute((nonnull(2)))
    [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
InstructionFactory.java 40 import javax.annotation.Nonnull;
45 Instruction makeInstruction10t(@Nonnull Opcode opcode, int codeOffset);
46 Instruction makeInstruction10x(@Nonnull Opcode opcode);
47 Instruction makeInstruction11n(@Nonnull Opcode opcode, int registerA, int literal);
48 Instruction makeInstruction11x(@Nonnull Opcode opcode, int registerA);
49 Instruction makeInstruction12x(@Nonnull Opcode opcode, int registerA, int registerB);
50 Instruction makeInstruction20bc(@Nonnull Opcode opcode, int verificationError, @Nonnull Ref reference);
51 Instruction makeInstruction20t(@Nonnull Opcode opcode, int codeOffset);
52 Instruction makeInstruction21c(@Nonnull Opcode opcode, int registerA, @Nonnull Ref reference)
    [all...]
ClassSection.java 40 import javax.annotation.Nonnull;
49 @Nonnull Collection<? extends ClassKey> getSortedClasses();
53 @Nonnull TypeKey getType(@Nonnull ClassKey key);
54 int getAccessFlags(@Nonnull ClassKey key);
55 @Nullable TypeKey getSuperclass(@Nonnull ClassKey key);
56 @Nullable TypeListKey getSortedInterfaces(@Nonnull ClassKey key);
57 @Nullable StringKey getSourceFile(@Nonnull ClassKey key);
58 @Nullable Collection<? extends EncodedValue> getStaticInitializers(@Nonnull ClassKey key);
60 @Nonnull Collection<? extends FieldKey> getSortedStaticFields(@Nonnull ClassKey key)
    [all...]
AnnotationSection.java 34 import javax.annotation.Nonnull;
39 int getVisibility(@Nonnull AnnotationKey key);
40 @Nonnull TypeKey getType(@Nonnull AnnotationKey key);
41 @Nonnull Collection<? extends AnnotationElement> getElements(@Nonnull AnnotationKey key);
43 @Nonnull StringKey getElementName(@Nonnull AnnotationElement element);
44 @Nonnull EncodedValue getElementValue(@Nonnull AnnotationElement element)
    [all...]
MethodSection.java 36 import javax.annotation.Nonnull;
40 @Nonnull TypeKey getDefiningClass(@Nonnull MethodRefKey key);
41 @Nonnull ProtoKey getPrototype(@Nonnull MethodRefKey key);
42 @Nonnull ProtoKey getPrototype(@Nonnull MethodKey key);
43 @Nonnull StringKey getName(@Nonnull MethodRefKey key);
44 int getMethodIndex(@Nonnull MethodKey key)
    [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/
RewriterModule.java 41 import javax.annotation.Nonnull;
44 @Nonnull public Rewriter<ClassDef> getClassDefRewriter(@Nonnull Rewriters rewriters) {
48 @Nonnull public Rewriter<Field> getFieldRewriter(@Nonnull Rewriters rewriters) {
52 @Nonnull public Rewriter<Method> getMethodRewriter(@Nonnull Rewriters rewriters) {
56 @Nonnull public Rewriter<MethodParameter> getMethodParameterRewriter(@Nonnull Rewriters rewriters) {
60 @Nonnull public Rewriter<MethodImplementation> getMethodImplementationRewriter(@Nonnull Rewriters rewriters (…)
    [all...]
Rewriters.java 41 import javax.annotation.Nonnull;
44 @Nonnull Rewriter<ClassDef> getClassDefRewriter();
45 @Nonnull Rewriter<Field> getFieldRewriter();
47 @Nonnull Rewriter<Method> getMethodRewriter();
48 @Nonnull Rewriter<MethodParameter> getMethodParameterRewriter();
49 @Nonnull Rewriter<MethodImplementation> getMethodImplementationRewriter();
50 @Nonnull Rewriter<Instruction> getInstructionRewriter();
51 @Nonnull Rewriter<TryBlock<? extends ExceptionHandler>> getTryBlockRewriter();
52 @Nonnull Rewriter<ExceptionHandler> getExceptionHandlerRewriter();
53 @Nonnull Rewriter<DebugItem> getDebugItemRewriter()
    [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/
DexDataStore.java 3 import javax.annotation.Nonnull;
9 @Nonnull OutputStream outputAt(int offset);
10 @Nonnull InputStream readAt(int offset);
FileDataStore.java 6 import javax.annotation.Nonnull;
12 public FileDataStore(@Nonnull File file) throws FileNotFoundException, IOException {
17 @Nonnull @Override public OutputStream outputAt(int offset) {
21 @Nonnull @Override public InputStream readAt(int offset) {
  /external/compiler-rt/test/ubsan/TestCases/Misc/
nonnull-arg.cpp 1 // RUN: %clangxx -fsanitize=nonnull-attribute -fno-sanitize-recover=all %s -O3 -o %t
16 C(int *null, __attribute__((nonnull)) int *nonnull)
17 : null_(null), nonnull_(nonnull) {}
19 int method(int *nonnull, int *null) __attribute__((nonnull(2))) {
20 return *nonnull_ + *nonnull;
24 __attribute__((nonnull)) int func(int *nonnull) { return *nonnull; }
30 int *nonnull = va_arg(args, int*); local
    [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
MethodPool.java 37 import javax.annotation.Nonnull;
41 @Nonnull private final StringPool stringPool;
42 @Nonnull private final TypePool typePool;
43 @Nonnull private final ProtoPool protoPool;
45 public MethodPool(@Nonnull StringPool stringPool, @Nonnull TypePool typePool,
46 @Nonnull ProtoPool protoPool) {
52 public void intern(@Nonnull MethodReference method) {
61 @Nonnull @Override public CharSequence getDefiningClass(@Nonnull MethodReference methodReference)
    [all...]
AnnotationPool.java 39 import javax.annotation.Nonnull;
44 @Nonnull StringPool stringPool;
45 @Nonnull TypePool typePool;
46 @Nonnull FieldPool fieldPool;
47 @Nonnull MethodPool methodPool;
49 public AnnotationPool(@Nonnull StringPool stringPool, @Nonnull TypePool typePool,
50 @Nonnull FieldPool fieldPool, @Nonnull MethodPool methodPool) {
57 public void intern(@Nonnull Annotation annotation)
    [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/instruction/
BuilderSwitchElement.java 7 import javax.annotation.Nonnull;
10 @Nonnull BuilderSwitchPayload parent;
12 @Nonnull private final Label target;
14 public BuilderSwitchElement(@Nonnull BuilderSwitchPayload parent,
16 @Nonnull Label target) {
30 @Nonnull
  /external/clang/test/Sema/
attr-nonnull.c 5 int *a15, int *a16) __attribute__((nonnull(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)));
7 void f2(void) __attribute__((nonnull())); // expected-warning {{'nonnull' attribute applied to function with no pointer arguments}}
nonnull.c 12 __attribute__((nonnull(1))) void Class_init(Instance this, char *str) {
22 void foo(const char *str) __attribute__((nonnull("foo"))); // expected-error{{'nonnull' attribute requires parameter 1 to be an integer constant}}
23 void bar(int i) __attribute__((nonnull(1))); // expected-warning {{'nonnull' attribute only applies to pointer arguments}} expected-warning {{'nonnull' attribute applied to function with no pointer arguments}}
25 void baz(__attribute__((nonnull)) const char *str);
26 void baz2(__attribute__((nonnull(1))) const char *str); // expected-warning {{'nonnull' attribute when used on parameters takes no arguments}}
27 void baz3(__attribute__((nonnull)) int x); // expected-warning {{'nonnull' attribute only applies to pointer arguments}
    [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/
BuilderMethodPool.java 39 import javax.annotation.Nonnull;
47 @Nonnull private final BuilderContext context;
48 @Nonnull private final ConcurrentMap<MethodReference, BuilderMethodReference> internedItems =
51 BuilderMethodPool(@Nonnull BuilderContext context) {
55 @Nonnull public BuilderMethodReference internMethod(@Nonnull MethodReference methodReference) {
69 @Nonnull public BuilderMethodReference internMethod(@Nonnull String definingClass, @Nonnull String name,
70 @Nonnull List<? extends CharSequence> parameters
    [all...]
BuilderContext.java 44 import javax.annotation.Nonnull;
50 @Nonnull final BuilderStringPool stringPool;
51 @Nonnull final BuilderTypePool typePool;
52 @Nonnull final BuilderFieldPool fieldPool;
53 @Nonnull final BuilderMethodPool methodPool;
54 @Nonnull final BuilderProtoPool protoPool;
55 @Nonnull final BuilderClassPool classPool;
57 @Nonnull final BuilderTypeListPool typeListPool;
58 @Nonnull final BuilderAnnotationPool annotationPool;
59 @Nonnull final BuilderAnnotationSetPool annotationSetPool
    [all...]
BuilderAnnotationPool.java 39 import javax.annotation.Nonnull;
46 @Nonnull private final BuilderContext context;
47 @Nonnull private final ConcurrentMap<Annotation, BuilderAnnotation> internedItems =
50 BuilderAnnotationPool(@Nonnull BuilderContext context) {
54 @Nonnull public BuilderAnnotation internAnnotation(@Nonnull Annotation annotation) {
68 @Override public int getVisibility(@Nonnull BuilderAnnotation key) {
72 @Nonnull @Override public BuilderTypeReference getType(@Nonnull BuilderAnnotation key) {
76 @Nonnull @Overrid
    [all...]
BuilderFieldPool.java 39 import javax.annotation.Nonnull;
46 @Nonnull private final BuilderContext context;
47 @Nonnull private final ConcurrentMap<FieldReference, BuilderFieldReference> internedItems =
50 BuilderFieldPool(@Nonnull BuilderContext context) {
54 @Nonnull BuilderFieldReference internField(@Nonnull String definingClass, String name, String type) {
59 @Nonnull public BuilderFieldReference internField(@Nonnull FieldReference fieldReference) {
73 @Nonnull @Override
74 public BuilderTypeReference getDefiningClass(@Nonnull BuilderFieldReference key)
    [all...]
  /packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
CoordinateUtils.java 19 import javax.annotation.Nonnull;
30 @Nonnull
35 public static int x(@Nonnull final int[] coords) {
39 public static int y(@Nonnull final int[] coords) {
43 public static void set(@Nonnull final int[] coords, final int x, final int y) {
48 public static void copy(@Nonnull final int[] destination, @Nonnull final int[] source) {
53 @Nonnull
58 @Nonnull
68 public static int xFromArray(@Nonnull final int[] coordsArray, final int index)
    [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/
ImmutableInstructionFactory.java 39 import javax.annotation.Nonnull;
49 public ImmutableInstruction10t makeInstruction10t(@Nonnull Opcode opcode,
54 public ImmutableInstruction10x makeInstruction10x(@Nonnull Opcode opcode) {
58 public ImmutableInstruction11n makeInstruction11n(@Nonnull Opcode opcode,
64 public ImmutableInstruction11x makeInstruction11x(@Nonnull Opcode opcode,
69 public ImmutableInstruction12x makeInstruction12x(@Nonnull Opcode opcode,
75 public ImmutableInstruction20bc makeInstruction20bc(@Nonnull Opcode opcode,
77 @Nonnull Reference reference) {
81 public ImmutableInstruction20t makeInstruction20t(@Nonnull Opcode opcode,
86 public ImmutableInstruction21c makeInstruction21c(@Nonnull Opcode opcode
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/text/
LineBreaker.java 19 import android.annotation.NonNull;
31 protected final @NonNull List<Primitive> mPrimitives;
32 protected final @NonNull LineWidth mLineWidth;
33 protected final @NonNull TabStops mTabStops;
35 public LineBreaker(@NonNull List<Primitive> primitives, @NonNull LineWidth lineWidth,
36 @NonNull TabStops tabStops) {
42 public abstract void computeBreaks(@NonNull LineBreaks breakInfo);
  /external/clang/test/SemaCXX/
attr-nonnull.cpp 3 S(const char *) __attribute__((nonnull(2)));
5 static void f(const char*, const char*) __attribute__((nonnull(1)));
9 void g(const char*, const char*, const char*) __attribute__((nonnull(3)));
11 void h(const char*) __attribute__((nonnull(1))); // \
25 __attribute__((nonnull)) void f0(int *&p);
26 __attribute__((nonnull)) void f1(int * const &p);
27 __attribute__((nonnull(2))) void f2(int i, int * const &p);
36 __attribute__((nonnull(1))) void f(void *ptr);
46 bool operator!=(const void *) const __attribute__((nonnull(2)));
48 bool operator==(const X&, const void *) __attribute__((nonnull(2)))
    [all...]

Completed in 3163 milliseconds

1 2 3 4 5 6 7 8 91011>>