aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorEric Li <li.zhe.hua@gmail.com>2024-04-05 13:00:01 -0400
committerGitHub <noreply@github.com>2024-04-05 13:00:01 -0400
commit345c4822e4db2aa734b9f8a0b106308288ddc702 (patch)
tree58dcfc0757c8d2aeccd46d425acca18603e502fc /llvm/lib/Support/CommandLine.cpp
parentf0724f0704299b49d42a48099b97c4cf0a55b155 (diff)
downloadllvm-345c4822e4db2aa734b9f8a0b106308288ddc702.zip
llvm-345c4822e4db2aa734b9f8a0b106308288ddc702.tar.gz
llvm-345c4822e4db2aa734b9f8a0b106308288ddc702.tar.bz2
[libTooling] Fix `getFileRangeForEdit` for inner nested template types (#87673)
When there is `>>` in source from the right brackets of a nested template, the end location of the inner template points into a scratch space with a single `>` token. This prevents the lexer from seeing the `>>` token in the original source. However, this causes the range to appear to be partially in a macro, and is problematic if we are trying to avoid ranges with any macro expansions. This change detects these split tokens in token ranges, converting it to the corresponding character range without the expansion.
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions