hans added a subscriber: hans. hans accepted this revision. hans added a reviewer: hans. hans added a comment.
Out of curiosity, did you run in to something that relies on this in the wild? ================ Comment at: tools/driver/driver.cpp:452 @@ +451,3 @@ + // The first instance of '#' should be replaced with '='. + auto AdjustOpt = [] (const char *Opt) { + if (char *NumberSignPtr = const_cast<char *>(::strchr(Opt, '#'))) ---------------- Maybe don't take the parameter as a const char* if the constness needs to be dropped for the adjusting to take place? The const_cast could just be moved to where you make the call below. http://reviews.llvm.org/D11896 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits