Skip to content

Commit ed8e91f

Browse files
committed
postprocess Javadocs upon insertion
1 parent ae5342e commit ed8e91f

File tree

14 files changed

+81
-46
lines changed

14 files changed

+81
-46
lines changed

source/CorpusImpl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ void
8686
CorpusImpl::
8787
insert(std::unique_ptr<Info> I)
8888
{
89+
if(I->javadoc)
90+
I->javadoc->postProcess();
91+
8992
std::lock_guard<llvm::sys::Mutex> Guard(mutex_);
9093

9194
index_.emplace_back(I.get());

test-files/old-tests/brief-2.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@
55
<function name="f1" id="CnO51rIKTzfiVKHkR3TdPa0eo+8=">
66
<file path="brief-2.cpp" line="5"/>
77
<doc>
8-
<para>
8+
<brief>
99
<text>brief</text>
10-
</para>
10+
</brief>
1111
</doc>
1212
</function>
1313
<function name="f2" id="0MJUv5yGFR9nXWFLeYc+rjOY+iM=">
1414
<file path="brief-2.cpp" line="9"/>
1515
<doc>
16-
<para>
16+
<brief>
1717
<text>brief</text>
18-
</para>
18+
</brief>
1919
</doc>
2020
</function>
2121
<function name="f3" id="khwJweIqd5FuWAg8T+l+GEljQVc=">
2222
<file path="brief-2.cpp" line="13"/>
2323
<doc>
24-
<para>
24+
<brief>
2525
<text>brief</text>
26-
</para>
26+
</brief>
2727
</doc>
2828
</function>
2929
<function name="f4" id="5wJFEWD4Ev/Vf3QN/mFlKhtbC6E=">
3030
<file path="brief-2.cpp" line="17"/>
3131
<file path="brief-2.cpp" line="22"/>
3232
<doc>
33-
<para>
33+
<brief>
3434
<text>brief x</text>
35-
</para>
35+
</brief>
3636
<para>
3737
<text>br</text>
3838
<text>ief</text>
@@ -42,19 +42,19 @@
4242
<function name="f5" id="RnDTZyCZuSqydMEPutN0yG4E/xg=">
4343
<file path="brief-2.cpp" line="27"/>
4444
<doc>
45-
<para>
45+
<brief>
4646
<text>br</text>
4747
<text>ief</text>
48-
</para>
48+
</brief>
4949
</doc>
5050
</function>
5151
<function name="f6" id="NEkWCLiknLGzCD6JnXuBTSAAne8=">
5252
<file path="brief-2.cpp" line="34"/>
5353
<doc>
54-
<para>
54+
<brief>
5555
<text>br</text>
5656
<text>ief</text>
57-
</para>
57+
</brief>
5858
<para>
5959
<text>desc</text>
6060
</para>

test-files/old-tests/commands.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<function name="f1" id="CnO51rIKTzfiVKHkR3TdPa0eo+8=">
66
<file path="commands.cpp" line="8"/>
77
<doc>
8-
<para>
8+
<brief>
99
<text>brief</text>
10-
</para>
10+
</brief>
1111
<para>
1212
<text>mrdox hello</text>
1313
</para>

test-files/old-tests/duplicate-jdoc.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<file path="duplicate-jdoc.cpp" line="5" class="def"/>
77
<return type="int"/>
88
<doc>
9-
<para>
9+
<brief>
1010
<text>f0 brief</text>
11-
</para>
11+
</brief>
1212
<returns>
1313
<text>int</text>
1414
</returns>
@@ -21,9 +21,9 @@
2121
<file path="duplicate-jdoc.cpp" line="11" class="def"/>
2222
<return type="int"/>
2323
<doc>
24-
<para>
24+
<brief>
2525
<text>f1 brief</text>
26-
</para>
26+
</brief>
2727
<returns>
2828
<text>int</text>
2929
</returns>
@@ -36,9 +36,9 @@
3636
<file path="duplicate-jdoc.cpp" line="17" class="def"/>
3737
<param name="a" type="int"/>
3838
<doc>
39-
<para>
39+
<brief>
4040
<text>g0 brief</text>
41-
</para>
41+
</brief>
4242
<param name="a">
4343
<text>one</text>
4444
</param>
@@ -51,9 +51,9 @@
5151
<file path="duplicate-jdoc.cpp" line="23" class="def"/>
5252
<param name="a" type="int"/>
5353
<doc>
54-
<para>
54+
<brief>
5555
<text>g1 brief</text>
56-
</para>
56+
</brief>
5757
<param name="a">
5858
<text>one</text>
5959
</param>
@@ -67,9 +67,9 @@
6767
<function name="h0" id="GUlieEk6E+t8qLpALj3XrWv0CGw=">
6868
<file path="duplicate-jdoc.cpp" line="30" class="def"/>
6969
<doc>
70-
<para>
70+
<brief>
7171
<text>h0 brief</text>
72-
</para>
72+
</brief>
7373
<tparam name="T">
7474
<text>one</text>
7575
</tparam>
@@ -84,9 +84,9 @@
8484
<function name="h1" id="q8fclJU+n2M3XqifIjVL9vT9fKQ=">
8585
<file path="duplicate-jdoc.cpp" line="37" class="def"/>
8686
<doc>
87-
<para>
87+
<brief>
8888
<text>h1 brief</text>
89-
</para>
89+
</brief>
9090
<tparam name="T">
9191
<text>one</text>
9292
</tparam>

test-files/old-tests/friend-1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<function name="f" id="s6nsa+zVhpzzrN+yUVPP5rvdXqs=">
1010
<file path="friend-1.cpp" line="4"/>
1111
<doc>
12-
<para>
12+
<brief>
1313
<text>f</text>
14-
</para>
14+
</brief>
1515
</doc>
1616
</function>
1717
</namespace>

test-files/old-tests/friend-2.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<file path="friend-2.cpp" line="4"/>
1111
<file path="friend-2.cpp" line="7"/>
1212
<doc>
13-
<para>
13+
<brief>
1414
<text>f</text>
15-
</para>
15+
</brief>
1616
</doc>
1717
</function>
1818
</namespace>

test-files/old-tests/friend-3.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<file path="friend-3.cpp" line="9"/>
1212
<file path="friend-3.cpp" line="12"/>
1313
<doc>
14-
<para>
14+
<brief>
1515
<text>T::f</text>
16-
</para>
16+
</brief>
1717
</doc>
1818
</function>
1919
<struct name="U" id="FLgkhM3m0U3Lo2o3XLPUizWPH00=">

test-files/old-tests/friend-4.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<file path="friend-4.cpp" line="9"/>
1212
<file path="friend-4.cpp" line="12"/>
1313
<doc>
14-
<para>
14+
<brief>
1515
<text>U::f</text>
16-
</para>
16+
</brief>
1717
</doc>
1818
</function>
1919
<struct name="U" id="FLgkhM3m0U3Lo2o3XLPUizWPH00=">

test-files/old-tests/friend-5.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<file path="friend-5.cpp" line="8"/>
1212
<file path="friend-5.cpp" line="12"/>
1313
<doc>
14-
<para>
14+
<brief>
1515
<text>f</text>
16-
</para>
16+
</brief>
1717
</doc>
1818
</function>
1919
<struct name="U" id="FLgkhM3m0U3Lo2o3XLPUizWPH00=">

test-files/old-tests/para-1.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,23 @@
88
<function name="f2" id="0MJUv5yGFR9nXWFLeYc+rjOY+iM=">
99
<file path="para-1.cpp" line="10"/>
1010
<doc>
11+
<brief>
12+
</brief>
1113
</doc>
1214
</function>
1315
<function name="f3" id="khwJweIqd5FuWAg8T+l+GEljQVc=">
1416
<file path="para-1.cpp" line="17"/>
1517
<doc>
18+
<brief>
19+
</brief>
1620
</doc>
1721
</function>
1822
<function name="f4" id="5wJFEWD4Ev/Vf3QN/mFlKhtbC6E=">
1923
<file path="para-1.cpp" line="27"/>
2024
<doc>
21-
<para>
25+
<brief>
2226
<text>brief</text>
23-
</para>
27+
</brief>
2428
<para>
2529
<text>a</text>
2630
</para>

0 commit comments

Comments
 (0)