[PATCH] D19780: Output OpenCL version in Clang diagnostics
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Fri May 6 07:58:34 PDT 2016
Anastasia added inline comments.
================
Comment at: lib/Parse/ParseDecl.cpp:3519
@@ +3518,3 @@
+ / 100);
+ const char *VerSpec = (VerMajor + std::string (".") + VerMinor).c_str();
+ Diag(Tok, DiagID) << VerSpec << PrevSpec << isStorageClass;
----------------
I think it will be nicer to use string (not char*) here too.
http://reviews.llvm.org/D19780
More information about the cfe-commits
mailing list