diff options
author | Eric Li <li.zhe.hua@gmail.com> | 2022-12-08 17:01:53 -0500 |
---|---|---|
committer | Eric Li <li.zhe.hua@gmail.com> | 2022-12-08 22:40:10 -0500 |
commit | a78d4b5ba716d88a90b905c261f53e74e67a7367 (patch) | |
tree | 6e5ab05cc243c2976045af256880e2b81a6373dd /llvm/lib/Object/COFFObjectFile.cpp | |
parent | 3552f0a931dcbdd53ad0f80697fc75f672c04f49 (diff) | |
download | llvm-a78d4b5ba716d88a90b905c261f53e74e67a7367.zip llvm-a78d4b5ba716d88a90b905c261f53e74e67a7367.tar.gz llvm-a78d4b5ba716d88a90b905c261f53e74e67a7367.tar.bz2 |
[libTooling] Add flag to getRangeForEdit to ignore macro expansions
This commit resolves the FIXME around the behavior of
`Lexer::makeFileCharRange` that `getRangeForEdit` inherits around
source locations in macro expansions.
We add a flag to `getRangeForEdit` that allows a caller to disable the
behavior, and instead uses the spelling location instead, with checks
to ensure that the source locations are not within a macro definition.
Differential Revision: https://reviews.llvm.org/D139676
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions