Skip to content

Commit 9f073e3

Browse files
committed
Corpus is const
fix #72
1 parent 6963951 commit 9f073e3

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

include/mrdox/format/Generator.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct Generator
8282
bool
8383
build(
8484
llvm::StringRef outputPath,
85-
Corpus& corpus,
85+
Corpus const& corpus,
8686
Reporter& R) const;
8787

8888
/** Build single-file documentation from the corpus and configuration.
@@ -110,7 +110,7 @@ struct Generator
110110
bool
111111
buildOne(
112112
llvm::StringRef fileName,
113-
Corpus& corpus,
113+
Corpus const& corpus,
114114
Reporter& R) const = 0;
115115

116116
/** Build a string containing the single-file documentation.
@@ -138,7 +138,7 @@ struct Generator
138138
bool
139139
buildString(
140140
std::string& dest,
141-
Corpus& corpus,
141+
Corpus const& corpus,
142142
Reporter& R) const = 0;
143143
};
144144

source/lib/format/Generator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ bool
2121
Generator::
2222
build(
2323
StringRef outputPath,
24-
Corpus& corpus,
24+
Corpus const& corpus,
2525
Reporter& R) const
2626
{
2727
namespace fs = llvm::sys::fs;

source/lib/format/asciidoc/Asciidoc.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ bool
2828
AsciidocGenerator::
2929
build(
3030
llvm::StringRef rootPath,
31-
Corpus& corpus,
31+
Corpus const& corpus,
3232
Reporter& R) const
3333
{
3434
namespace path = llvm::sys::path;
@@ -89,7 +89,7 @@ bool
8989
AsciidocGenerator::
9090
buildOne(
9191
llvm::StringRef fileName,
92-
Corpus& corpus,
92+
Corpus const& corpus,
9393
Reporter& R) const
9494
{
9595
namespace fs = llvm::sys::fs;
@@ -115,7 +115,7 @@ bool
115115
AsciidocGenerator::
116116
buildString(
117117
std::string& dest,
118-
Corpus& corpus,
118+
Corpus const& corpus,
119119
Reporter& R) const
120120
{
121121
dest.clear();

source/lib/format/asciidoc/Asciidoc.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ class AsciidocGenerator
5050
bool
5151
build(
5252
llvm::StringRef rootPath,
53-
Corpus& corpus,
53+
Corpus const& corpus,
5454
Reporter& R) const override;
5555

5656
bool
5757
buildOne(
5858
llvm::StringRef fileName,
59-
Corpus& corpus,
59+
Corpus const& corpus,
6060
Reporter& R) const override;
6161

6262
bool
6363
buildString(
6464
std::string& dest,
65-
Corpus& corpus,
65+
Corpus const& corpus,
6666
Reporter& R) const override;
6767
};
6868

source/lib/format/xml/XML.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ bool
109109
XMLGenerator::
110110
buildOne(
111111
llvm::StringRef fileName,
112-
Corpus& corpus,
112+
Corpus const& corpus,
113113
Reporter& R) const
114114
{
115115
namespace fs = llvm::sys::fs;
@@ -133,7 +133,7 @@ bool
133133
XMLGenerator::
134134
buildString(
135135
std::string& dest,
136-
Corpus& corpus,
136+
Corpus const& corpus,
137137
Reporter& R) const
138138
{
139139
dest.clear();

source/lib/format/xml/XML.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ struct XMLGenerator : Generator
4040
bool
4141
buildOne(
4242
llvm::StringRef fileName,
43-
Corpus& corpus,
43+
Corpus const& corpus,
4444
Reporter& R) const override;
4545

4646
bool
4747
buildString(
4848
std::string& dest,
49-
Corpus& corpus,
49+
Corpus const& corpus,
5050
Reporter& R) const override;
5151
};
5252

source/tests/Tester.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ checkDirRecursively(
8686
void
8787
Tester::
8888
checkOneFile(
89-
Corpus& corpus,
89+
Corpus const& corpus,
9090
llvm::StringRef inputPath,
9191
llvm::SmallVectorImpl<char>& outputPathStr)
9292
{

source/tests/Tester.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Tester
4545

4646
void
4747
checkOneFile(
48-
Corpus& corpus,
48+
Corpus const& corpus,
4949
llvm::StringRef inputPath,
5050
llvm::SmallVectorImpl<char>& outputPathStr);
5151
};

0 commit comments

Comments
 (0)