[all-commits] [llvm/llvm-project] a2f735: [clangd] Dont run raw-lexer for OOB source locations
kadir çetinkaya via All-commits
all-commits at lists.llvm.org
Thu May 25 00:43:20 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a2f7352f3e809cb1b267e769d00ea84e4ef46bf0
https://github.com/llvm/llvm-project/commit/a2f7352f3e809cb1b267e769d00ea84e4ef46bf0
Author: Kadir Cetinkaya <kadircet at google.com>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M clang-tools-extra/clangd/Diagnostics.cpp
M clang-tools-extra/clangd/unittests/PreambleTests.cpp
Log Message:
-----------
[clangd] Dont run raw-lexer for OOB source locations
We can get stale source locations from preamble, make sure we don't
access those locations without checking first.
Fixes https://github.com/clangd/clangd/issues/1636.
Differential Revision: https://reviews.llvm.org/D151321
More information about the All-commits
mailing list