summaryrefslogtreecommitdiff
path: root/docs/tools
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-12-02 14:21:16 +0000
committerDaniel Jasper <djasper@google.com>2014-12-02 14:21:16 +0000
commit6c5946160b581ae8521ceec1f6446e842a845716 (patch)
tree8acf562b9e6e8d5aef3c45e3ab69162ecef86d41 /docs/tools
parentf6babddc8724f616a504cf7a9b2c93f8d91e3b2b (diff)
downloadclang-6c5946160b581ae8521ceec1f6446e842a845716.tar.gz
clang-format: Escape '*' in generated flag documentation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tools')
-rwxr-xr-xdocs/tools/dump_format_style.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/tools/dump_format_style.py b/docs/tools/dump_format_style.py
index 66bad8bb4e..fdf03c6244 100755
--- a/docs/tools/dump_format_style.py
+++ b/docs/tools/dump_format_style.py
@@ -17,6 +17,7 @@ def substitute(text, tag, contents):
return re.sub(pattern, '%s', text, flags=re.S) % replacement
def doxygen2rst(text):
+ text = re.sub(r'([^/\*])\*', r'\1\\*', text)
text = re.sub(r'<tt>\s*(.*?)\s*<\/tt>', r'``\1``', text)
text = re.sub(r'\\c ([^ ,;\.]+)', r'``\1``', text)
text = re.sub(r'\\\w+ ', '', text)