[PATCH] Add warnings so that Clang can catch most of the cases that GCC's -Waddress can catch
David Majnemer
david.majnemer at gmail.com
Wed Feb 19 22:39:01 PST 2014
LGTM
================
Comment at: lib/Sema/SemaChecking.cpp:5743
@@ +5742,3 @@
+ if (T->isFunctionType())
+ IsFunction = true;
+
----------------
Just a minor nit, these could just be:
bool IsArray = T->isArrayType();
bool IsFunction = T->isFunctionType();
http://llvm-reviews.chandlerc.com/D2645
More information about the cfe-commits
mailing list