mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 08:26:31 +00:00

Add libclang function `clang_isBeforeInTranslationUnit` to allow checking the order between two source locations. Simplify the `SourceRange.__contains__` implementation using this new function. Add tests for `SourceRange.__contains__` and the newly added functionality. Fixes #22617 Fixes #52827