tra added inline comments.

================
Comment at: lib/Sema/SemaCUDA.cpp:386-387
+  bool NeedsH = true, NeedsD = true;
+  bool HasH = MemberDecl->hasAttr<CUDAHostAttr>();
+  bool HasD = MemberDecl->hasAttr<CUDADeviceAttr>();
+
----------------
Nice.
Now these can be moved above `HasExpAttr` and then used in its initializer to 
make it shorter.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67509/new/

https://reviews.llvm.org/D67509



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

Reply via email to