|
162 | 162 | trailing-type-specifier -> |
163 | 163 | rest-of-trailing |
164 | 164 | ("class" | "struct" | "union" | "typename") rest-of-trailing |
165 | | - build-in -> "char" | "bool" | etc. |
| 165 | + built-in -> "char" | "bool" | etc. |
166 | 166 | decltype-specifier |
167 | 167 | rest-of-trailing -> (with some simplification) |
168 | 168 | "::"[opt] list-of-elements-separated-by-:: |
@@ -1709,7 +1709,7 @@ def get_id(self, version: int) -> str: |
1709 | 1709 | else: |
1710 | 1710 | ids = _id_operator_v2 |
1711 | 1711 | if self.op not in ids: |
1712 | | - raise Exception('Internal error: Build-in operator "%s" can not ' |
| 1712 | + raise Exception('Internal error: Built-in operator "%s" can not ' |
1713 | 1713 | 'be mapped to an id.' % self.op) |
1714 | 1714 | return ids[self.op] |
1715 | 1715 |
|
@@ -2479,7 +2479,7 @@ def get_ptr_suffix_id(self, version: int) -> str: # only the array specifiers |
2479 | 2479 | def get_type_id(self, version: int, returnTypeId: str) -> str: |
2480 | 2480 | assert version >= 2 |
2481 | 2481 | res = [] |
2482 | | - # TOOD: can we actually have both array ops and paramQual? |
| 2482 | + # TODO: can we actually have both array ops and paramQual? |
2483 | 2483 | res.append(self.get_ptr_suffix_id(version)) |
2484 | 2484 | if self.paramQual: |
2485 | 2485 | res.append(self.get_modifiers_id(version)) |
@@ -5217,7 +5217,7 @@ def _parse_initializer_list(self, name: str, open: str, close: str |
5217 | 5217 | ) -> Tuple[List[Union[ASTExpression, |
5218 | 5218 | ASTBracedInitList]], |
5219 | 5219 | bool]: |
5220 | | - # Parse open and close with the actual initializer-list inbetween |
| 5220 | + # Parse open and close with the actual initializer-list in between |
5221 | 5221 | # -> initializer-clause '...'[opt] |
5222 | 5222 | # | initializer-list ',' initializer-clause '...'[opt] |
5223 | 5223 | self.skip_ws() |
@@ -6358,7 +6358,7 @@ def _parse_type(self, named: Union[bool, str], outer: str = None) -> ASTType: |
6358 | 6358 | if outer in ('type', 'function'): |
6359 | 6359 | # We allow type objects to just be a name. |
6360 | 6360 | # Some functions don't have normal return types: constructors, |
6361 | | - # destrutors, cast operators |
| 6361 | + # destructors, cast operators |
6362 | 6362 | prevErrors = [] |
6363 | 6363 | startPos = self.pos |
6364 | 6364 | # first try without the type |
@@ -6562,7 +6562,7 @@ def _parse_template_paramter(self) -> ASTTemplateParam: |
6562 | 6562 | self.fail("Expected 'typename' or 'class' after " |
6563 | 6563 | "template template parameter list.") |
6564 | 6564 | else: |
6565 | | - self.fail("Expected 'typename' or 'class' in tbe " |
| 6565 | + self.fail("Expected 'typename' or 'class' in the " |
6566 | 6566 | "beginning of template type parameter.") |
6567 | 6567 | self.skip_ws() |
6568 | 6568 | parameterPack = self.skip_string('...') |
@@ -7282,7 +7282,7 @@ class CPPNamespacePopObject(SphinxDirective): |
7282 | 7282 | def run(self) -> List[Node]: |
7283 | 7283 | stack = self.env.temp_data.get('cpp:namespace_stack', None) |
7284 | 7284 | if not stack or len(stack) == 0: |
7285 | | - logger.warning("C++ namespace pop on empty stack. Defaulting to gobal scope.", |
| 7285 | + logger.warning("C++ namespace pop on empty stack. Defaulting to global scope.", |
7286 | 7286 | location=self.get_location()) |
7287 | 7287 | stack = [] |
7288 | 7288 | else: |
|
0 commit comments