-
AvoidCastInConditionalCheck.h 10/39
AvoidCastInConditionalCheck.cpp 4
llvm-avoid-cast-in-conditional.rst 3
llvm-avoid-cast-in-conditional.cpp
| | Authored by hintonda on Mar 25 2019, 3:19 PM. Event TimelineHerald added a project: Restricted Project. Eugene.Zelenko edited projects, added Restricted Project; removed Restricted Project. Herald added a project: Restricted Project. hintonda marked an inline comment as done. hintonda marked an inline comment as done. hintonda marked an inline comment as done. hintonda marked an inline comment as done. hintonda marked an inline comment as done. hintonda marked an inline comment as done. hintonda marked an inline comment as done. hintonda marked an inline comment as done. hintonda marked an inline comment as done. hintonda retitled this revision from [clang-tidy] Add new checker: llvm-avoid-cast-in-conditional to [clang-tidy] Add new checker: llvm-prefer-isa-or-dyn-cast-in-conditionals. hintonda marked an inline comment as done. hintonda marked an inline comment as done. hintonda marked an inline comment as done. hintonda marked an inline comment as done. hintonda marked an inline comment as done. This revision is now accepted and ready to land. hintonda marked an inline comment as done. hintonda marked an inline comment as done. This revision was automatically updated to reflect the committed changes. Herald added a project: Restricted Project. Path | Size |
---|
| | | | | 61 lines | | 153 lines | | 1 line | | 3 lines | | | | 8 lines | | | | 1 line | | 28 lines | | | | 118 lines |
Commit | Tree | Parents | Author | Summary | Date |
---|
ac97973c58ca | d6b93dd56b98 | d904df8dcafb | Don Hinton | Simplify code per comments. | Apr 1 2019, 1:56 PM | d904df8dcafb | 16612921b8f1 | 02b0b09ef4ac | Don Hinton | Defer HeaderFileExtionsUtils.h to separate patch. | Apr 1 2019, 10:44 AM | 02b0b09ef4ac | 3a1ce9bb5eac | cd7a4633b447 | Don Hinton | Added matcher, and reordered tests. | Mar 29 2019, 4:17 PM | cd7a4633b447 | 57b91030ce72 | 76d87ffb3558 | Don Hinton | Improve warning message. | Mar 29 2019, 10:16 AM | 76d87ffb3558 | 2b9f31e65009 | a155fdce9d4e | Don Hinton | Address comments. | Mar 29 2019, 9:14 AM | a155fdce9d4e | 4f76b11884e1 | b67e03d4d854 | Don Hinton | Add isa and dyn_cast when matching for dyn_cast_or_null replacement. | Mar 28 2019, 10:14 PM | b67e03d4d854 | f155d62b9d9c | 2bc5da33102f | Don Hinton | Remove spurious auto's. | Mar 28 2019, 6:39 PM | 2bc5da33102f | cbfbd00868f6 | 67c8081a4586 | Don Hinton | Remove commented code. | Mar 28 2019, 6:16 PM | 67c8081a4586 | a5edeeb49640 | ec4dd366c884 | Don Hinton | Add replacement of `y && cast<X>(y)` with `dyn_cast_or_null<X>(y)`, which is at… (Show More…) | Mar 28 2019, 6:09 PM | ec4dd366c884 | cd45f6eb726a | 9c7be1ec5c54 | Don Hinton | Removed the dyn_cast_or_null replacements. | Mar 28 2019, 1:28 AM | 9c7be1ec5c54 | a0de03416993 | f18841aff567 | Don Hinton | Added dyn_cast and dyn_cast_or_null, and provided fixit's for all of them. | Mar 27 2019, 12:22 AM | f18841aff567 | 85456182cb7e | b1133854ee1f | Don Hinton | Address additional comments. | Mar 26 2019, 3:03 PM | b1133854ee1f | 274fc70be834 | e676e9e8568e | Don Hinton | Address additional comments, and move to LLVM.h. | Mar 25 2019, 7:06 PM | e676e9e8568e | 4d72a7c41be9 | 2ed554412581 | Don Hinton | Address comments. | Mar 25 2019, 6:15 PM | 2ed554412581 | 14de05cc1d07 | 60768cd89672 | Don Hinton | [clang-tidy] Add new checker: llvm-avoid-cast-in-conditional (Show More…) | Mar 25 2019, 2:29 PM |
|
@aaron.ballman: This matcher seems genuinely useful. What do you think about moving it to ASTMatchers.h?