svenvh marked 2 inline comments as done.
svenvh added inline comments.

================
Comment at: clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp:296-298
 
+  // Emit an #if guard for all type extensions required for the given type
+  // strings.
----------------
arkangath wrote:
> Shouldn't what the return value means be documented here?
Good catch, added.


================
Comment at: clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp:1190-1191
+    }
+    OS << "\n";
+    OptionalEndif = "#endif // TypeExtension\n";
+  }
----------------
arkangath wrote:
> Seems to me that this is the only assignment to the OptionalEndif variable. 
> In which case, can't it be a StringRef ? And the return of the function be 
> StringRef too ?
Indeed; updated.


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

https://reviews.llvm.org/D120262

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

Reply via email to