Home | History | Annotate | Download | only in tools

Lines Matching defs:Cursor

20 from clang.cindex import Cursor
99 It also overrides the cursor property of the base class. Because the one
101 hold useful information. The cursor in this class can be set by calling
107 cursor=None):
112 self._cursor = cursor
133 def cursor(self):
135 self._cursor = clang.cindex.Token.cursor
138 @cursor.setter
139 def cursor(self, new_cursor):
207 updates the cursor property in each token after parsing, by calling
224 The cursor property in a clang Token doesn't provide enough
228 token's cursor. In this function it passes all the available tokens
235 conf.lib.clang_tokenize(self._tu, self._tu.cursor.extent,
246 cursors = (Cursor * count)()
247 cursors_memory = ctypes.cast(cursors, ctypes.POINTER(Cursor))
262 cursor=cursors[i])
1084 elif t.id == ',' and t.cursor.kind == CursorKind.ENUM_DECL:
1469 extent = tokens[i].cursor.extent
1474 print ' ' * 2, t.id, t.kind, t.cursor.kind
1475 if (detect_change and t.cursor.extent != extent and
1476 t.cursor.kind == CursorKind.PREPROCESSING_DIRECTIVE):
1487 if tokens[i].cursor.kind == CursorKind.PREPROCESSING_DIRECTIVE:
1503 cursor = t.cursor
1506 print ("%d: Processing [%s], kind=[%s], cursor=[%s], "
1508 cursor.kind,
1509 self._short_extent(cursor.extent)))
1511 if cursor.kind == CursorKind.PREPROCESSING_DIRECTIVE:
1527 extent = tokens[i].cursor.extent
1555 elif cursor.kind == CursorKind.INCLUSION_DIRECTIVE:
1565 elif cursor.kind == CursorKind.VAR_DECL:
1573 elif cursor.kind == CursorKind.FUNCTION_DECL: