File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 16
16
#include " lib/Lib/CorpusImpl.hpp"
17
17
#include " lib/Lib/MrDocsCompilationDatabase.hpp"
18
18
#include " lib/Lib/SingleFileDB.hpp"
19
+ #include " lib/Gen/hbs/HandlebarsGenerator.hpp"
19
20
#include " test_suite/diff.hpp"
20
21
#include < mrdocs/Config.hpp>
21
22
#include < mrdocs/Generators.hpp>
@@ -130,6 +131,16 @@ handleFile(
130
131
}
131
132
replaceCRLFWithLF (generatedDocs);
132
133
134
+ // Generate tagfile
135
+ if (auto hbsGen = dynamic_cast <hbs::HandlebarsGenerator const *>(gen_))
136
+ {
137
+ std::stringstream ss;
138
+ if (auto exp = hbsGen->buildTagfile (ss, **corpus); !exp)
139
+ {
140
+ return report::error (" {}: \" {}\" " , exp.error (), filePath);
141
+ }
142
+ }
143
+
133
144
// Get expected documentation if it exists
134
145
std::unique_ptr<llvm::MemoryBuffer> expectedDocsBuf;
135
146
{
You can’t perform that action at this time.
0 commit comments