This is an archive of the discontinued LLVM Phabricator instance.

Stop stripping comments from AST matcher example code
ClosedPublic

Authored by aaron.ballman on Dec 11 2018, 9:18 AM.

Details

Reviewers
JonasToth
klimek
Summary

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. This patch fixes that by only stripping comments at the start of a line, rather than removing any forward slash (which also impacts prose text).

As a drive-by, this fixes a broken doxygen comment marker as well.

Diff Detail

Event Timeline

aaron.ballman created this revision.Dec 11 2018, 9:18 AM
This revision is now accepted and ready to land.Dec 11 2018, 11:14 AM

Committed in r348891.