llvm-project
9d533e97 - [clang] Fix crash in getCursorRawComments. (#199328)

Commit
7 days ago
[clang] Fix crash in getCursorRawComments. (#199328) Fix a regression introduced in PR #198452 where querying raw comments on invalid cursors caused a segmentation fault due to unconditional ASTContext lookup. Adding an early exit for unsupported cursor kinds at the top of getCursorRawComment safely avoids resolving the context on invalid cursors with null translation units.
Parents
Loading