diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2019-12-10 10:08:39 +0100 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2019-12-10 10:22:43 +0100 |
commit | b63c35ebf76ca0ac89405aeadee2b98a0e91e05e (patch) | |
tree | 4c5faffa7550bd0c1b6c8e280f331b0a246aa709 /lldb/source/Commands/CommandObjectGUI.cpp | |
parent | dbf520f617440d62ca46f64cdc41159945911902 (diff) | |
download | llvm-b63c35ebf76ca0ac89405aeadee2b98a0e91e05e.zip llvm-b63c35ebf76ca0ac89405aeadee2b98a0e91e05e.tar.gz llvm-b63c35ebf76ca0ac89405aeadee2b98a0e91e05e.tar.bz2 |
[clangd] Simplify code using findName. NFC
`findName` was always used in conjuction with `spellingLocIfSpelled`.
This patch replaces patterns of the form:
spellingLocIfSpelled(findName(&ND), SM)
With a new helper function:
nameLocation(ND, SM)
And removes `spellingLocIfSpelled` and `findName`. Both are never used
anywhere else and the latter is an equivalent of `Decl::getLocation` if
we ever need it again.
Diffstat (limited to 'lldb/source/Commands/CommandObjectGUI.cpp')
0 files changed, 0 insertions, 0 deletions