summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/CommentDumper.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-23 16:43:01 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-23 16:43:01 +0000
commitd73e4ce992a9c17937c8d3d616ceb391e6e97538 (patch)
tree1e439ed861ff3eb9049992544f158cfbd15efe2e /clang/lib/AST/CommentDumper.cpp
parent9eedce1e7c9f8328df77637d29329919acb9c944 (diff)
downloadbcm5719-llvm-d73e4ce992a9c17937c8d3d616ceb391e6e97538.tar.gz
bcm5719-llvm-d73e4ce992a9c17937c8d3d616ceb391e6e97538.zip
Comment AST: add InlineContentComment::RenderKind to specify a default
rendering mode for clients that don't want to interpret Doxygen commands. Also add a libclang API to query this information. llvm-svn: 160633
Diffstat (limited to 'clang/lib/AST/CommentDumper.cpp')
-rw-r--r--clang/lib/AST/CommentDumper.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/lib/AST/CommentDumper.cpp b/clang/lib/AST/CommentDumper.cpp
index 7a4ca0c12aa..c930b245043 100644
--- a/clang/lib/AST/CommentDumper.cpp
+++ b/clang/lib/AST/CommentDumper.cpp
@@ -107,6 +107,21 @@ void CommentDumper::visitInlineCommandComment(const InlineCommandComment *C) {
dumpComment(C);
OS << " Name=\"" << C->getCommandName() << "\"";
+ switch (C->getRenderKind()) {
+ case InlineCommandComment::RenderNormal:
+ OS << " RenderNormal";
+ break;
+ case InlineCommandComment::RenderBold:
+ OS << " RenderBold";
+ break;
+ case InlineCommandComment::RenderMonospaced:
+ OS << " RenderMonospaced";
+ break;
+ case InlineCommandComment::RenderEmphasized:
+ OS << " RenderEmphasized";
+ break;
+ }
+
for (unsigned i = 0, e = C->getNumArgs(); i != e; ++i)
OS << " Arg[" << i << "]=\"" << C->getArgText(i) << "\"";
}
OpenPOWER on IntegriCloud