OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:nullability
(Results
1 - 20
of
20
) sorted by relevancy
/src/tests/lib/libc/misc/
Makefile
31
UBSAN_FLAGS+= ${${ACTIVE_CC} == "clang" :? -fsanitize=
nullability
:}
34
CWARNFLAGS.clang+= -Wno-
nullability
-completeness
/src/external/apache2/llvm/dist/clang/lib/Basic/
Diagnostic.cpp
44
DiagNullabilityKind
nullability
) {
46
switch (
nullability
.first) {
48
string =
nullability
.second ? "'nonnull'" : "'_Nonnull'";
52
string =
nullability
.second ? "'nullable'" : "'_Nullable'";
56
string =
nullability
.second ? "'null_unspecified'" : "'_Null_unspecified'";
60
assert(!
nullability
.second &&
/src/external/apache2/llvm/dist/clang/include/clang/APINotes/
Types.h
194
/// Whether this class has a default
nullability
.
197
/// The default
nullability
.
216
/// Determine the default
nullability
for properties and methods of this
219
/// eturns the default
nullability
, if implied, or None if there is no
227
/// Set the default
nullability
for properties and methods of this class.
268
// Merge
nullability
.
270
if (auto
Nullability
= RHS.getDefaultNullability())
271
setDefaultNullability(*
Nullability
);
301
/// Whether this property has been audited for
nullability
.
304
/// The kind of
nullability
for this property. Only valid if the nullabilit
[
all
...]
/src/external/apache2/llvm/dist/clang/lib/AST/
DeclPrinter.cpp
1232
if (auto
nullability
= AttributedType::stripOuterNullability(T))
1233
Out << getNullabilitySpelling(*
nullability
, true) << ' ';
1473
/// -
nullability
1556
if (auto
nullability
= AttributedType::stripOuterNullability(T)) {
1557
if (*
nullability
== NullabilityKind::Unspecified &&
1563
<< getNullabilitySpelling(*
nullability
, true);
ASTDiagnostic.cpp
74
// desugared. Preserve
nullability
attribute on desugared types.
79
if (auto
nullability
= AttributedType::stripOuterNullability(SugarRT)) {
81
AttributedType::getNullabilityAttrKind(*
nullability
), RT, RT);
90
if (auto
nullability
=
93
AttributedType::getNullabilityAttrKind(*
nullability
), PT, PT);
Type.cpp
4028
// Check whether this is an attributed type with
nullability
4030
if (auto
Nullability
= AT->getImmediateNullability())
4031
return
Nullability
;
4083
// Signed, unsigned, and floating-point types cannot have
nullability
.
4185
if (auto
nullability
= attributed->getImmediateNullability()) {
4187
return
nullability
;
/src/external/apache2/llvm/dist/clang/lib/Sema/
SemaExprObjC.cpp
593
// Transfer the
nullability
from method's return type.
594
Optional<NullabilityKind>
Nullability
=
596
if (
Nullability
)
598
AttributedType::getNullabilityAttrKind(*
Nullability
), BoxedType,
1432
if (auto
nullability
= AttributedType::stripOuterNullability(T)) {
1435
AttributedType::getNullabilityAttrKind(*
nullability
),
1453
/// to account for
nullability
.
1465
// Local function that transfers the
nullability
of the method's
1468
// If the method's result type has
nullability
, extract it.
1469
if (auto
nullability
= Method->getSendResultType(ReceiverType
[
all
...]
SemaObjCProperty.cpp
2483
if (auto
nullability
= AttributedType::stripOuterNullability(modifiedTy)) {
2484
if (*
nullability
== NullabilityKind::Unspecified)
2562
if (auto
nullability
= AttributedType::stripOuterNullability(modifiedTy)){
2563
if (*
nullability
== NullabilityKind::Unspecified)
2761
if (auto
nullability
= PropertyTy->getNullability(Context)) {
2762
if (*
nullability
== NullabilityKind::NonNull)
SemaType.cpp
146
//
Nullability
qualifiers.
709
//
Nullability
specifiers cannot go after the declarator-id.
887
// Type arguments cannot have explicit qualifiers or
nullability
.
3922
IdentifierInfo *Sema::getNullabilityKeyword(NullabilityKind
nullability
) {
3923
switch (
nullability
) {
3944
llvm_unreachable("Unknown
nullability
kind.");
3955
/// Check whether there is a
nullability
attribute of any kind in the given
4002
/// This is used to determine the default
nullability
.
4194
/// Creates a fix-it to insert a C-style
nullability
keyword at \p pointerLoc,
4199
NullabilityKind
Nullability
) {
7090
NullabilityKind
nullability
= mapNullabilityAttrKind(attr.getKind());
local
[
all
...]
SemaDeclObjC.cpp
715
//
nullability
.
4519
/// Merge type
nullability
from for a redeclaration of the same entity,
4527
// Determine the
nullability
of both types.
4528
auto
nullability
= type->getNullability(S.Context);
local
4531
// Easy case: both have
nullability
.
4532
if (
nullability
.hasValue() == prevNullability.hasValue()) {
4533
// Neither has
nullability
; continue.
4534
if (!
nullability
)
4538
if (*
nullability
== *prevNullability)
4541
// Complain about mismatched
nullability
[
all
...]
SemaChecking.cpp
4362
if (auto
nullability
4364
if (*
nullability
== NullabilityKind::NonNull)
4446
/// Determine whether the given type has a non-null
nullability
annotation.
4448
if (auto
nullability
= type->getNullability(ctx))
4449
return *
nullability
== NullabilityKind::NonNull;
4526
// Fill in non-null argument information from the
nullability
SemaCodeComplete.cpp
1760
//
Nullability
2742
if (auto
nullability
= AttributedType::stripOuterNullability(Type)) {
2743
switch (*
nullability
) {
TreeTransform.h
6759
// Check whether we can add
nullability
; it is only represented as
6761
if (auto
nullability
= oldType->getImmediateNullability()) {
6765
<< DiagNullabilityKind(*
nullability
, false) << modifiedType;
/src/external/apache2/llvm/dist/clang/tools/c-index-test/
c-index-test.c
1541
const char *
nullability
= 0;
local
1544
nullability
= "nonnull";
1547
nullability
= "nullable";
1550
nullability
= "nullable_result";
1553
nullability
= "unspecified";
1559
if (
nullability
) {
1560
printf(Format,
nullability
);
1572
PrintNullabilityKind(T, " [
nullability
=%s]");
/src/external/apache2/mDNSResponder/dist/mDNSShared/
dns_sd.h
179
#if __has_feature(
nullability
) && !defined(__lint__)
/src/external/apache2/llvm/dist/clang/tools/libclang/
CXType.cpp
1312
if (auto
nullability
= T->getNullability(Ctx)) {
1313
switch (*
nullability
) {
/src/external/apache2/llvm/dist/clang/lib/Parse/
ParseObjc.cpp
370
/// Add an attribute for a context-sensitive type
nullability
to the given
374
NullabilityKind
nullability
,
379
return Pool.create(P.getNullabilityKeyword(
nullability
),
743
// Map a
nullability
property attribute to a context-sensitive keyword
802
/// Diagnose redundant or conflicting
nullability
information.
805
NullabilityKind
nullability
,
807
if (DS.getNullability() ==
nullability
) {
809
<< DiagNullabilityKind(
nullability
, true)
815
<< DiagNullabilityKind(
nullability
, true)
1171
NullabilityKind
Nullability
;
[
all
...]
/src/external/apache2/llvm/dist/clang/include/clang/Basic/
Diagnostic.h
1501
/// A
nullability
kind paired with a bit indicating whether it used a
1506
DiagNullabilityKind
nullability
);
/src/external/apache2/llvm/dist/clang/include/clang/Parse/
Parser.h
531
/// to the given
nullability
kind.
532
IdentifierInfo *getNullabilityKeyword(NullabilityKind
nullability
) {
533
return Actions.getNullabilityKeyword(
nullability
);
/src/external/apache2/llvm/dist/clang/include/clang/Sema/
Sema.h
241
/// Describes whether we've seen any
nullability
information for the given
245
/// not have a corresponding
nullability
annotation.
255
/// Whether we saw any type
nullability
annotations in the given file.
259
/// A mapping from file IDs to a record of whether we've seen
nullability
262
/// A mapping from file IDs to the
nullability
information for each file ID.
268
FileNullability
Nullability
;
275
return Cache.
Nullability
;
279
Map[Cache.File] = Cache.
Nullability
;
284
Cache.
Nullability
= Map[file];
285
return Cache.
Nullability
;
[
all
...]
Completed in 107 milliseconds
Indexes created Fri Apr 24 00:22:58 UTC 2026