Home
last modified time | relevance | path

Searched refs:cons (Results 1 – 25 of 144) sorted by relevance

123456

/external/clang/test/SemaTemplate/
Dexample-typelist.cpp8 struct cons { struct
28 struct length<cons<Head, Tail> > { argument
37 typedef cons<unsigned char,
38 cons<unsigned short,
39 cons<unsigned int,
40 cons<unsigned long> > > > unsigned_inttypes;
55 typedef cons<typename reversed_tail::head,
56 typename reverse<cons<typename T::head, most_of_tail> >::type> type;
60 class reverse<cons<Head> > {
62 typedef cons<Head> type;
[all …]
/external/llvm-project/clang/test/SemaTemplate/
Dexample-typelist.cpp8 struct cons { struct
28 struct length<cons<Head, Tail> > { argument
37 typedef cons<unsigned char,
38 cons<unsigned short,
39 cons<unsigned int,
40 cons<unsigned long> > > > unsigned_inttypes;
55 typedef cons<typename reversed_tail::head,
56 typename reverse<cons<typename T::head, most_of_tail> >::type> type;
60 class reverse<cons<Head> > {
62 typedef cons<Head> type;
[all …]
/external/python/cpython3/Lib/test/
Dtest_asdl_parser.py76 cons = ehandler.types[0]
77 self.assertIsInstance(cons, self.asdl.Constructor)
78 self.assertEqual(len(cons.fields), 3)
80 f0 = cons.fields[0]
85 f1 = cons.fields[1]
90 f2 = cons.fields[2]
113 def visitConstructor(self, cons): argument
114 for f in cons.fields:
116 self.names_with_seq.append(cons.name)
Dtest_hashlib.py206 for cons in self.hash_constructors:
207 c = cons(a, usedforsecurity=False)
226 for cons in self.hash_constructors:
227 cons(usedforsecurity=True)
228 cons(b'', usedforsecurity=True)
237 for cons in self.hash_constructors:
238 cons(usedforsecurity=False)
239 cons(b'', usedforsecurity=False)
280 for cons in self.hash_constructors:
281 h = cons(usedforsecurity=False)
[all …]
/external/python/cpython3/Parser/
Dasdl_c.py205 def visitConstructor(self, cons, depth): argument
206 if cons.fields:
208 for f in cons.fields:
210 self.emit("} %s;" % cons.name, depth)
283 def visitConstructor(self, cons, type, attrs): argument
284 args = self.get_args(cons.fields)
287 self.emit_function(cons.name, ctype, args, attrs)
381 def visitConstructor(self, cons, name): argument
641 def visitConstructor(self, cons, name): argument
642 if cons.fields:
[all …]
/external/python/cpython2/Parser/
Dasdl_c.py176 def visitConstructor(self, cons, depth): argument
177 if cons.fields:
179 for f in cons.fields:
181 self.emit("} %s;" % cons.name, depth)
252 def visitConstructor(self, cons, type, attrs): argument
253 args = self.get_args(cons.fields)
256 self.emit_function(cons.name, ctype, args, attrs)
348 def visitConstructor(self, cons, name): argument
588 def visitConstructor(self, cons, name): argument
589 self.emit("static PyTypeObject *%s_type;" % cons.name, 0)
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/extensions/
DExtensionNamespaceSupport.java83 Constructor[] cons = cl.getConstructors(); in launch() local
84 for (int i = 0; i < cons.length; i ++) in launch()
86 if (cons[i].getParameterTypes().length == m_args.length) in launch()
88 con = cons[i]; in launch()
/external/cldr/tools/java/org/unicode/cldr/util/data/transforms/
Dinternal_baseEnglishToIpa.txt9 $cons = [bcdfghjklmnpqrstvxz ð ŋ ʃ ʒ θ] ;
26 $no_syllable = $nletter $cons* ;
29 $final_ersd = $cons? e [sdr]? $nletter ;
32 $final_ing = $cons? ing $nletter;
54 $cons { re } $nletter > ər ; # theatre
55 $cons { le } $nletter > əl ; # able
61 $cons { les } $nletter > əlz ; # battles
62 $cons { res } $nletter > ərz ; # theatres
63 #$cons { le } [rd] $nletter > əl ; # battler battled
64 #$cons { re } [rd] $nletter > ər ; # theatrer, theatred
[all …]
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_build_ast.c5737 struct cil_constrain *cons; in test_cil_gen_constrain_expr_stack_eq2_t1type() local
5738 cil_constrain_init(&cons); in test_cil_gen_constrain_expr_stack_eq2_t1type()
5740 cil_classpermset_init(&cons->classpermset); in test_cil_gen_constrain_expr_stack_eq2_t1type()
5741 cil_fill_classpermset(parse_current->next->cl_head, cons->classpermset); in test_cil_gen_constrain_expr_stack_eq2_t1type()
5743 int rc = cil_gen_expr_stack(parse_current->next->next, CIL_MLSCONSTRAIN, &cons->expr); in test_cil_gen_constrain_expr_stack_eq2_t1type()
5763 struct cil_constrain *cons; in test_cil_gen_constrain_expr_stack_eq2_t1t1_neg() local
5764 cil_constrain_init(&cons); in test_cil_gen_constrain_expr_stack_eq2_t1t1_neg()
5765 cil_classpermset_init(&cons->classpermset); in test_cil_gen_constrain_expr_stack_eq2_t1t1_neg()
5766 cil_fill_classpermset(parse_current->next->cl_head, cons->classpermset); in test_cil_gen_constrain_expr_stack_eq2_t1t1_neg()
5768 int rc = cil_gen_expr_stack(parse_current->next->next->next, CIL_MLSCONSTRAIN, &cons->expr); in test_cil_gen_constrain_expr_stack_eq2_t1t1_neg()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/
DConstructorDeclarationTest.java11 ConstructorDeclaration cons = new ConstructorDeclaration("Cons"); in acceptsSuper() local
12 cons.createBody().addStatement("super();"); in acceptsSuper()
16 "}", EOL), cons.toString()); in acceptsSuper()
/external/javassist/src/main/javassist/
DCtNewWrappedConstructor.java38 CtConstructor cons = new CtConstructor(parameterTypes, declaring); in wrapped() local
39 cons.setExceptionTypes(exceptionTypes); in wrapped()
43 cons.getMethodInfo2().setCodeAttribute(code.toCodeAttribute()); in wrapped()
45 return cons; in wrapped()
DCtMember.java94 void addConstructor(CtMember cons) { in addConstructor() argument
95 cons.next = consTail.next; in addConstructor()
96 consTail.next = cons; in addConstructor()
98 fieldTail = cons; in addConstructor()
100 consTail = cons; in addConstructor()
DCtNewClass.java100 CtConstructor cons in inheritAllConstructors() local
103 cons.setModifiers(mod & (Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE)); in inheritAllConstructors()
104 addConstructor(cons); in inheritAllConstructors()
DCtNewConstructor.java140 CtConstructor cons = new CtConstructor((CtClass[])null, declaring); in defaultConstructor() local
156 cons.getMethodInfo2().setCodeAttribute(code.toCodeAttribute()); in defaultConstructor()
157 return cons; in defaultConstructor()
DCtClassType.java1102 CtMember cons = memCache.consHead(); in getDeclaredBehaviors() local
1104 int cnum = CtMember.Cache.count(cons, consTail); in getDeclaredBehaviors()
1111 while (cons != consTail) { in getDeclaredBehaviors()
1112 cons = cons.next(); in getDeclaredBehaviors()
1113 cb[i++] = (CtBehavior)cons; in getDeclaredBehaviors()
1127 CtMember cons = memCache.consHead(); in getConstructors() local
1131 CtMember mem = cons; in getConstructors()
1140 mem = cons; in getConstructors()
1151 private static boolean isPubCons(CtConstructor cons) { in isPubCons() argument
1152 return !Modifier.isPrivate(cons.getModifiers()) in isPubCons()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_destroy/
D3-1.c33 pthread_t prod, cons; in main() local
51 if (pthread_create(&cons, NULL, consumer, (void *)cnt) != 0) { in main()
56 if (pthread_join(prod, NULL) == 0 && pthread_join(cons, NULL) == 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
D3-1.c33 pthread_t prod, cons; in main() local
51 if (pthread_create(&cons, NULL, consumer, (void *)cnt) != 0) { in main()
56 if ((pthread_join(prod, NULL) == 0) && (pthread_join(cons, NULL) == 0)) { in main()
/external/llvm-project/clang/test/
Dcxx-sections.data523 18.9.1 [support.initlist.cons]
589 20.3.6.1 [bitset.cons]
735 20.9.3.1 [time.duration.cons]
743 20.9.4.1 [time.point.cons]
768 21.4.2 [string.cons]
812 22.3.1.2 [locale.cons]
899 23.3.1.1 [array.cons]
907 23.3.2.1 [deque.cons]
912 23.3.3.1 [forwardlist.cons]
919 23.3.4.1 [list.cons]
[all …]
/external/clang/test/
Dcxx-sections.data523 18.9.1 [support.initlist.cons]
589 20.3.6.1 [bitset.cons]
735 20.9.3.1 [time.duration.cons]
743 20.9.4.1 [time.point.cons]
768 21.4.2 [string.cons]
812 22.3.1.2 [locale.cons]
899 23.3.1.1 [array.cons]
907 23.3.2.1 [deque.cons]
912 23.3.3.1 [forwardlist.cons]
919 23.3.4.1 [list.cons]
[all …]
/external/llvm-project/clang/test/SemaCXX/
Dwarn-unused-lambda-capture.cpp70 NonTrivialConstructor cons; in test() local
71 …auto explicit_by_value_non_trivial_constructor = [cons] {}; // expected-warning{{lambda capture 'c… in test()
178 NonTrivialConstructor cons; in test_templated() local
179 …auto explicit_by_value_non_trivial_constructor = [cons] {}; // expected-warning{{lambda capture 'c… in test_templated()
/external/llvm-project/openmp/runtime/src/
Dkmp_error.cpp76 char const *cons = NULL; // Construct name. in __kmp_pragma() local
84 cons = cons_text_c[ct]; in __kmp_pragma()
99 prgm = __kmp_msg_format(kmp_i18n_fmt_Pragma, cons, file, func, line); in __kmp_pragma()
118 struct cons_data const *cons // Second construct. in __kmp_error_construct2() argument
121 char *construct2 = __kmp_pragma(cons->type, cons->ident); in __kmp_error_construct2()
301 struct cons_data cons = {NULL, ct_critical, 0, NULL}; local
309 cons = p->stack_data[index];
312 __kmp_error_construct2(kmp_i18n_msg_CnsNestingSameName, ct, ident, &cons);
/external/llvm/utils/emacs/
Dtablegen-mode.el42 (cons (concat kw "[ \n\t(]") 1)
45 (cons (concat type-kw "[ \n\t(]") 1)
127 (add-to-list 'auto-mode-alist (cons (purecopy "\\.td\\'") 'tablegen-mode))
/external/icu/icu4c/source/data/translit/
Dcy_cy_FONIPA.txt31 $cons = [
96 {($vowel+ $cons+ $vowel+ $cons*)} $end → ˈ $1; ## Polysyllabic words
97 $end $cons* {($vowel+ $cons*)} $end → ˈ $1; ## Monosyllabic words
107 yw } $cons* $end → ɨu;
109 y} $cons* $end → ɨ;
195 ([$cons w] [l ɬ r {r\u0325}]? j? w?) ˈ → ˈ $1;
/external/javassist/src/test/javassist/
DJvstTest3.java241 CtConstructor[] cons = cc.getConstructors(); in testConstructorToMethod() local
244 for (int i = 0; i < cons.length; i++) { in testConstructorToMethod()
245 CtConstructor ccons = cons[i]; in testConstructorToMethod()
263 for (int i = 0; i < cons.length; i++) in testConstructorToMethod()
264 cc2.addMethod(cons[i].toMethod("m", cc2)); in testConstructorToMethod()
606 CtConstructor[] cons = cc.getDeclaredConstructors(); in testEmptyConstructor() local
607 for (int i = 0; i < cons.length; i++) in testEmptyConstructor()
608 assertTrue("index: " + i, cons[i].isEmpty()); in testEmptyConstructor()
611 cons = cc.getDeclaredConstructors(); in testEmptyConstructor()
612 for (int i = 0; i < cons.length; i++) in testEmptyConstructor()
[all …]
DJvstTest.java189 CtConstructor[] cons = cc.getDeclaredConstructors(); in testCalleeBefore() local
191 for (int i = 0; i < cons.length; ++i) { in testCalleeBefore()
192 MethodInfo minfo = cons[i].getMethodInfo(); in testCalleeBefore()
195 if (cons[i].getParameterTypes().length == 0) { in testCalleeBefore()
206 cons[i].insertBeforeBody("{ int k = 1; counter += k; }"); in testCalleeBefore()
224 CtConstructor[] cons = cc.getDeclaredConstructors(); in testCalleeAfter() local
225 cons[0].insertAfter("{ ++p; $_ = ($r)null; }", false); in testCalleeAfter()
387 CtConstructor cons in testSetBody() local
389 cons.setBody(null); in testSetBody()
390 cc.addConstructor(cons); in testSetBody()
[all …]

123456