Home
last modified time | relevance | path

Searched refs:spelling (Results 1 – 25 of 250) sorted by relevance

12345678910

/external/llvm-project/mlir/lib/Parser/
DToken.cpp19 SMLoc Token::getLoc() const { return SMLoc::getFromPointer(spelling.data()); } in getLoc()
22 return SMLoc::getFromPointer(spelling.data() + spelling.size()); in getEndLoc()
30 bool isHex = spelling.size() > 1 && spelling[1] == 'x'; in getUnsignedIntegerValue()
33 if (spelling.getAsInteger(isHex ? 0 : 10, result)) in getUnsignedIntegerValue()
40 Optional<uint64_t> Token::getUInt64IntegerValue(StringRef spelling) { in getUInt64IntegerValue() argument
41 bool isHex = spelling.size() > 1 && spelling[1] == 'x'; in getUInt64IntegerValue()
44 if (spelling.getAsInteger(isHex ? 0 : 10, result)) in getUInt64IntegerValue()
53 if (spelling.getAsDouble(result)) in getFloatingPointValue()
61 unsigned bitwidthStart = (spelling[0] == 'i' ? 1 : 2); in getIntTypeBitwidth()
63 if (spelling[bitwidthStart] == '0' || in getIntTypeBitwidth()
[all …]
DToken.h30 Token(Kind kind, StringRef spelling) : kind(kind), spelling(spelling) {} in Token() argument
33 StringRef getSpelling() const { return spelling; } in getSpelling()
68 static Optional<uint64_t> getUInt64IntegerValue(StringRef spelling);
119 StringRef spelling; variable
DLexer.cpp201 StringRef spelling(tokStart, curPtr - tokStart); in lexBareIdentifierOrKeyword() local
208 if ((spelling.size() > 1 && tokStart[0] == 'i' && in lexBareIdentifierOrKeyword()
209 isAllDigit(spelling.drop_front())) || in lexBareIdentifierOrKeyword()
210 ((spelling.size() > 2 && tokStart[1] == 'i' && in lexBareIdentifierOrKeyword()
212 isAllDigit(spelling.drop_front(2)))) in lexBareIdentifierOrKeyword()
213 return Token(Token::inttype, spelling); in lexBareIdentifierOrKeyword()
215 Token::Kind kind = StringSwitch<Token::Kind>(spelling) in lexBareIdentifierOrKeyword()
220 return Token(kind, spelling); in lexBareIdentifierOrKeyword()
/external/clang/bindings/python/tests/cindex/
Dtest_type.py36 assert fields[0].spelling == 'a'
41 assert fields[1].spelling == 'b'
45 assert fields[1].type.get_declaration().spelling == 'I'
47 assert fields[2].spelling == 'c'
52 assert fields[3].spelling == 'd'
57 assert fields[4].spelling == 'e'
62 assert fields[5].spelling == 'f'
67 assert fields[6].spelling == 'g'
72 assert fields[7].spelling == 'h'
110 assert fields[0].spelling == 'A'
[all …]
Dutil.py33 def get_cursor(source, spelling): argument
46 if cursor.spelling == spelling:
51 def get_cursors(source, spelling): argument
65 if cursor.spelling == spelling:
Dtest_cursor.py44 assert tu_nodes[0].spelling == 's0'
55 assert s0_nodes[0].spelling == 'a'
58 assert s0_nodes[1].spelling == 'b'
62 assert tu_nodes[1].spelling == 's1'
67 assert tu_nodes[2].spelling == 'f0'
94 if cursor.spelling == 'X':
379 assert tokens[0].spelling == 'int'
380 assert tokens[1].spelling == 'foo'
388 assert arguments[0].spelling == "i"
389 assert arguments[1].spelling == "j"
[all …]
Dtest_translation_unit.py22 assert tu.spelling == path
34 spellings = [c.spelling for c in tu.cursor.get_children()]
42 spellings = [c.spelling for c in tu.cursor.get_children()]
57 spellings = [c.spelling for c in tu.cursor.get_children()]
65 spellings = [c.spelling for c in tu.cursor.get_children()]
224 assert tokens[0].spelling == 'int'
226 assert tokens[0].spelling == 'int'
230 assert tokens[0].spelling == 'int'
Dtest_diagnostics.py12 assert (tu.diagnostics[0].spelling ==
22 assert 'incompatible' in tu.diagnostics[0].spelling
34 assert tu.diagnostics[0].spelling.startswith('use of GNU old-style')
48 assert tu.diagnostics[0].spelling.startswith('incompatible pointer to')
92 assert children[0].spelling.endswith('declared here')
/external/icu/icu4c/source/data/translit/
Ddsb_dsb_FONIPA.txt15 b\u0301 → bʲ ; # old spelling
16 bj → bʲ ; # modern spelling
34 ḿ → mʲ ; # old spelling
35 mj → mʲ ; # modern spelling
41 ṕ → pʲ ; # old spelling
42 pj → pʲ ; # modern spelling
52 ẃ → wʲ ; # old spelling
53 wj → wʲ ; # modern spelling
/external/llvm-project/clang/bindings/python/tests/cindex/
Dutil.py43 def get_cursor(source, spelling): argument
56 if cursor.spelling == spelling:
61 def get_cursors(source, spelling): argument
75 if cursor.spelling == spelling:
Dtest_type.py51 self.assertEqual(fields[0].spelling, 'a')
59 self.assertEqual(fields[1].spelling, 'b')
63 self.assertEqual(fields[1].type.get_declaration().spelling, 'I')
68 self.assertEqual(fields[2].spelling, 'c')
76 self.assertEqual(fields[3].spelling, 'd')
84 self.assertEqual(fields[4].spelling, 'e')
92 self.assertEqual(fields[5].spelling, 'f')
100 self.assertEqual(fields[6].spelling, 'g')
108 self.assertEqual(fields[7].spelling, 'h')
142 self.assertEqual(fields[0].spelling, 'A')
[all …]
Dtest_cursor.py69 self.assertEqual(tu_nodes[0].spelling, 's0')
80 self.assertEqual(s0_nodes[0].spelling, 'a')
83 self.assertEqual(s0_nodes[1].spelling, 'b')
87 self.assertEqual(tu_nodes[1].spelling, 's1')
92 self.assertEqual(tu_nodes[2].spelling, 'f0')
119 if cursor.spelling == 'X':
480 self.assertEqual(tokens[0].spelling, 'int')
481 self.assertEqual(tokens[1].spelling, 'foo')
495 self.assertEqual(len(tokens), 4, [t.spelling for t in tokens])
496 self.assertEqual(tokens[0].spelling, '=')
[all …]
Dtest_translation_unit.py57 self.assertEqual(tu.spelling, path)
69 spellings = [c.spelling for c in tu.cursor.get_children()]
77 spellings = [c.spelling for c in tu.cursor.get_children()]
92 spellings = [c.spelling for c in tu.cursor.get_children()]
103 spellings = [c.spelling for c in tu.cursor.get_children()]
118 spellings = [c.spelling for c in tu.cursor.get_children()]
311 self.assertEqual(tokens[0].spelling, 'int')
313 self.assertEqual(tokens[0].spelling, 'int')
317 self.assertEqual(tokens[0].spelling, 'int')
Dtest_diagnostics.py22 self.assertEqual(tu.diagnostics[0].spelling,
32 self.assertIn('incompatible', tu.diagnostics[0].spelling)
44 self.assertRegex(tu.diagnostics[0].spelling,
59 self.assertRegex(tu.diagnostics[0].spelling,
100 self.assertRegex(children[0].spelling,
/external/auto/value/src/main/java/com/google/auto/value/processor/
DTypeSimplifier.java60 final String spelling; field in TypeSimplifier.Spelling
63 Spelling(String spelling, boolean importIt) { in Spelling() argument
64 this.spelling = spelling; in Spelling()
127 return imports.get(topString).spelling + suffix; in simplifiedClassName()
220 String spelling; in findImports() local
223 spelling = fullName; in findImports()
226 spelling = javaLangSpelling(elementUtils, codePackageName, typeElement); in findImports()
229 spelling = fullName.substring(pkg.isEmpty() ? 0 : pkg.length() + 1); in findImports()
232 spelling = simpleName; in findImports()
234 imports.put(fullName, new Spelling(spelling, importIt)); in findImports()
/external/llvm-project/clang/include/clang/AST/
DCommentHTMLTags.td1 class Tag<string spelling> {
2 string Spelling = spelling;
60 class Attribute<string spelling> {
61 string Spelling = spelling;
64 class EventHandlerContentAttribute<string spelling> : Attribute<spelling> {
/external/clang/include/clang/AST/
DCommentHTMLTags.td1 class Tag<string spelling> {
2 string Spelling = spelling;
60 class Attribute<string spelling> {
61 string Spelling = spelling;
64 class EventHandlerContentAttribute<string spelling> : Attribute<spelling> {
/external/catch2/include/internal/
Dcatch_list.cpp81 void TagInfo::add( std::string const& spelling ) { in add() argument
83 spellings.insert( spelling ); in add()
88 for (auto const& spelling : spellings) { in all() local
90 size += spelling.size() + 2; in all()
94 for (auto const& spelling : spellings) { in all() local
96 out += spelling; in all()
/external/icu/tools/icu4c_srcgen/
Dgenutil.py346 diag.location.column, diag.spelling)
364 if decl.spelling in self.seen_functions:
383 visible = child.spelling == 'default'
404 cursor.spelling,
410 name = cursor.spelling
411 result_type = cursor.result_type.spelling
415 params.append((arg.type.spelling, arg.spelling))
442 return decl.spelling in self.allowlisted_function_names
452 return decl.spelling not in self.blocklisted_function_names
/external/python/cryptography/docs/
Dconf.py30 from sphinxcontrib import spelling
32 spelling = None variable
55 if spelling is not None:
/external/rust/crates/bindgen/src/ir/
Dobjc.rs131 let name = cursor.spelling(); in from_ty()
144 interface.name = c.spelling(); in from_ty()
145 interface.category = Some(cursor.spelling()); in from_ty()
150 let needle = format!("P{}", c.spelling()); in from_ty()
177 let name = c.spelling(); in from_ty()
186 let name = c.spelling(); in from_ty()
Dfunction.rs332 let name = arg_cur.map(|a| a.spelling()).and_then(|name| { in args_from_ty_and_cursor()
380 let spelling = cursor.spelling(); in from_ty() localVariable
383 let is_operator = |spelling: &str| { in from_ty()
384 spelling.starts_with("operator") && in from_ty()
385 !clang::is_valid_identifier(spelling) in from_ty()
387 if is_operator(&spelling) { in from_ty()
395 spelling.contains('<') in from_ty()
422 let name = c.spelling(); in from_ty()
614 let mut name = cursor.spelling(); in parse()
/external/rust/crates/bindgen/src/
Dclang.rs30 self.spelling(), in fmt()
58 pub fn spelling(&self) -> String { in spelling() method
557 t.spelling() == name.as_bytes() in has_attr()
789 spelling: CXString, field
800 pub fn spelling(&self) -> &[u8] { in spelling() method
802 CStr::from_ptr(clang_getCString(self.spelling) as *const _) in spelling()
827 raw: self.spelling().to_vec().into_boxed_slice(), in as_cexpr_token()
834 unsafe { clang_disposeString(self.spelling) } in drop()
851 let spelling = clang_getTokenSpelling(self.tu, *raw); in next() localVariable
856 spelling, in next()
[all …]
/external/llvm-project/polly/
D.arclint20 "spelling": {
22 "type": "spelling"
/external/clang/bindings/python/examples/cindex/
Dcindex-dump.py20 'spelling' : diag.spelling,
48 'spelling' : node.spelling,

12345678910