Home
last modified time | relevance | path

Searched refs:hasValue (Results 1 – 25 of 915) sorted by relevance

12345678910>>...37

/external/llvm-project/llvm/unittests/CodeGen/GlobalISel/
DConstantFoldingTest.cpp86 EXPECT_TRUE(FoldGAddInt.hasValue()); in TEST_F()
91 EXPECT_TRUE(FoldGAddMix.hasValue()); in TEST_F()
98 EXPECT_TRUE(FoldGAndInt.hasValue()); in TEST_F()
103 EXPECT_TRUE(FoldGAndMix.hasValue()); in TEST_F()
110 EXPECT_TRUE(FoldGAShrInt.hasValue()); in TEST_F()
115 EXPECT_TRUE(FoldGAShrMix.hasValue()); in TEST_F()
122 EXPECT_TRUE(FoldGLShrInt.hasValue()); in TEST_F()
127 EXPECT_TRUE(FoldGLShrMix.hasValue()); in TEST_F()
134 EXPECT_TRUE(FoldGMulInt.hasValue()); in TEST_F()
139 EXPECT_TRUE(FoldGMulMix.hasValue()); in TEST_F()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/
DExtensionValue.cs48 private bool hasValue; field in Google.Protobuf.ExtensionValue
60 if (!hasValue) in CalculateSize()
71 hasValue = hasValue, in Clone()
83 && hasValue.Equals((other as ExtensionValue<T>).hasValue) in Equals()
93 hash = hash * 31 + hasValue.GetHashCode(); in GetHashCode()
102 hasValue = true; in MergeFrom()
111 if (extensionValue.hasValue) in MergeFrom()
113 hasValue |= codec.FieldMerger(ref field, extensionValue.field); in MergeFrom()
120 if (hasValue) in WriteTo()
135 hasValue = true; in SetValue()
[all …]
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsMapContainingValueTest.java11 import static org.hamcrest.collection.IsMapContaining.hasValue;
17 return hasValue("foo"); in createMatcher()
21 assertDescription("map containing [ANYTHING->\"a\"]", hasValue("a")); in testHasReadableDescription()
26 assertMismatchDescription("map was []", hasValue(1), map); in testDoesNotMatchEmptyMap()
33 assertMatches("Singleton map", hasValue(1), map); in testMatchesSingletonMapContainingValue()
42 assertMatches("hasValue 1", hasValue(1), map); in testMatchesMapContainingValue()
43 assertMatches("hasValue 3", hasValue(3), map); in testMatchesMapContainingValue()
44 assertMismatchDescription("map was [<a=1>, <b=2>, <c=3>]", hasValue(4), map); in testMatchesMapContainingValue()
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DTypeNameClassifierTest.java56 assertThat(getPrefix("ClassName")).hasValue(0); in typePrefixLength()
57 assertThat(getPrefix("com.ClassName")).hasValue(1); in typePrefixLength()
58 assertThat(getPrefix("ClassName.foo")).hasValue(1); in typePrefixLength()
59 assertThat(getPrefix("com.ClassName.foo")).hasValue(2); in typePrefixLength()
60 assertThat(getPrefix("ClassName.foo.bar")).hasValue(1); in typePrefixLength()
61 assertThat(getPrefix("com.ClassName.foo.bar")).hasValue(2); in typePrefixLength()
62 assertThat(getPrefix("ClassName.CONST")).hasValue(1); in typePrefixLength()
63 assertThat(getPrefix("ClassName.varName")).hasValue(1); in typePrefixLength()
64 assertThat(getPrefix("ClassName.Inner.varName")).hasValue(2); in typePrefixLength()
69 assertThat(getPrefix("com.google.security.acl.proto2api.ACL.Entry.newBuilder")).hasValue(7); in ambiguousClass()
/external/llvm-project/llvm/unittests/ADT/
DAnyTest.cpp26 EXPECT_FALSE(A.hasValue()); in TEST()
30 EXPECT_TRUE(B.hasValue()); in TEST()
34 EXPECT_TRUE(C.hasValue()); in TEST()
38 EXPECT_TRUE(D.hasValue()); in TEST()
43 EXPECT_TRUE(E.hasValue()); in TEST()
50 EXPECT_TRUE(B.hasValue()); in TEST()
51 EXPECT_TRUE(F.hasValue()); in TEST()
58 EXPECT_FALSE(C.hasValue()); in TEST()
59 EXPECT_TRUE(G.hasValue()); in TEST()
65 EXPECT_TRUE(A.hasValue()); in TEST()
[all …]
DStatisticTest.cpp94 EXPECT_EQ(S1.hasValue(), true); in TEST()
95 EXPECT_EQ(S2.hasValue(), false); in TEST()
110 EXPECT_EQ(S1.hasValue(), true); in TEST()
111 EXPECT_EQ(S2.hasValue(), true); in TEST()
137 EXPECT_EQ(S1.hasValue(), false); in TEST()
138 EXPECT_EQ(S2.hasValue(), false); in TEST()
155 EXPECT_EQ(S1.hasValue(), true); in TEST()
156 EXPECT_EQ(S2.hasValue(), true); in TEST()
/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/
DSupplementalDataTest.java52 assertThat(fakeData.getExplicitParentLocaleOf("en_GB")).hasValue("en_001"); in testGetParent_explicit()
53 assertThat(fakeData.getExplicitParentLocaleOf("en_AU")).hasValue("en_001"); in testGetParent_explicit()
86 assertThat(fakeData.maximize("en")).hasValue("en_Latn_US"); in testMaximize()
87 assertThat(fakeData.maximize("en_GB")).hasValue("en_Latn_GB"); in testMaximize()
88 assertThat(fakeData.maximize("en_VARIANT")).hasValue("en_Latn_US_VARIANT"); in testMaximize()
90 assertThat(fakeData.maximize("pt")).hasValue("pt_Latn_BR"); in testMaximize()
91 assertThat(fakeData.maximize("pt_PT")).hasValue("pt_Latn_PT"); in testMaximize()
92 assertThat(fakeData.maximize("und")).hasValue("en_Latn_US"); in testMaximize()
152 assertThat(fakeData.getDefaultCalendar("root")).hasValue("gregorian"); in testGetDefaultCalendar()
156 assertThat(fakeData.getDefaultCalendar("uz_AF")).hasValue("persian"); in testGetDefaultCalendar()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DOptional.h49 if (other.hasValue()) { in OptionalStorage()
54 if (other.hasValue()) { in OptionalStorage()
70 bool hasValue() const noexcept { return hasVal; } in hasValue() function
94 if (hasValue()) {
103 if (hasValue()) {
113 if (other.hasValue()) {
114 if (hasValue()) {
127 if (other.hasValue()) {
128 if (hasValue()) {
170 bool hasValue() const noexcept { return hasVal; } in hasValue() function
[all …]
/external/llvm-project/mlir/unittests/Pass/
DAnalysisManagerTest.cpp48 EXPECT_TRUE(am.getCachedAnalysis<MyAnalysis>().hasValue()); in TEST()
49 EXPECT_FALSE(am.getCachedAnalysis<OtherAnalysis>().hasValue()); in TEST()
78 EXPECT_TRUE(fam.getCachedAnalysis<MyAnalysis>().hasValue()); in TEST()
79 EXPECT_FALSE(fam.getCachedAnalysis<OtherAnalysis>().hasValue()); in TEST()
100 EXPECT_FALSE(am.getCachedChildAnalysis<MyAnalysis>(func1).hasValue()); in TEST()
111 EXPECT_TRUE(am.getCachedChildAnalysis<MyAnalysis>(func1).hasValue()); in TEST()
112 EXPECT_FALSE(am.getCachedChildAnalysis<OtherAnalysis>(func1).hasValue()); in TEST()
140 EXPECT_FALSE(am.getCachedAnalysis<CustomInvalidatingAnalysis>().hasValue()); in TEST()
146 EXPECT_TRUE(am.getCachedAnalysis<CustomInvalidatingAnalysis>().hasValue()); in TEST()
159 EXPECT_TRUE(am.getCachedAnalysis<OpSpecificAnalysis>().hasValue()); in TEST()
/external/llvm-project/llvm/include/llvm/ADT/
DOptional.h50 if (other.hasValue()) { in OptionalStorage()
55 if (other.hasValue()) { in OptionalStorage()
71 constexpr bool hasValue() const noexcept { return hasVal; } in hasValue() function
95 if (hasValue()) {
104 if (hasValue()) {
114 if (other.hasValue()) {
115 if (hasValue()) {
128 if (other.hasValue()) {
129 if (hasValue()) {
171 constexpr bool hasValue() const noexcept { return hasVal; } in hasValue() function
[all …]
/external/llvm-project/llvm/unittests/BinaryFormat/
DDwarfTest.cpp150 EXPECT_TRUE(RefSize.hasValue()); in TEST()
151 EXPECT_TRUE(AddrSize.hasValue()); in TEST()
158 EXPECT_TRUE(RefSize.hasValue()); in TEST()
159 EXPECT_TRUE(AddrSize.hasValue()); in TEST()
165 EXPECT_TRUE(RefSize.hasValue()); in TEST()
170 EXPECT_TRUE(RefSize.hasValue()); in TEST()
175 EXPECT_TRUE(RefSize.hasValue()); in TEST()
181 EXPECT_TRUE(RefSize.hasValue()); in TEST()
186 EXPECT_TRUE(RefSize.hasValue()); in TEST()
191 EXPECT_TRUE(RefSize.hasValue()); in TEST()
/external/llvm-project/llvm/include/llvm/MC/
DMCSymbolWasm.h75 bool hasImportModule() const { return ImportModule.hasValue(); } in hasImportModule()
77 if (ImportModule.hasValue()) in getImportModule()
87 bool hasImportName() const { return ImportName.hasValue(); } in hasImportName()
89 if (ImportName.hasValue()) in getImportName()
95 bool hasExportName() const { return ExportName.hasValue(); } in hasExportName()
118 assert(GlobalType.hasValue()); in getGlobalType()
123 bool hasTableType() const { return TableType.hasValue(); } in hasTableType()
131 assert(EventType.hasValue()); in getEventType()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DStringTrieBuilder.java267 hasValue=true; in ValueNode()
271 assert(!hasValue); in setValue()
272 hasValue=true; in setValue()
276 hasValue=true; in setFinalValue()
282 if(hasValue) { in hashCode()
296 return hasValue==o.hasValue && (!hasValue || value==o.value); in equals()
313 protected boolean hasValue; field in StringTrieBuilder.ValueNode
384 if(hasValue) { in add()
411 if(hasValue) { in add()
415 hasValue=false; in add()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DStringTrieBuilder.java266 hasValue=true; in ValueNode()
270 assert(!hasValue); in setValue()
271 hasValue=true; in setValue()
275 hasValue=true; in setFinalValue()
281 if(hasValue) { in hashCode()
295 return hasValue==o.hasValue && (!hasValue || value==o.value); in equals()
312 protected boolean hasValue; field in StringTrieBuilder.ValueNode
383 if(hasValue) { in add()
410 if(hasValue) { in add()
414 hasValue=false; in add()
[all …]
/external/llvm-project/lldb/source/Utility/
DSelectHelper.cpp87 if (!vold.hasValue()) in updateMaxFd()
126 if (!max_fd.hasValue()) { in Select()
141 if (max_read_fd.hasValue()) { in Select()
145 if (max_write_fd.hasValue()) { in Select()
149 if (max_error_fd.hasValue()) { in Select()
164 if (max_read_fd.hasValue()) { in Select()
168 if (max_write_fd.hasValue()) { in Select()
172 if (max_error_fd.hasValue()) { in Select()
198 if (m_end_time.hasValue()) { in Select()
/external/llvm-project/clang/unittests/ASTMatchers/Dynamic/
DVariantValueTest.cpp25 EXPECT_TRUE(Value.hasValue()); in TEST()
38 EXPECT_TRUE(Value.hasValue()); in TEST()
46 EXPECT_TRUE(Value.hasValue()); in TEST()
76 EXPECT_TRUE(Value.hasValue()); in TEST()
84 EXPECT_TRUE(Value.hasValue()); in TEST()
97 EXPECT_TRUE(Value.hasValue()); in TEST()
105 EXPECT_TRUE(Value.hasValue()); in TEST()
116 EXPECT_TRUE(Value.hasValue()); in TEST()
121 EXPECT_FALSE(Value.hasValue()); in TEST()
/external/llvm/lib/Analysis/
DCFLSteensAliasAnalysis.cpp180 if (RetInfo.hasValue()) in FunctionInfo()
189 if (ParamInfo.hasValue()) in FunctionInfo()
265 assert(Iter->second.hasValue()); in ensureCached()
272 if (FunInfo.hasValue()) in getAliasSummary()
289 if (!MaybeFnA.hasValue() && !MaybeFnB.hasValue()) { in query()
297 if (MaybeFnA.hasValue()) { in query()
299 assert((!MaybeFnB.hasValue() || *MaybeFnB == *MaybeFnA) && in query()
307 assert(MaybeInfo.hasValue()); in query()
311 if (!MaybeA.hasValue()) in query()
315 if (!MaybeB.hasValue()) in query()
[all …]
/external/llvm-project/mlir/unittests/Analysis/
DAffineStructuresTest.cpp22 static void checkSample(bool hasValue, const FlatAffineConstraints &fac) { in checkSample() argument
24 if (!hasValue) { in checkSample()
25 EXPECT_FALSE(maybeSample.hasValue()); in checkSample()
26 if (maybeSample.hasValue()) { in checkSample()
32 ASSERT_TRUE(maybeSample.hasValue()); in checkSample()
55 static void checkPermutationsSample(bool hasValue, unsigned nDim, in checkPermutationsSample() argument
74 checkSample(hasValue, in checkPermutationsSample()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DMCSymbolWasm.h75 if (ImportModule.hasValue()) { in getImportModule()
82 bool hasImportName() const { return ImportName.hasValue(); } in hasImportName()
84 if (ImportName.hasValue()) { in getImportName()
91 bool hasExportName() const { return ExportName.hasValue(); } in hasExportName()
102 assert(GlobalType.hasValue()); in getGlobalType()
108 assert(EventType.hasValue()); in getEventType()
/external/clang/lib/StaticAnalyzer/Core/
DAnalyzerOptions.cpp145 if (!V.hasValue()) in getBooleanOption()
260 if (!AlwaysInlineSize.hasValue()) in getAlwaysInlineSize()
266 if (!MaxInlinableSize.hasValue()) { in getMaxInlinableSize()
287 if (!GraphTrimInterval.hasValue()) in getGraphTrimInterval()
293 if (!MaxTimesInlineLarge.hasValue()) in getMaxTimesInlineLarge()
299 if (!MinCFGSizeTreatFunctionsAsLarge.hasValue()) in getMinCFGSizeTreatFunctionsAsLarge()
306 if (!MaxNodesPerTopLevelFunction.hasValue()) { in getMaxNodesPerTopLevelFunction()
337 if (!InlineLambdas.hasValue()) in shouldInlineLambdas()
343 if (!WidenLoops.hasValue()) in shouldWidenLoops()
/external/turbine/javatests/com/google/turbine/options/
DTurbineOptionsTest.java84 assertThat(options.output()).hasValue("out.jar"); in exhaustiveArgs()
96 assertThat(options.outputDeps()).hasValue("out.jdeps"); in exhaustiveArgs()
97 assertThat(options.targetLabel()).hasValue("//java/com/google/test"); in exhaustiveArgs()
98 assertThat(options.injectingRuleKind()).hasValue("foo_library"); in exhaustiveArgs()
121 assertThat(options.targetLabel()).hasValue("//java/com/google/test"); in strictJavaDepsArgs()
210 assertThat(options.targetLabel()).hasValue("//custom/label"); in paramsFile()
224 assertThat(options.targetLabel()).hasValue("@other-repo//foo:local-jam"); in escapedExternalRepositoryLabel()
321 assertThat(options.release()).hasValue("7"); in releaseJavacopts()
334 assertThat(options.gensrcOutput()).hasValue("gensrc.jar"); in miscOutputs()
335 assertThat(options.profile()).hasValue("turbine.prof"); in miscOutputs()
/external/clang/unittests/ASTMatchers/Dynamic/
DVariantValueTest.cpp26 EXPECT_TRUE(Value.hasValue()); in TEST()
39 EXPECT_TRUE(Value.hasValue()); in TEST()
47 EXPECT_TRUE(Value.hasValue()); in TEST()
77 EXPECT_TRUE(Value.hasValue()); in TEST()
83 EXPECT_TRUE(Value.hasValue()); in TEST()
94 EXPECT_TRUE(Value.hasValue()); in TEST()
99 EXPECT_FALSE(Value.hasValue()); in TEST()
/external/llvm/lib/DebugInfo/PDB/Raw/
DInfoStreamBuilder.cpp32 if (!Ver.hasValue()) in build()
35 if (!Sig.hasValue()) in build()
38 if (!Age.hasValue()) in build()
41 if (!Guid.hasValue()) in build()
/external/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
DFunctionInfo.h105 return OptLineTable.hasValue() || Inline.hasValue(); in hasRichInfo()
205 if (LHS.Inline.hasValue() != RHS.Inline.hasValue())
206 return RHS.Inline.hasValue();
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/GSYM/
DFunctionInfo.h105 return OptLineTable.hasValue() || Inline.hasValue(); in hasRichInfo()
205 if (LHS.Inline.hasValue() != RHS.Inline.hasValue())
206 return RHS.Inline.hasValue();

12345678910>>...37