================
@@ -1763,19 +1799,22 @@ def get_usr(self):
another translation unit."""
return _CXString.from_result(conf.lib.clang_getCursorUSR(self))
- def get_included_file(self):
+ @cursor_null_guard
+ def get_included_file(self) -> File:
"""Returns the File that is included by the current inclusion
cursor."""
assert self.kind == CursorKind.INCLUSION_DIRECTIVE
return File.from_result(conf.lib.clang_getIncludedFile(self), self)
@property
- def kind(self):
+ @cursor_null_guard
----------------
Endilll wrote:
Nevermind, I misread the diff as if you replaced `@property` with
`@cursor_null_guard`, but now I see that you preserved the original decorator.
https://github.com/llvm/llvm-project/pull/138103
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits