Home
last modified time | relevance | path

Searched refs:nullptr (Results 1 – 25 of 2018) sorted by relevance

12345678910>>...81

/external/clang/test/SemaCXX/
Dnullptr_in_arithmetic_ops.cpp7 a = 0 ? nullptr + a : a + nullptr; // expected-error 2{{invalid operands to binary expression}} in foo()
8 a = 0 ? nullptr - a : a - nullptr; // expected-error 2{{invalid operands to binary expression}} in foo()
9 a = 0 ? nullptr / a : a / nullptr; // expected-error 2{{invalid operands to binary expression}} in foo()
10 a = 0 ? nullptr * a : a * nullptr; // expected-error 2{{invalid operands to binary expression}} in foo()
11 a = 0 ? nullptr >> a : a >> nullptr; // expected-error 2{{invalid operands to binary expression}} in foo()
12 a = 0 ? nullptr << a : a << nullptr; // expected-error 2{{invalid operands to binary expression}} in foo()
13 a = 0 ? nullptr % a : a % nullptr; // expected-error 2{{invalid operands to binary expression}} in foo()
14 a = 0 ? nullptr & a : a & nullptr; // expected-error 2{{invalid operands to binary expression}} in foo()
15 a = 0 ? nullptr | a : a | nullptr; // expected-error 2{{invalid operands to binary expression}} in foo()
16 a = 0 ? nullptr ^ a : a ^ nullptr; // expected-error 2{{invalid operands to binary expression}} in foo()
[all …]
Dnullptr.cpp4 typedef decltype(nullptr) nullptr_t;
16 null = nullptr; in f()
17 void *p = nullptr; in f()
19 int *pi = nullptr; in f()
22 int A::*pm = nullptr; in f()
24 void (*pf)() = nullptr; in f()
26 void (A::*pmf)() = nullptr; in f()
28 bool b = nullptr; in f()
31 uintptr_t i = nullptr; // expected-error {{cannot initialize}} in f()
34 (void)(null == nullptr); in f()
[all …]
/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h53 const TargetLibraryInfo *TLI = nullptr,
54 const DominatorTree *DT = nullptr,
55 AssumptionCache *AC = nullptr,
56 const Instruction *CxtI = nullptr);
62 const TargetLibraryInfo *TLI = nullptr,
63 const DominatorTree *DT = nullptr,
64 AssumptionCache *AC = nullptr,
65 const Instruction *CxtI = nullptr);
71 const TargetLibraryInfo *TLI = nullptr,
72 const DominatorTree *DT = nullptr,
[all …]
DValueTracking.h42 AssumptionCache *AC = nullptr,
43 const Instruction *CxtI = nullptr,
44 const DominatorTree *DT = nullptr);
54 AssumptionCache *AC = nullptr,
55 const Instruction *CxtI = nullptr,
56 const DominatorTree *DT = nullptr);
65 AssumptionCache *AC = nullptr,
66 const Instruction *CxtI = nullptr,
67 const DominatorTree *DT = nullptr);
74 AssumptionCache *AC = nullptr,
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.cmp/
Dcmp_nullptr.pass.cpp47 assert(!(p1 == nullptr)); in main()
48 assert(!(nullptr == p1)); in main()
49 assert(!(p1 < nullptr)); in main()
50 assert( (nullptr < p1)); in main()
51 assert(!(p1 <= nullptr)); in main()
52 assert( (nullptr <= p1)); in main()
53 assert( (p1 > nullptr)); in main()
54 assert(!(nullptr > p1)); in main()
55 assert( (p1 >= nullptr)); in main()
56 assert(!(nullptr >= p1)); in main()
[all …]
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.special/
Dcmp_nullptr.pass.cpp47 assert(!(p1 == nullptr)); in main()
48 assert(!(nullptr == p1)); in main()
49 assert(!(p1 < nullptr)); in main()
50 assert( (nullptr < p1)); in main()
51 assert(!(p1 <= nullptr)); in main()
52 assert( (nullptr <= p1)); in main()
53 assert( (p1 > nullptr)); in main()
54 assert(!(nullptr > p1)); in main()
55 assert( (p1 >= nullptr)); in main()
56 assert(!(nullptr >= p1)); in main()
[all …]
/external/libcxx/test/std/language.support/support.types/
Dnullptr_t.pass.cpp26 assert(p == nullptr); in test_conversions()
29 T p = nullptr; in test_conversions()
30 assert(p == nullptr); in test_conversions()
31 assert(nullptr == p); in test_conversions()
32 assert(!(p != nullptr)); in test_conversions()
33 assert(!(nullptr != p)); in test_conversions()
40 T p = nullptr; in test_comparisons()
41 assert(p == nullptr); in test_comparisons()
42 assert(p <= nullptr); in test_comparisons()
43 assert(p >= nullptr); in test_comparisons()
[all …]
/external/libcxx/src/
Ddebug.cpp73 : __cbeg_(nullptr), in __libcpp_db()
74 __cend_(nullptr), in __libcpp_db()
76 __ibeg_(nullptr), in __libcpp_db()
77 __iend_(nullptr), in __libcpp_db()
88 if (*p != nullptr) in ~__libcpp_db()
100 if (*p != nullptr) in ~__libcpp_db()
117 _LIBCPP_ASSERT(i != nullptr, "iterator not found in debug database."); in __find_c_from_i()
118 return i->__c_ != nullptr ? i->__c_->__c_ : nullptr; in __find_c_from_i()
131 if (c == nullptr) in __insert_ic()
136 if (c == nullptr) in __insert_ic()
[all …]
Dstrstream.cpp20 __palloc_(nullptr), in strstreambuf()
21 __pfree_(nullptr) in strstreambuf()
40 if (__pbeg == nullptr) in __init()
52 __palloc_(nullptr), in strstreambuf()
53 __pfree_(nullptr) in strstreambuf()
61 __palloc_(nullptr), in strstreambuf()
62 __pfree_(nullptr) in strstreambuf()
64 __init(const_cast<char *>(__gnext), __n, nullptr); in strstreambuf()
70 __palloc_(nullptr), in strstreambuf()
71 __pfree_(nullptr) in strstreambuf()
[all …]
/external/compiler-rt/test/msan/
Dsignal_stress_test.cc52 nullptr, nullptr, nullptr, nullptr, nullptr, in main()
53 nullptr, nullptr, nullptr, nullptr, nullptr, in main()
54 nullptr, nullptr, nullptr, nullptr, nullptr, in main()
55 nullptr, nullptr, nullptr, nullptr, nullptr); in main()
/external/llvm/include/llvm/Transforms/Utils/
DBasicBlockUtils.h43 void FoldSingleEntryPHINodes(BasicBlock *BB, AliasAnalysis *AA = nullptr,
44 MemoryDependenceAnalysis *MemDep = nullptr);
51 bool DeleteDeadPHIs(BasicBlock *BB, const TargetLibraryInfo *TLI = nullptr);
55 bool MergeBlockIntoPredecessor(BasicBlock *BB, DominatorTree *DT = nullptr,
56 LoopInfo *LI = nullptr,
57 AliasAnalysis *AA = nullptr,
58 MemoryDependenceAnalysis *MemDep = nullptr);
91 : AA(nullptr), DT(nullptr), LI(nullptr), MergeIdenticalEdges(false), in CriticalEdgeSplittingOptions()
95 CriticalEdgeSplittingOptions(AliasAnalysis *AA, DominatorTree *DT = nullptr,
96 LoopInfo *LI = nullptr)
[all …]
DCloning.h99 const Twine &NameSuffix = "", Function *F = nullptr,
100 ClonedCodeInfo *CodeInfo = nullptr);
116 ClonedCodeInfo *CodeInfo = nullptr);
131 ClonedCodeInfo *CodeInfo = nullptr,
132 ValueMapTypeRemapper *TypeMapper = nullptr,
133 ValueMaterializer *Materializer = nullptr);
159 virtual ValueMapTypeRemapper *getTypeRemapper() { return nullptr; } in getTypeRemapper()
160 virtual ValueMaterializer *getValueMaterializer() { return nullptr; } in getValueMaterializer()
168 ClonedCodeInfo *CodeInfo = nullptr,
169 CloningDirector *Director = nullptr);
[all …]
/external/clang/lib/Serialization/
DModule.cpp24 : Kind(Kind), File(nullptr), Signature(0), DirectlyImported(false), in ModuleFile()
27 SLocEntryBaseOffset(0), SLocEntryOffsets(nullptr), in ModuleFile()
29 IdentifierOffsets(nullptr), BaseIdentifierID(0), in ModuleFile()
30 IdentifierTableData(nullptr), IdentifierLookupTable(nullptr), in ModuleFile()
31 LocalNumMacros(0), MacroOffsets(nullptr), in ModuleFile()
33 PreprocessedEntityOffsets(nullptr), NumPreprocessedEntities(0), in ModuleFile()
35 HeaderFileInfoTableData(nullptr), HeaderFileInfoTable(nullptr), in ModuleFile()
37 LocalNumSelectors(0), SelectorOffsets(nullptr), BaseSelectorID(0), in ModuleFile()
38 SelectorLookupTableData(nullptr), SelectorLookupTable(nullptr), in ModuleFile()
39 LocalNumDecls(0), DeclOffsets(nullptr), BaseDeclID(0), in ModuleFile()
[all …]
/external/pdfium/fpdfsdk/src/
Dfpdfview_embeddertest.cpp36 EXPECT_NE(nullptr, page); in TEST_F()
40 EXPECT_EQ(nullptr, LoadPage(1)); in TEST_F()
58 dest = FPDF_GetNamedDest(document(), 0, nullptr, &buffer_size); in TEST_F()
59 EXPECT_NE(nullptr, dest); in TEST_F()
65 EXPECT_NE(nullptr, dest); in TEST_F()
72 EXPECT_NE(nullptr, dest); in TEST_F()
81 EXPECT_NE(nullptr, dest); in TEST_F()
91 EXPECT_EQ(nullptr, dest); in TEST_F()
98 EXPECT_EQ(nullptr, dest); in TEST_F()
105 EXPECT_NE(nullptr, dest); in TEST_F()
[all …]
/external/llvm/include/llvm/MC/
DMCWinEH.h49 : Begin(nullptr), End(nullptr), ExceptionHandler(nullptr), in FrameInfo()
50 Function(nullptr), PrologEnd(nullptr), Symbol(nullptr), in FrameInfo()
52 ChainedParent(nullptr), Instructions() {} in FrameInfo()
54 : Begin(BeginFuncEHLabel), End(nullptr), ExceptionHandler(nullptr), in FrameInfo()
55 Function(Function), PrologEnd(nullptr), Symbol(nullptr), in FrameInfo()
57 ChainedParent(nullptr), Instructions() {} in FrameInfo()
60 : Begin(BeginFuncEHLabel), End(nullptr), ExceptionHandler(nullptr), in FrameInfo()
61 Function(Function), PrologEnd(nullptr), Symbol(nullptr), in FrameInfo()
/external/llvm/lib/Transforms/ObjCARC/
DARCRuntimeEntryPoints.h46 ARCRuntimeEntryPoints() : TheModule(nullptr), in ARCRuntimeEntryPoints()
47 AutoreleaseRV(nullptr), in ARCRuntimeEntryPoints()
48 Release(nullptr), in ARCRuntimeEntryPoints()
49 Retain(nullptr), in ARCRuntimeEntryPoints()
50 RetainBlock(nullptr), in ARCRuntimeEntryPoints()
51 Autorelease(nullptr), in ARCRuntimeEntryPoints()
52 StoreStrong(nullptr), in ARCRuntimeEntryPoints()
53 RetainRV(nullptr), in ARCRuntimeEntryPoints()
54 RetainAutorelease(nullptr), in ARCRuntimeEntryPoints()
55 RetainAutoreleaseRV(nullptr) { } in ARCRuntimeEntryPoints()
[all …]
/external/llvm/lib/Target/NVPTX/
DNVPTXTargetObjectFile.h25 TextSection = nullptr; in NVPTXTargetObjectFile()
26 DataSection = nullptr; in NVPTXTargetObjectFile()
27 BSSSection = nullptr; in NVPTXTargetObjectFile()
28 ReadOnlySection = nullptr; in NVPTXTargetObjectFile()
30 StaticCtorSection = nullptr; in NVPTXTargetObjectFile()
31 StaticDtorSection = nullptr; in NVPTXTargetObjectFile()
32 LSDASection = nullptr; in NVPTXTargetObjectFile()
33 EHFrameSection = nullptr; in NVPTXTargetObjectFile()
34 DwarfAbbrevSection = nullptr; in NVPTXTargetObjectFile()
35 DwarfInfoSection = nullptr; in NVPTXTargetObjectFile()
[all …]
/external/llvm/unittests/Support/
DMemoryTest.cpp61 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC); in TEST_P()
64 EXPECT_NE((void*)nullptr, M1.base()); in TEST_P()
72 MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
74 MemoryBlock M2 = Memory::allocateMappedMemory(64, nullptr, Flags, EC); in TEST_P()
76 MemoryBlock M3 = Memory::allocateMappedMemory(32, nullptr, Flags, EC); in TEST_P()
79 EXPECT_NE((void*)nullptr, M1.base()); in TEST_P()
81 EXPECT_NE((void*)nullptr, M2.base()); in TEST_P()
83 EXPECT_NE((void*)nullptr, M3.base()); in TEST_P()
92 MemoryBlock M4 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
94 EXPECT_NE((void*)nullptr, M4.base()); in TEST_P()
[all …]
DDwarfTest.cpp20 EXPECT_EQ(nullptr, TagString(DW_TAG_invalid)); in TEST()
24 EXPECT_EQ(nullptr, TagString(DW_TAG_lo_user)); in TEST()
25 EXPECT_EQ(nullptr, TagString(DW_TAG_hi_user)); in TEST()
26 EXPECT_EQ(nullptr, TagString(DW_TAG_user_base)); in TEST()
61 EXPECT_EQ(nullptr, LanguageString(0)); in TEST()
65 EXPECT_EQ(nullptr, LanguageString(DW_LANG_lo_user)); in TEST()
66 EXPECT_EQ(nullptr, LanguageString(DW_LANG_hi_user)); in TEST()
88 EXPECT_EQ(nullptr, AttributeEncodingString(0)); in TEST()
92 EXPECT_EQ(nullptr, AttributeEncodingString(DW_ATE_lo_user)); in TEST()
93 EXPECT_EQ(nullptr, AttributeEncodingString(DW_ATE_hi_user)); in TEST()
[all …]
/external/llvm/lib/Support/
DDwarf.cpp23 default: return nullptr; in TagString()
43 return nullptr; in ChildrenString()
202 return nullptr; in AttributeString()
237 return nullptr; in FormEncodingString()
242 default: return nullptr; in OperationEncodingString()
259 default: return nullptr; in AttributeEncodingString()
282 return nullptr; in DecimalSignString()
293 return nullptr; in EndianityString()
303 return nullptr; in AccessibilityString()
312 return nullptr; in VisibilityString()
[all …]
/external/clang/unittests/libclang/
DLibclangTest.cpp22 clang_parseTranslationUnit2(nullptr, nullptr, nullptr, 0, nullptr, in TEST()
23 0, 0, nullptr)); in TEST()
27 EXPECT_EQ(nullptr, clang_createTranslationUnit(nullptr, nullptr)); in TEST()
32 clang_createTranslationUnit2(nullptr, nullptr, nullptr)); in TEST()
36 clang_createTranslationUnit2(nullptr, nullptr, &TU)); in TEST()
37 EXPECT_EQ(nullptr, TU); in TEST()
118 TestVFO T(nullptr); in TEST()
416 ClangTU = clang_parseTranslationUnit(Index, CppName.c_str(), nullptr, 0, in TEST_F()
417 nullptr, 0, TUFlags); in TEST_F()
422 ASSERT_TRUE(ReparseTU(0, nullptr /* No unsaved files. */)); in TEST_F()
[all …]
/external/llvm/lib/TableGen/
DTGParser.cpp33 SubClassReference() : Rec(nullptr) {} in SubClassReference()
35 bool isInvalid() const { return Rec == nullptr; } in isInvalid()
42 SubMultiClassReference() : MC(nullptr) {} in SubMultiClassReference()
44 bool isInvalid() const { return MC == nullptr; } in isInvalid()
119 assert(BInit != nullptr); in SetValue()
327 Init *ItemVal = List->resolveListElementReference(*CurRec, nullptr, i); in ProcessForeachDefs()
405 return nullptr; in ParseObjectName()
410 Record *CurRec = nullptr; in ParseObjectName()
414 RecTy *Type = nullptr; in ParseObjectName()
419 return nullptr; in ParseObjectName()
[all …]
/external/llvm/lib/CodeGen/
DInterferenceCache.h81 : VirtTag(LIU.getTag()), Fixed(nullptr) { in RegUnitInfo()
97 Entry() : PhysReg(0), Tag(0), RefCount(0), Indexes(nullptr), LIS(nullptr) {} in Entry()
153 : TRI(nullptr), LIUArray(nullptr), MF(nullptr), PhysRegEntries(nullptr), in InterferenceCache()
177 Current = nullptr; in setEntry()
189 Cursor() : CacheEntry(nullptr), Current(nullptr) {} in Cursor()
190 ~Cursor() { setEntry(nullptr); } in ~Cursor()
192 Cursor(const Cursor &O) : CacheEntry(nullptr), Current(nullptr) { in Cursor()
205 setEntry(nullptr); in setPhysReg()
/external/boringssl/src/crypto/test/
Dstl_compat.h32 return out->empty() ? nullptr : &(*out)[0]; in vector_data()
37 return out->empty() ? nullptr : &(*out)[0]; in vector_data()
73 using nullptr_t = decltype(nullptr);
81 unique_ptr() : ptr_(nullptr) {}
82 unique_ptr(nullptr_t) : ptr_(nullptr) {}
86 unique_ptr(unique_ptr &&u) : ptr_(nullptr) {
107 return ptr_ != nullptr;
111 assert(ptr_ != nullptr);
116 assert(ptr_ != nullptr);
126 ptr_ = nullptr;
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp195 return nullptr; in optimizeStrCat()
204 return nullptr; in optimizeStrCat()
220 return nullptr; in emitStrLenMemCpy()
243 return nullptr; in optimizeStrNCat()
254 return nullptr; in optimizeStrNCat()
259 return nullptr; in optimizeStrNCat()
270 return nullptr; in optimizeStrNCat()
284 return nullptr; in optimizeStrChr()
294 return nullptr; in optimizeStrChr()
307 return nullptr; in optimizeStrChr()
[all …]

12345678910>>...81