| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _src_pos.py | 168 return func(SourceRange.from_locations(self, right), *args, **kwargs) 185 return self._get_src(SourceRange.raw, *args, **kwargs) 202 return self._get_src(SourceRange.formatted, *args, **kwargs) 235 class SourceRange(AttributeCache): class 239 source_range: clx.SourceRange 266 if isinstance(source_range, SourceRange): 303 if isinstance(other, SourceRange): 305 elif isinstance(other, clx.SourceRange): 317 def contains(loc: Union[SourceRange, SourceLocation]) -> bool: argument 325 if isinstance(other, clx.SourceRange): [all …]
|
| H A D | _cursor.py | 14 from ._src_pos import SourceRange, SourceLocation 49 ctypes.c_uint, ctypes.py_object, clx.Cursor, clx.SourceRange 89 …def visitor(ctx: Any, raw_clx_cursor: clx.Cursor, src_range: clx.SourceRange) -> CXChildVisitResul… argument 130 extent: SourceRange 162 self.extent = SourceRange.cast(cursor.extent) 468 return True, SourceRange(child.extent).raw(tight=True), child 525 extent = SourceRange.from_locations(begin, fnline) 646 def get_comment_and_range_from_cursor(cls, cursor: CursorLike) -> tuple[str, clx.SourceRange]: 661 … cursor_range = get_clang_function('clang_Cursor_getCommentRange', [clx.Cursor], clx.SourceRange)( 669 def get_comment_and_range(self) -> tuple[str, clx.SourceRange]:
|
| H A D | _patch.py | 10 from ._src_pos import SourceRange 17 extent: SourceRange 20 def __init__(self, value: str, extent: SourceRange, ctxlines: int) -> None: argument 94 extent: SourceRange 113 self.extent = SourceRange.cast(src_range)
|
| H A D | __init__.py | 11 from ._src_pos import SourceRange, SourceLocation
|
| H A D | _diag.py | 19 from ._src_pos import SourceLocation, SourceRange 522 src_range = SourceRange.cast(src_range)
|
| H A D | _linter.py | 20 from ._src_pos import SourceLocation, SourceRange 229 patch = Patch(SourceRange.from_locations(start, end), '') 648 patch=Patch(SourceRange.from_locations(start, start), 'static ')
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_section_base.py | 19 from .._src_pos import SourceRange 139 def check(self, docstring: PetscDocStringImpl, section: SectionImpl, loc: SourceRange) -> None: argument 216 extent: SourceRange 217 _lines: list[tuple[SourceRange, str, Verdict]] 219 seen_headers: dict[str, list[SourceRange]] 225 …LineInspector: TypeAlias = collections.abc.Callable[['PetscDocStringImpl', SourceRange, str, 'Verd… 299 def lines(self, headings_only: bool = False) -> list[tuple[SourceRange, str, Verdict]]: 316 …def consume(self, data: Collection[tuple[SourceRange, str, Verdict]]) -> list[tuple[SourceRange, s… argument 332 self.extent = SourceRange.from_locations(self.lines()[0][0].start, self.lines()[-1][0].end) 464 …nter, docstring: PetscDocStringImpl, headings: Optional[Sequence[tuple[SourceRange, str, Verdict]]… argument [all …]
|
| H A D | _doc_section.py | 15 from .._src_pos import SourceRange 51 SynopsisItemType: TypeAlias = List[Tuple[SourceRange, str]] 86 … def __call__(self, ds: PetscDocStringImpl, loc: SourceRange, line: str, verdict: Verdict) -> None: argument 320 enum_params: List[Tuple[SourceRange, str, Verdict]] 327 … def __call__(self, ds: PetscDocStringImpl, loc: SourceRange, line: str, verdict: Verdict) -> None: argument 513 … crange=SourceRange.from_locations(arg_cursors[0].extent.start, arg_cursors[-1].extent.end) 608 … PetscDocStringImpl, visitor: FunctionParameterList.ParamVisitor) -> list[tuple[str, SourceRange]]: 666 …cStringImpl, arg_cursors: Sequence[Cursor], not_found: list[tuple[str, SourceRange]], args_left: l… argument 1049 …def __do_check_valid_level_spelling(self, docstring: PetscDocStringImpl, loc: SourceRange, level_n… argument 1064 def make_sub_loc(loc: SourceRange, substr: str) -> SourceRange: argument [all …]
|
| H A D | _doc_str.py | 22 from .._src_pos import SourceRange, SourceLocation 466 extent: SourceRange 499 def _is_valid_docstring(cls, cursor: Cursor, raw: str, doc_extent: SourceRange) -> bool: argument 557 def _get_sanitized_comment_and_range_from_cursor(cls, cursor: Cursor) -> tuple[str, SourceRange]: 578 extent = SourceRange.cast(clx_extent, tu=cursor.translation_unit) 664 def make_source_range(self, token: str, string: str, lineno: int, offset: int = 0) -> SourceRange: 691 …return SourceRange.from_positions(self.cursor.translation_unit, lineno, col_begin, lineno, col_end) 693 …d: DiagnosticKind, diag_flag: str, msg: str, src_range: Optional[Union[SourceRange, Cursor]], patc… argument 718 src_range = SourceRange.cast(src_range) 817 linkage_extent = SourceRange.cast(linkage_cursor.extent) [all …]
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/ |
| H A D | _typing.py | 57 from .classes._src_pos import SourceLocation, SourceRange 70 SourceRangeLike: TypeAlias = Union[clx.SourceRange, SourceRange]
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/ |
| H A D | _util.py | 17 from ..classes._src_pos import SourceRange, SourceLocation 462 line_range = SourceRange.from_locations(line_start, line_end).source_range
|