llvm-project/clang/lib/Frontend/Rewrite
George Burgess IV 00f70bd933 Remove redundant casts. NFC
So I wrote a clang-tidy check to lint out redundant `isa`, `cast`, and
`dyn_cast`s for fun. This is a portion of what it found for clang; I
plan to do similar cleanups in LLVM and other subprojects when I find
time.

Because of the volume of changes, I explicitly avoided making any change
that wasn't highly local and obviously correct to me (e.g. we still have
a number of foo(cast<Bar>(baz)) that I didn't touch, since overloading
is a thing and the cast<Bar> did actually change the type -- just up the
class hierarchy).

I also tried to leave the types we were cast<>ing to somewhere nearby,
in cases where it wasn't locally obvious what we were dealing with
before.

llvm-svn: 326416
2018-03-01 05:43:23 +00:00
..
CMakeLists.txt Attempt to fix shared library build: RewriteFrontend depends on Serialization after r305116. 2017-06-09 22:02:33 +00:00
FixItRewriter.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
FrontendActions.cpp [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) 2017-10-18 05:21:17 +00:00
HTMLPrint.cpp Clean up use of C allocation functions 2018-02-21 02:02:39 +00:00
InclusionRewriter.cpp Support non-identifier module names when preprocessing modules. 2017-06-19 23:09:36 +00:00
RewriteMacros.cpp Spelling mistakes in comments. NFCI. (PR27635) 2017-03-30 14:13:19 +00:00
RewriteModernObjC.cpp Remove redundant casts. NFC 2018-03-01 05:43:23 +00:00
RewriteObjC.cpp Remove redundant casts. NFC 2018-03-01 05:43:23 +00:00
RewriteTest.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00