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 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
|
// THIS IS A GENERATED TEST. DO NOT EDIT.
// To regenerate, see clang-doc/gen_test.py docstring.
//
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: echo "" > %t/compile_flags.txt
// RUN: cp "%s" "%t/test.cpp"
/// \brief Brief description.
///
/// Extended description that
/// continues onto the next line.
///
/// <ul class="test">
/// <li> Testing.
/// </ul>
///
/// \verbatim
/// The description continues.
/// \endverbatim
/// --
/// \param [out] I is a parameter.
/// \param J is a parameter.
/// \return void
void F(int I, int J);
/// Bonus comment on definition
void F(int I, int J) {}
// RUN: clang-doc --dump-intermediate --doxygen -p %t %t/test.cpp -output=%t/docs
// RUN: llvm-bcanalyzer --dump %t/docs/bc/7574630614A535710E5A6ABCFFF98BCA2D06A4CA.bc | FileCheck %s --check-prefix CHECK-0
// CHECK-0: <BLOCKINFO_BLOCK/>
// CHECK-0-NEXT: <VersionBlock NumWords=1 BlockCodeSize=4>
// CHECK-0-NEXT: <Version abbrevid=4 op0=2/>
// CHECK-0-NEXT: </VersionBlock>
// CHECK-0-NEXT: <FunctionBlock NumWords=429 BlockCodeSize=4>
// CHECK-0-NEXT: <USR abbrevid=4 op0=20 op1=117 op2=116 op3=99 op4=6 op5=20 op6=165 op7=53 op8=113 op9=14 op10=90 op11=106 op12=188 op13=255 op14=249 op15=139 op16=202 op17=45 op18=6 op19=164 op20=202/>
// CHECK-0-NEXT: <Name abbrevid=5 op0=1/> blob data = 'F'
// CHECK-0-NEXT: <CommentBlock NumWords=354 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'FullComment'
// CHECK-0-NEXT: <CommentBlock NumWords=13 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=16/> blob data = 'ParagraphComment'
// CHECK-0-NEXT: <CommentBlock NumWords=5 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=31 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=19/> blob data = 'BlockCommandComment'
// CHECK-0-NEXT: <Name abbrevid=6 op0=5/> blob data = 'brief'
// CHECK-0-NEXT: <CommentBlock NumWords=19 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=16/> blob data = 'ParagraphComment'
// CHECK-0-NEXT: <CommentBlock NumWords=11 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: <Text abbrevid=5 op0=19/> blob data = ' Brief description.'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=37 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=16/> blob data = 'ParagraphComment'
// CHECK-0-NEXT: <CommentBlock NumWords=13 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: <Text abbrevid=5 op0=26/> blob data = ' Extended description that'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=14 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: <Text abbrevid=5 op0=30/> blob data = ' continues onto the next line.'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=76 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=16/> blob data = 'ParagraphComment'
// CHECK-0-NEXT: <CommentBlock NumWords=5 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=14 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=19/> blob data = 'HTMLStartTagComment'
// CHECK-0-NEXT: <Name abbrevid=6 op0=2/> blob data = 'ul'
// CHECK-0-NEXT: <AttrKey abbrevid=12 op0=5/> blob data = 'class'
// CHECK-0-NEXT: <AttrVal abbrevid=13 op0=4/> blob data = '{{.*}}'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=5 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=9 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=19/> blob data = 'HTMLStartTagComment'
// CHECK-0-NEXT: <Name abbrevid=6 op0=2/> blob data = 'li'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=9 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: <Text abbrevid=5 op0=9/> blob data = ' Testing.'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=5 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=9 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=17/> blob data = 'HTMLEndTagComment'
// CHECK-0-NEXT: <Name abbrevid=6 op0=2/> blob data = 'ul'
// CHECK-0-NEXT: <SelfClosing abbrevid=10 op0=1/>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=13 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=16/> blob data = 'ParagraphComment'
// CHECK-0-NEXT: <CommentBlock NumWords=5 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=32 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=20/> blob data = 'VerbatimBlockComment'
// CHECK-0-NEXT: <Name abbrevid=6 op0=8/> blob data = 'verbatim'
// CHECK-0-NEXT: <CloseName abbrevid=9 op0=11/> blob data = 'endverbatim'
// CHECK-0-NEXT: <CommentBlock NumWords=16 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=24/> blob data = 'VerbatimBlockLineComment'
// CHECK-0-NEXT: <Text abbrevid=5 op0=27/> blob data = ' The description continues.'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=22 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=16/> blob data = 'ParagraphComment'
// CHECK-0-NEXT: <CommentBlock NumWords=7 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: <Text abbrevid=5 op0=3/> blob data = ' --'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=5 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=39 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=19/> blob data = 'ParamCommandComment'
// CHECK-0-NEXT: <Direction abbrevid=7 op0=5/> blob data = '[out]'
// CHECK-0-NEXT: <ParamName abbrevid=8 op0=1/> blob data = 'I'
// CHECK-0-NEXT: <Explicit abbrevid=11 op0=1/>
// CHECK-0-NEXT: <CommentBlock NumWords=25 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=16/> blob data = 'ParagraphComment'
// CHECK-0-NEXT: <CommentBlock NumWords=10 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: <Text abbrevid=5 op0=16/> blob data = ' is a parameter.'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=5 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=38 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=19/> blob data = 'ParamCommandComment'
// CHECK-0-NEXT: <Direction abbrevid=7 op0=4/> blob data = '[in]'
// CHECK-0-NEXT: <ParamName abbrevid=8 op0=1/> blob data = 'J'
// CHECK-0-NEXT: <CommentBlock NumWords=25 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=16/> blob data = 'ParagraphComment'
// CHECK-0-NEXT: <CommentBlock NumWords=10 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: <Text abbrevid=5 op0=16/> blob data = ' is a parameter.'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=5 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=28 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=19/> blob data = 'BlockCommandComment'
// CHECK-0-NEXT: <Name abbrevid=6 op0=6/> blob data = 'return'
// CHECK-0-NEXT: <CommentBlock NumWords=16 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=16/> blob data = 'ParagraphComment'
// CHECK-0-NEXT: <CommentBlock NumWords=8 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: <Text abbrevid=5 op0=5/> blob data = ' void'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <CommentBlock NumWords=28 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'FullComment'
// CHECK-0-NEXT: <CommentBlock NumWords=21 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=16/> blob data = 'ParagraphComment'
// CHECK-0-NEXT: <CommentBlock NumWords=13 BlockCodeSize=4>
// CHECK-0-NEXT: <Kind abbrevid=4 op0=11/> blob data = 'TextComment'
// CHECK-0-NEXT: <Text abbrevid=5 op0=28/> blob data = ' Bonus comment on definition'
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: </CommentBlock>
// CHECK-0-NEXT: <DefLocation abbrevid=6 op0=28 op1=4/> blob data = '{{.*}}'
// CHECK-0-NEXT: <Location abbrevid=7 op0=25 op1=4/> blob data = '{{.*}}'
// CHECK-0-NEXT: <TypeBlock NumWords=6 BlockCodeSize=4>
// CHECK-0-NEXT: <ReferenceBlock NumWords=3 BlockCodeSize=4>
// CHECK-0-NEXT: <Name abbrevid=5 op0=4/> blob data = 'void'
// CHECK-0-NEXT: <Field abbrevid=7 op0=4/>
// CHECK-0-NEXT: </ReferenceBlock>
// CHECK-0-NEXT: </TypeBlock>
// CHECK-0-NEXT: <FieldTypeBlock NumWords=8 BlockCodeSize=4>
// CHECK-0-NEXT: <ReferenceBlock NumWords=3 BlockCodeSize=4>
// CHECK-0-NEXT: <Name abbrevid=5 op0=3/> blob data = 'int'
// CHECK-0-NEXT: <Field abbrevid=7 op0=4/>
// CHECK-0-NEXT: </ReferenceBlock>
// CHECK-0-NEXT: <Name abbrevid=4 op0=1/> blob data = 'I'
// CHECK-0-NEXT: </FieldTypeBlock>
// CHECK-0-NEXT: <FieldTypeBlock NumWords=8 BlockCodeSize=4>
// CHECK-0-NEXT: <ReferenceBlock NumWords=3 BlockCodeSize=4>
// CHECK-0-NEXT: <Name abbrevid=5 op0=3/> blob data = 'int'
// CHECK-0-NEXT: <Field abbrevid=7 op0=4/>
// CHECK-0-NEXT: </ReferenceBlock>
// CHECK-0-NEXT: <Name abbrevid=4 op0=1/> blob data = 'J'
// CHECK-0-NEXT: </FieldTypeBlock>
// CHECK-0-NEXT: </FunctionBlock>
|