r175892 - Comment parsing: add CommentOptions to allow specifying custom comment block commands

Dmitri Gribenko gribozavr at gmail.com
Fri Feb 22 06:27:05 PST 2013


On Fri, Feb 22, 2013 at 4:21 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> Author: gribozavr
> Date: Fri Feb 22 08:21:27 2013
> New Revision: 175892
>
> URL: http://llvm.org/viewvc/llvm-project?rev=175892&view=rev
> Log:
> Comment parsing: add CommentOptions to allow specifying custom comment block commands
>
> Add an ability to specify custom documentation block comment commands via a new
> class CommentOptions.  The intention is that this class will hold future
> customizations for comment parsing, including defining documentation comments
> with specific numbers of parameters, etc.
>
> CommentOptions instance is a member of LangOptions.
>
> CommentOptions is controlled by a new command-line parameter
> -fcomment-block-commands=Foo,Bar,Baz.

This patch was contributed by Ben Gertzfield.  Sorry for not writing
this in the commit message!

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list