/external/clang/test/SemaObjC/ |
nonnull.h | 2 #define NONNULL_ATTR __attribute__((nonnull))
|
override-nullability.m | 7 - (nonnull id)bad:(nullable id)obj; // expected-note 2 {{previous declaration is here}} 8 - (nullable id)notAsBad:(nonnull id)obj; 12 - (nullable id)bad:(nonnull id)obj; // expected-warning {{conflicting nullability specifier on return types, 'nullable' conflicts with existing specifier 'nonnull'}} \ 13 // expected-warning {{conflicting nullability specifier on parameter types, 'nonnull' conflicts with existing specifier 'nullable'}} 14 - (nonnull id)notAsBad:(nullable id)obj;
|
/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 getInterfaces(@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...] |
/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) {
|
/frameworks/base/core/java/android/content/pm/ |
ShortcutServiceInternal.java | 19 import android.annotation.NonNull; 38 void onShortcutChanged(@NonNull String packageName, @UserIdInt int userId); 43 @NonNull String callingPackage, long changedSince, 49 isPinnedByCaller(int launcherUserId, @NonNull String callingPackage, 50 @NonNull String packageName, @NonNull String id, int userId); 53 @NonNull String callingPackage, @NonNull String packageName, 54 @NonNull List<String> shortcutIds, int userId); 57 int launcherUserId, @NonNull String callingPackage [all...] |
/external/compiler-rt/test/ubsan/TestCases/Misc/ |
nonnull-arg.cpp | 1 // RUN: %clangxx -fsanitize=nonnull-attribute -fno-sanitize-recover=all %s -O3 -o %t 19 C(int *null, __attribute__((nonnull)) int *nonnull) 20 : null_(null), nonnull_(nonnull) {} 22 int method(int *nonnull, int *null) __attribute__((nonnull(2))) { 23 return *nonnull_ + *nonnull; 27 __attribute__((nonnull)) int func(int *nonnull) { return *nonnull; } 33 int *nonnull = va_arg(args, int*); local [all...] |
/external/clang/test/Sema/ |
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...] |
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}}
|
/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...] |
/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/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...] |
/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...] |
/cts/tools/vm-tests-tf/src/util/build/ |
BytesStreamSucker.java | 23 import javax.annotation.Nonnull; 33 @Nonnull 36 @Nonnull 39 @Nonnull 45 @Nonnull InputStream is, @Nonnull OutputStream os, boolean toBeClose) { 51 public BytesStreamSucker(@Nonnull InputStream is, @Nonnull OutputStream os) {
|
/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/llvm/test/Transforms/FunctionAttrs/ |
nonnull.ll | 2 declare nonnull i8* @ret_nonnull() 4 ; Return a pointer trivially nonnull (call return attribute) 6 ; CHECK: define nonnull i8* @test1 11 ; Return a pointer trivially nonnull (argument attribute) 12 define i8* @test2(i8* nonnull %p) { 13 ; CHECK: define nonnull i8* @test2 17 ; Given an SCC where one of the functions can not be marked nonnull, 18 ; can we still mark the other one which is trivially nonnull 26 ; CHECK: define nonnull i8* @test3 33 ; nonnull if neither can ever return null. (In this case, the [all...] |
/frameworks/base/core/java/android/widget/ |
MenuItemHoverListener.java | 5 import android.annotation.NonNull; 24 void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item); 32 void onItemHoverEnter(@NonNull MenuBuilder menu, @NonNull MenuItem item);
|
/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...] |