diff options
| author | Yitzhak Mandelbaum <yitzhakm@google.com> | 2020-02-26 08:14:19 -0500 |
|---|---|---|
| committer | Yitzhak Mandelbaum <yitzhakm@google.com> | 2020-02-26 09:56:48 -0500 |
| commit | 38b4516de8a4a791d17085d37f95e3cc15c359f9 (patch) | |
| tree | e41696af080689b1c81ed029dcfacc8a5e21ac55 /llvm/tools/llvm-diff/DifferenceEngine.cpp | |
| parent | 09a6b26753d739c577a92ef715c0bcedd3dc3c0d (diff) | |
| download | llvm-38b4516de8a4a791d17085d37f95e3cc15c359f9.zip llvm-38b4516de8a4a791d17085d37f95e3cc15c359f9.tar.gz llvm-38b4516de8a4a791d17085d37f95e3cc15c359f9.tar.bz2 | |
[libTooling] Add function to determine associated text of a declaration.
Summary:
Second attempt -- the first was reverted in commit 0e480b39c66143ad142f9a30d8d40e49d7d7b0ce, because of test breakages. This revision fixes the cause of the test breakages.
Original description follows:
This patch adds `getAssociatedRange` which, for a given decl, computes preceding
and trailing text that would conceptually be associated with the decl by the
reader. This includes comments, whitespace, and separators like ';'.
Reviewers: gribozavr
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D72153
Diffstat (limited to 'llvm/tools/llvm-diff/DifferenceEngine.cpp')
0 files changed, 0 insertions, 0 deletions
