llvm-project/clang-tools-extra/test/clang-tidy
CJ Johnson a1968d5341 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
2021-12-09 17:41:12 +00:00
..
checkers Prevent abseil-cleanup-ctad check from stomping on surrounding context 2021-12-09 17:41:12 +00:00
infrastructure [libtooling][clang-tidy] Fix crashing on rendering invalid SourceRanges 2021-11-29 09:56:43 +01:00
check_clang_tidy.py Misleading unicode identifier detection pass 2021-11-10 10:21:27 +01:00