Home
last modified time | relevance | path

Searched refs:nullability (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_checks.inc22 "nullability-assign")
66 "nullability-return")
69 "nullability-arg")
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSanitizers.def97 SANITIZER("nullability-arg", NullabilityArg)
98 SANITIZER("nullability-assign", NullabilityAssign)
99 SANITIZER("nullability-return", NullabilityReturn)
100 SANITIZER_GROUP("nullability", Nullability,
H A DDiagnosticCommonKinds.td155 "duplicate nullability specifier %0">,
159 "conflicting nullability specifier on return types, %0 "
164 "conflicting nullability specifier on parameter types, %0 "
169 "nullability specifier %0 conflicts with existing specifier %1">;
H A DDiagnosticGroups.td561 def Nullability : DiagGroup<"nullability">;
562 def NullabilityDeclSpec : DiagGroup<"nullability-declspec">;
563 def NullabilityInferredOnNestedType : DiagGroup<"nullability-inferred-on-nested-type">;
565 def NullabilityCompletenessOnArrays : DiagGroup<"nullability-completeness-on-arrays">;
566 def NullabilityCompleteness : DiagGroup<"nullability-completeness",
H A DFeatures.def95 FEATURE(nullability, true)
H A DDiagnosticASTKinds.td961 "unsafe_unretained|nullability|null_resettable|class|direct}5' attribute"
971 "unsafe_unretained|nullability|null_resettable|class|direct}4' attribute"
H A DAttrDocs.td4135 with pointers in the C family of languages. The various nullability attributes
4138 pointers. Clang supports several kinds of nullability attributes: the
4140 method parameters and result types can never be null, while nullability type
4144 The nullability (type) qualifiers express whether a value of a given pointer
4147 unclear (the ``_Null_unspecified`` qualifier). Because nullability qualifiers
4167 In Objective-C, there is an alternate spelling for the nullability qualifiers
4179 As well as built-in pointer types, the nullability attributes can be attached
4186 Types should be marked nullable only where the type itself leaves nullability
4189 not a useful type. ``std::weak_ptr`` is not nullable, because its nullability
4198 The ``_Nonnull`` nullability qualifier indicates that null is not a meaningful
[all …]
H A DTokenKinds.def716 // Type nullability.
H A DDiagnosticParseKinds.td86 "type nullability specifier %0 is a Clang extension">,
87 InGroup<DiagGroup<"nullability-extension">>;
H A DDiagnosticSemaKinds.td11906 "nullability specifier %0 conflicts with existing specifier %1">,
11910 "nullability specifier %0 cannot be applied "
11920 "nullability specifier %0 cannot be applied to non-pointer type %1">;
11931 "nullability keyword %0 cannot be applied to multi-level pointer type %1">;
11933 "use nullability type specifier %0 to affect the innermost "
11941 "%select{pointer|block pointer|member pointer}0 is missing a nullability "
11945 "array parameter is missing a nullability type specifier (_Nonnull, "
11951 "%select{should never be null|may be null|should not declare nullability}0">;
11959 "type argument %0 cannot explicitly specify nullability">;
11962 "type parameter %0 bound %1 cannot explicitly specify nullability">;
/freebsd/tools/build/cross-build/include/common/sys/
H A Dcdefs.h199 #if !(defined(__clang__) && __has_feature(nullability))
/freebsd/contrib/llvm-project/clang/include/clang/APINotes/
H A DTypes.h587 auto nullability = NullabilityPayload >> (index * NullabilityKindSize); in getTypeInfo() local
588 return static_cast<NullabilityKind>(nullability & NullabilityKindMask); in getTypeInfo()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclPrinter.cpp1345 if (auto nullability = AttributedType::stripOuterNullability(T)) in PrintObjCMethodType() local
1346 Out << getNullabilitySpelling(*nullability, true) << ' '; in PrintObjCMethodType()
1674 if (auto nullability = AttributedType::stripOuterNullability(T)) { in VisitObjCPropertyDecl() local
1675 if (*nullability == NullabilityKind::Unspecified && in VisitObjCPropertyDecl()
1681 << getNullabilitySpelling(*nullability, true); in VisitObjCPropertyDecl()
H A DASTDiagnostic.cpp87 if (auto nullability = AttributedType::stripOuterNullability(SugarRT)) { in desugarForDiagnostic() local
89 AttributedType::getNullabilityAttrKind(*nullability), RT, RT); in desugarForDiagnostic()
98 if (auto nullability = in desugarForDiagnostic() local
101 AttributedType::getNullabilityAttrKind(*nullability), PT, PT); in desugarForDiagnostic()
H A DType.cpp4862 if (auto nullability = attributed->getImmediateNullability()) { in stripOuterNullability() local
4864 return nullability; in stripOuterNullability()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DDiagnostic.cpp45 DiagNullabilityKind nullability) { in operator <<() argument
48 getNullabilitySpelling(nullability.first, in operator <<()
49 /*isContextSensitive=*/nullability.second) + in operator <<()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/
H A DCheckers.td50 def Nullability : Package<"nullability">,
54 "Suppresses warnings for violating nullability annotations "
56 "concerned with your custom nullability annotations more "
57 "than with following nullability specifications of system "
152 "nullability of the implicit this parameter after a method call, "
337 HelpText<"Stores information during the analysis about nullability.">,
370 } // end "nullability"
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprObjC.cpp1444 if (auto nullability = AttributedType::stripOuterNullability(T)) { in stripObjCInstanceType() local
1447 AttributedType::getNullabilityAttrKind(*nullability), in stripObjCInstanceType()
1481 if (auto nullability = in getBaseMessageSendResultType() local
1488 AttributedType::getNullabilityAttrKind(*nullability), in getBaseMessageSendResultType()
1577 if (std::optional<NullabilityKind> nullability = in getMessageSendResultType() local
1579 if (*nullability == NullabilityKind::NullableResult) in getMessageSendResultType()
1580 nullability = NullabilityKind::Nullable; in getMessageSendResultType()
1581 receiverNullabilityIdx = 1 + static_cast<unsigned>(*nullability); in getMessageSendResultType()
1585 if (std::optional<NullabilityKind> nullability = in getMessageSendResultType() local
1587 if (*nullability == NullabilityKind::NullableResult) in getMessageSendResultType()
[all …]
H A DSemaObjCProperty.cpp2461 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) { in ProcessPropertyDecl() local
2462 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl()
2539 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){ in ProcessPropertyDecl() local
2540 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl()
2739 if (auto nullability = PropertyTy->getNullability()) { in CheckObjCPropertyAttributes() local
2740 if (*nullability == NullabilityKind::NonNull) in CheckObjCPropertyAttributes()
H A DSemaDeclObjC.cpp4555 auto nullability = type->getNullability(); in mergeTypeNullabilityForRedecl() local
4559 if (nullability.has_value() == prevNullability.has_value()) { in mergeTypeNullabilityForRedecl()
4561 if (!nullability) in mergeTypeNullabilityForRedecl()
4565 if (*nullability == *prevNullability) in mergeTypeNullabilityForRedecl()
4570 << DiagNullabilityKind(*nullability, usesCSKeyword) in mergeTypeNullabilityForRedecl()
4576 if (nullability) in mergeTypeNullabilityForRedecl()
H A DSemaType.cpp3742 IdentifierInfo *Sema::getNullabilityKeyword(NullabilityKind nullability) { in getNullabilityKeyword() argument
3743 switch (nullability) { in getNullabilityKeyword()
7318 if (auto nullability = type->getNullability()) { in checkObjCKindOfType() local
7323 Attr *A = createNullabilityAttr(S.Context, attr, *nullability); in checkObjCKindOfType()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseObjc.cpp412 NullabilityKind nullability, in addContextSensitiveTypeNullability() argument
417 return Pool.create(P.getNullabilityKeyword(nullability), in addContextSensitiveTypeNullability()
855 NullabilityKind nullability, in diagnoseRedundantPropertyNullability() argument
857 if (DS.getNullability() == nullability) { in diagnoseRedundantPropertyNullability()
859 << DiagNullabilityKind(nullability, true) in diagnoseRedundantPropertyNullability()
865 << DiagNullabilityKind(nullability, true) in diagnoseRedundantPropertyNullability()
/freebsd/sys/sys/
H A Dcdefs.h659 #if !(defined(__clang__) && __has_feature(nullability))
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h600 IdentifierInfo *getNullabilityKeyword(NullabilityKind nullability) { in getNullabilityKeyword() argument
601 return Actions.getNullabilityKeyword(nullability); in getNullabilityKeyword()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DDwarf.def1263 HANDLE_DW_APPLE_PROPERTY(0x1000, nullability)

12