diff options
author | Haojian Wu <hokein@google.com> | 2018-01-31 12:56:51 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2018-01-31 12:56:51 +0000 |
commit | b018906051eefa9b47ec05e1a4725fda08c77c66 (patch) | |
tree | 61d3744e88d510e3265ca92438222e30e6d5505b /llvm/lib/CodeGen/MachineCombiner.cpp | |
parent | cc5fe73669b40d9c720eff6175af8190e84bc62d (diff) | |
download | llvm-b018906051eefa9b47ec05e1a4725fda08c77c66.zip llvm-b018906051eefa9b47ec05e1a4725fda08c77c66.tar.gz llvm-b018906051eefa9b47ec05e1a4725fda08c77c66.tar.bz2 |
[clangd] Better handling symbols defined in macros.
Summary:
For symbols defined inside macros:
* use expansion location, if the symbol is formed via macro concatenation.
* use spelling location, otherwise.
This will fix some symbols that have ill-format location (especial invalid filepath).
Reviewers: ioeric
Reviewed By: ioeric
Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits
Differential Revision: https://reviews.llvm.org/D42575
llvm-svn: 323867
Diffstat (limited to 'llvm/lib/CodeGen/MachineCombiner.cpp')
0 files changed, 0 insertions, 0 deletions