-
Notifications
You must be signed in to change notification settings - Fork 5
/
example_rendered.html
171 lines (160 loc) · 27.7 KB
/
example_rendered.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<template id="renderedcontent">
<html>
<head>
<style type="text/css">
body {
background-color: #1e1e1e;
color: #d4d4d4;
}
div.content {
white-space: pre;
font-family: 'Courier New', Courier, monospace;
font-size: 10pt;
}
span.cmf-COMMENT, span.cmf-BRACKET_COMMENT {
color: rgb(70, 70, 70);
}
span.cmf-FUNNAME {
color: rgb(130, 195, 238);
}
span.cmf-KEYWORD {
color: rgb(69, 96, 126);
}
span.cmf-NUMBER {
color: lightblue;
font-weight: bold;
}
span.cmf-QUOTED_LITERAL {
color: lightgreen;
}
</style>
</head>
<body>
<div class="content">
<span class="cmf-BODY"><span class="cmf-COMMENT"><span class="cmf-COMMENT"># The following multiple newlines should be collapsed into a single newline</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">cmake_minimum_required</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-KWARGGROUP"><span class="cmf-KEYWORD"><span class="cmf-WORD">VERSION</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">2.8.11</span></span></span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">project</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">cmakelang_test</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This multiline-comment should be reflowed into a single comment on one line</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This comment should remain right before the command call. Furthermore, the</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># command call should be formatted to a single line.</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">add_subdirectories</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">foo</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">bar</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">baz</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">foo2</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">bar2</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">baz2</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This very long command should be wrapped</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">set</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">HEADERS</span></span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">very_long_header_name_a.h</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">very_long_header_name_b.h</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">very_long_header_name_c.h</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This command should be split into one line per entry because it has a long</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># argument list.</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">set</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">SOURCES</span></span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">source_a.cc</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">source_b.cc</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">source_d.cc</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">source_e.cc</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">source_f.cc</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">source_g.cc</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">source_h.cc</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># The string in this command should not be split</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">set_target_properties</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">foo</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">bar</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">baz</span></span><span class="cmf-WHITESPACE"> </span></span><span class="cmf-KWARGGROUP"><span class="cmf-KEYWORD"><span class="cmf-WORD">PROPERTIES</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">COMPILE_FLAGS</span></span><span class="cmf-ARGUMENT"><span class="cmf-QUOTED_LITERAL">"-std=c++11 -Wall -Wextra"</span></span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This command has a very long argument and can't be aligned with the command</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># end, so it should be moved to a new line with block indent + 1.</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">some_long_command_name</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-QUOTED_LITERAL">"Some very long argument that really needs to be on the next line."</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This situation is similar but the argument to a KWARG needs to be on a newline</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># instead.</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">set</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">CMAKE_CXX_FLAGS</span></span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-QUOTED_LITERAL">"-std=c++11 -Wall -Wno-sign-compare -Wno-unused-parameter -xx"</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">set</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">HEADERS</span></span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">header_a.h</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">header_b.h</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This comment should be preserved, moreover it should</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"># be split across two lines.</span></span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">header_c.h</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">header_d.h</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This part of the comment should be formatted but...</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-ONOFFSWITCH"><span class="cmf-FORMAT_OFF"># cmake-format: off</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This bunny should remain untouched:</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># . _ ∩</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># レヘヽ| |</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># (・x・)</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># c( uu}</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-ONOFFSWITCH"><span class="cmf-FORMAT_ON"># cmake-format: on</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># while this part should be formatted again</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This is a paragraph</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT">#</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># This is a second paragraph</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT">#</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># This is a third paragraph</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This is a comment that should be joined but</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># TODO(josh): This todo should not be joined with the previous line.</span><span class="cmf-NEWLINE">
</span><span class="cmf-COMMENT"># NOTE(josh): Also this should not be joined with the todo.</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-FLOW_CONTROL"><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">if</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">foo</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-BODY"><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span><span class="cmf-FLOW_CONTROL"><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">if</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">sbar</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-BODY"><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This comment is in-scope.</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">add_library</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">foo_bar_baz</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">foo.cc</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">bar.cc</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># this is a comment for arg2 this is more comment for arg2,</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"># it should be joined with the first.</span></span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">baz.cc</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This comment is part of add_library</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">other_command</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">some_long_argument</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">some_long_argument</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># this comment is very long and</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"># gets split across some lines</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">other_command</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">some_long_argument</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">some_long_argument</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">some_long_argument</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># this comment</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"># is even longer</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"># and wouldn't</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"># make sense to</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"># pack at the</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"># end of the</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"># command so it</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"># gets it's own</span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-COMMENT"># lines</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">endif</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">endif</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This very long command should be broken up along keyword arguments</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">foo</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">nonkwarg_a</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">nonkwarg_b</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span><span class="cmf-KWARGGROUP"><span class="cmf-KEYWORD"><span class="cmf-WORD">HEADERS</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">a.h</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">b.h</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">c.h</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">d.h</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">e.h</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">f.h</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span></span></span><span class="cmf-KWARGGROUP"><span class="cmf-KEYWORD"><span class="cmf-WORD">SOURCES</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">a.cc</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">b.cc</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">d.cc</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span></span></span><span class="cmf-KWARGGROUP"><span class="cmf-KEYWORD"><span class="cmf-WORD">DEPENDS</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">foo</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span></span></span></span><span class="cmf-PARGGROUP"><span class="cmf-FLAG"><span class="cmf-WORD">bar</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-FLAG"><span class="cmf-WORD">baz</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This command uses a string with escaped quote chars</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">foo</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">some_arg</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">some_arg</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-QUOTED_LITERAL">"This is a \"string\" within a string"</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This command uses an empty string</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">foo</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">some_arg</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">some_arg</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-QUOTED_LITERAL">""</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># This command uses a multiline string</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">foo</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">some_arg</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-WORD">some_arg</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-QUOTED_LITERAL">"
This string is on multiple lines
"</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span><span class="cmf-NEWLINE">
</span></span><span class="cmf-COMMENT"><span class="cmf-COMMENT"># No, I really want this to look ugly</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-ONOFFSWITCH"><span class="cmf-FORMAT_OFF"># cmake-format: off</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-STATEMENT"><span class="cmf-FUNNAME"><span class="cmf-WORD">add_library</span></span><span class="cmf-LPAREN"><span class="cmf-LEFT_PAREN">(</span></span><span class="cmf-ARGGROUP"><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-WORD">a</span></span><span class="cmf-WHITESPACE"> </span></span><span class="cmf-PARGGROUP"><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">b.cc</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">c.cc</span></span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">d.cc</span></span><span class="cmf-NEWLINE">
</span><span class="cmf-WHITESPACE"> </span><span class="cmf-ARGUMENT"><span class="cmf-UNQUOTED_LITERAL">e.cc</span></span></span></span><span class="cmf-RPAREN"><span class="cmf-RIGHT_PAREN">)</span></span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span><span class="cmf-ONOFFSWITCH"><span class="cmf-FORMAT_ON"># cmake-format: on</span></span><span class="cmf-WHITESPACE"><span class="cmf-NEWLINE">
</span></span></span>
</div>
</body>
</html></template>
<iframe id="renderframe" style="width:100%;"></iframe>
<script type="text/javascript">
var frame = document.getElementById("renderframe");
frame.addEventListener("load", function() {
frame.height = frame.contentWindow.document.body.scrollHeight + 30;
});
frame.srcdoc = document.getElementById("renderedcontent").innerHTML;
</script>