Comment parsing: add CommentOptions to allow specifying custom comment block commands
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 22 Feb 2013 14:21:27 +0000 (14:21 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 22 Feb 2013 14:21:27 +0000 (14:21 +0000)
commitacf2e786d29d1dff0ace9b92a88c074e2baebd2e
tree61ab030a6e79afae5bbb8496e4a2839e86a4ee37
parentc5720e91a2e1cfbe272ffe389407eff55f85d9ee
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.

llvm-svn: 175892
15 files changed:
clang/include/clang/AST/CommentCommandTraits.h
clang/include/clang/Basic/CommentOptions.h [new file with mode: 0644]
clang/include/clang/Basic/LangOptions.h
clang/include/clang/Driver/Options.td
clang/lib/AST/ASTContext.cpp
clang/lib/AST/CommentCommandTraits.cpp
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/test/Driver/fcomment-block-commands.c [new file with mode: 0644]
clang/test/Index/comment-custom-block-command.cpp [new file with mode: 0644]
clang/unittests/AST/CommentLexer.cpp
clang/unittests/AST/CommentParser.cpp