[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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev