diff options
| author | CJ Johnson <johnsoncj@google.com> | 2021-12-09 17:28:07 +0000 |
|---|---|---|
| committer | Yitzhak Mandelbaum <yitzhakm@google.com> | 2021-12-09 17:41:12 +0000 |
| commit | a1968d5341d7b1ec7889955f230d0375548d165b (patch) | |
| tree | 96251a7c0e9fa4f2c779aee244630c8baa142979 /llvm/lib/Transforms/Utils/LoopPeel.cpp | |
| parent | ccdd5bb2c2a80b9664e8f2e9e1abd80769f5c5a1 (diff) | |
| download | llvm-a1968d5341d7b1ec7889955f230d0375548d165b.zip llvm-a1968d5341d7b1ec7889955f230d0375548d165b.tar.gz llvm-a1968d5341d7b1ec7889955f230d0375548d165b.tar.bz2 | |
Prevent abseil-cleanup-ctad check from stomping on surrounding context
This change applies two fixes to the abseil-cleanup-ctad check. It uses hasSingleDecl() to ensure only declStmt()s with one varDecl() are matched (leaving compount declStmt()s unchanged). It also addresses a bug in the handling of comments that surround the absl::MakeCleanup() calls by switching to the callArgs() combinator from Clang Transformer.
Reviewed By: ymandel
Differential Revision: https://reviews.llvm.org/D115452
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopPeel.cpp')
0 files changed, 0 insertions, 0 deletions
