diff options
author | Jannick Kremer <jannick.kremer@mailbox.org> | 2025-10-13 22:56:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-13 13:56:54 +0000 |
commit | 38a52828fa60f007f936f2ba752016553a7a550b (patch) | |
tree | b986504b17b72407df34f19b49a5c207ff8866b5 /clang/lib/Serialization/ModuleCache.cpp | |
parent | 885da07a9fb169f45ba19c2ff20c7b7fccaa27c5 (diff) | |
download | llvm-38a52828fa60f007f936f2ba752016553a7a550b.zip llvm-38a52828fa60f007f936f2ba752016553a7a550b.tar.gz llvm-38a52828fa60f007f936f2ba752016553a7a550b.tar.bz2 |
[libclang/python] Return None instead of null cursors from Token.cursor (#163183)
Since https://github.com/llvm/llvm-project/pull/138103 , the `Cursor`
class throws an error when any of its methods is called on a null
cursor. Simultaneously, we adapted all methods to return `None` instead
of a null cursor, so users should not encounter these. We have
overlooked one way to end up with null cursors, namely the
`Token.cursor` property, which may return null cursors under some
circumstances.
Fixes #163180
Diffstat (limited to 'clang/lib/Serialization/ModuleCache.cpp')
0 files changed, 0 insertions, 0 deletions