| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _cursor.py | 67 def make_cxcursor_and_range_callback(cursor: CursorLike, parsing_error_handler: Optional[Callable[[… 111 ctypes.py_object(cursor), 136 def __init__(self, cursor: CursorLike, idx: int = -12345) -> None: 151 if isinstance(cursor, Cursor): 152 super().__init__(cursor._cache) 153 self.__cursor = cursor.clang_cursor() 154 self.extent = cursor.extent 155 self.name = cursor.name 156 self.typename = cursor.typename 157 self.derivedtypename = cursor.derivedtypename [all …]
|
| H A D | _util.py | 18 def no_system_includes(cursor: CursorLike, level: IndentLevel, **kwargs) -> bool: 23 cursor.location.file is not None and not cursor.location.file.name.startswith('/usr/include') 26 def only_files(cursor: CursorLike, level: IndentLevel, **kwargs) -> bool: 31 return level != 1 or (cursor.location.file is not None and cursor.location.file.name == filename) 72 def view_ast_from_cursor(cursor: CursorLike, pred: Callable[..., bool] = verbose_print, level: Inde… 80 if pred(cursor, level, **kwargs): 81 ret_list.append(level.view(cursor.kind, cursor.spelling, cursor.displayname, cursor.location)) 82 if check_valid_type(cursor.type): 83 ret_list.extend(view_type(cursor.type, level + 1, 'type:')) 84 ret_list.extend(view_type(cursor.type.get_canonical(), level + 1, 'canonical type:')) [all …]
|
| H A D | _linter.py | 49 def add_diagnostic(self, cursor: Cursor, diagnostic: Diagnostic) -> None: 59 filename = cursor.get_file() 73 cursor_id = cursor.hash 320 cursor = tu.cursor 322 for possible_parent in cursor.get_children(): 448 def cursor_is_public(cursor: CursorLike) -> bool: 449 if cursor.storage_class == clx.StorageClass.EXTERN or cursor.spelling == 'main': 452 for child in cursor.get_children(): 689 tu_cursor = Cursor.cast(tu.cursor) 700 def add_diagnostic_from_cursor(self, cursor: Cursor, diagnostic: Diagnostic) -> None: [all …]
|
| H A D | _patch.py | 122 def from_cursor(cls, cursor: CursorLike, value: str, **kwargs) -> Patch: 139 return cls(cursor.extent, value, **kwargs)
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/ |
| H A D | _docs.py | 18 def _do_docstring_check(DocStringType: type[PetscDocStringImpl], linter: Linter, cursor: Cursor) ->… 30 docstring = DocStringType(linter, cursor) 34 section.check(linter, cursor, docstring) 53 def check_petsc_function_docstring(linter: Linter, cursor: Cursor) -> None: 63 return _do_docstring_check(PetscFunctionDocString, linter, cursor) 79 def check_petsc_enum_docstring(linter: Linter, cursor: Cursor) -> None: 89 return _do_docstring_check(PetscEnumDocString, linter, cursor)
|
| H A D | _util.py | 465 …i for i, t in enumerate(token_group) if t.cursor.type.get_canonical().kind in clx_function_type_ki… 477 iterator = (x.cursor for x in itertools.takewhile(lambda_expr, token_group[idx + 2:])) 483 assert Cursor.get_name_from_cursor(token_group[0].cursor) == obj.name 485 cursor_gen = token_group[[x.spelling for x in token_group].index('=')].cursor.walk_preorder() 630 for cursor in trace: 632 … f'via {Cursor.get_formatted_blurb_from_cursor(cursor).rstrip()}', location=cursor.extent.start
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_section.py | 74 def __init__(self, cursor: Cursor) -> None: 82 super().__init__(cursor) 131 inspector = self.Inspector(ds.cursor) 136 …def _check_macro_synopsis(self, linter: Linter, cursor: Cursor, docstring: PetscDocStringImpl, exp… 162 with open(cursor.get_file()) as fh: 173 f'{c.derivedtypename} {c.name}' for c in linter.get_argument_cursors(cursor) 194 cursor=cursor 254 cursor_spelling = cursor.spelling 271 def check(self, linter: Linter, cursor: Cursor, docstring: PetscDocStringImpl) -> None: 283 super().check(linter, cursor, docstring) [all …]
|
| H A D | _doc_str.py | 464 cursor: Cursor 472 def __init__(self, linter: Linter, cursor: Cursor, indent: int = 2) -> None: 486 self.cursor = cursor 487 self.raw, self.extent = self._get_sanitized_comment_and_range_from_cursor(self.cursor) 499 def _is_valid_docstring(cls, cursor: Cursor, raw: str, doc_extent: SourceRange) -> bool: 531 if cursor.extent < doc_extent: 549 if cursor.name.casefold().endswith(('_private', '_internal')): 553 has_internal_linkage, _, _ = cursor.has_internal_linkage() 557 def _get_sanitized_comment_and_range_from_cursor(cls, cursor: Cursor) -> tuple[str, SourceRange]: 577 raw, clx_extent = cursor.get_comment_and_range() [all …]
|
| H A D | _doc_section_base.py | 520 docstring.cursor.translation_unit, prevline, 1, prevline, -1 603 def check(self, linter: Linter, cursor: Cursor, docstring: PetscDocStringImpl) -> None: 664 def __init__(self, cursor: Cursor) -> None: 665 self.cursor_name = cursor.name 727 …def _check_symbol_matches_synopsis_name(self: SynopsisImpl, docstring: PetscDocStringImpl, cursor:… 752 if symbol != cursor.name: 753 if len(difflib.get_close_matches(symbol, [cursor.name], n=1)): 755 patch = Patch(loc, cursor.name) 780 …def _check_blurb_length(self: SynopsisImpl, docstring: PetscDocStringImpl, cursor: Cursor, blurb_i… 805 …def _syn_common_checks(self: SynopsisImpl, linter: Linter, cursor: Cursor, docstring: PetscDocStri… [all …]
|
| /petsc/src/sys/tests/ |
| H A D | ex63.c | 78 PetscInt64 *local_set, *cursor, *bootstrap_primes, *truth; in test_sieve() local 108 cursor = &local_set[1]; in test_sieve() 110 *cursor = bootstrap_primes[ii + 1]; in test_sieve() 111 cursor++; in test_sieve() 115 *cursor = ii; in test_sieve() 116 cursor++; in test_sieve()
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/ |
| H A D | README.rst | 6 (cursor) of specific kinds, e.g. function calls, type definitions, function definitions, 7 etc. Once it arrives at a cursor of matching type, it checks whether it has a handler 8 configured for that cursor. If it does, it will call the handler (which may attach some 129 - func: This will be a cursor corresponding to a detected call to ``MyCheckingMacro()`` 130 - parent: This will be the cursor corresponding to the "parent" function of ``MyCheckingMacro()`` 143 Then ``parent`` will be the cursor for ``(1)``, and ``func`` will be the cursor for
|
| /petsc/lib/petsc/bin/maint/abi-compliance-checker/modules/Internals/Styles/ |
| H A D | SymbolsList.css | 24 cursor:pointer; 57 cursor:text;
|
| H A D | Report.css | 25 cursor:pointer; 44 cursor:pointer; 50 cursor:pointer; 181 cursor:text;
|
| /petsc/src/sys/classes/draw/impls/x/ |
| H A D | xops.c | 444 Cursor cursor; in PetscDrawGetMouseButton_X() local 462 cursor = XCreateFontCursor(win->disp, XC_hand2); in PetscDrawGetMouseButton_X() 463 PetscCheck(cursor, PETSC_COMM_SELF, PETSC_ERR_LIB, "Unable to create X cursor"); in PetscDrawGetMouseButton_X() 464 XDefineCursor(win->disp, win->win, cursor); in PetscDrawGetMouseButton_X() 476 XFreeCursor(win->disp, cursor); in PetscDrawGetMouseButton_X()
|
| H A D | xinit.c | 173 window_attributes.cursor = None; in PetscDrawXiDisplayWindow()
|
| /petsc/src/binding/petsc4py/conf/ |
| H A D | epydoc.cfg | 24 # If True, don't try to use colors or cursor control when doing
|
| /petsc/src/sys/tests/linter/output/ |
| H A D | testValidFunctionDocStrings.patch | 408 testPredeclarationCursorIgnored - the cursor above this will be ignored!
|
| /petsc/doc/manual/ |
| H A D | other.md | 993 collects the errors and warnings in a "quickfix" window. Move the cursor to
|