Stop stripping comments from AST matcher example code.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 11 Dec 2018 19:30:49 +0000 (19:30 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 11 Dec 2018 19:30:49 +0000 (19:30 +0000)
commit94f3e74bc805884735252e638b024edccd0701e1
tree7430beb0acc9365d7099ee0b1f7f1a714e912cdb
parentfed6740374bc53b02eee98870ce0c3e879d72baa
Stop stripping comments from AST matcher example code.

The AST matcher documentation dumping script was being a bit over-zealous about stripping comment markers, which ended up causing comments in example code to stop being comments. Fix that by only stripping comments at the start of a line, rather than removing any forward slash (which also impacts prose text).

llvm-svn: 348891
clang/docs/LibASTMatchersReference.html
clang/docs/tools/dump_ast_matchers.py
clang/include/clang/ASTMatchers/ASTMatchers.h