majnemer added a subscriber: majnemer.

================
Comment at: lib/Sema/SemaCast.cpp:2318
@@ +2317,3 @@
+    if (Self.getLangOpts().OpenCL && DestType->isEventT()) {
+      llvm::APSInt intValue;
+      if (SrcExpr.get()->EvaluateAsInt(intValue, Self.Context)) {
----------------
Please name this variable properly: 
http://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly

================
Comment at: lib/Sema/SemaCast.cpp:2322-2323
@@ +2321,4 @@
+          Kind = CK_ZeroToOCLEvent;
+          return;
+        } else {
+          Self.Diag(OpRange.getBegin(),
----------------
Don't have an else after return.  
http://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return


http://reviews.llvm.org/D17578



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to