[llvm-dev] [CommandLine] Missing clEnumValEnd for cl::values in tutorial page

Bekket McClane via llvm-dev llvm-dev at lists.llvm.org
Sat Jun 3 06:00:29 PDT 2017


The argument list for cl::values in command line library should be end with null or clEnumValEnd. But the tutorial page(http://llvm.org/docs/CommandLine.html <http://llvm.org/docs/CommandLine.html>) doesn’t follow the rule, which would cause program crash during runtime.

I’d send a code review: https://reviews.llvm.org/D33861 <https://reviews.llvm.org/D33861>
Please cc other folks related to this part.

Best Regards,
Bekket McClane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170603/5b579509/attachment.html>

More information about the llvm-dev mailing list