We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ff86c0 commit df7ed7dCopy full SHA for df7ed7d
src/test/TestRunner.cpp
@@ -16,6 +16,7 @@
16
#include "lib/Lib/CorpusImpl.hpp"
17
#include "lib/Lib/MrDocsCompilationDatabase.hpp"
18
#include "lib/Lib/SingleFileDB.hpp"
19
+#include "lib/Gen/hbs/HandlebarsGenerator.hpp"
20
#include "test_suite/diff.hpp"
21
#include <mrdocs/Config.hpp>
22
#include <mrdocs/Generators.hpp>
@@ -130,6 +131,16 @@ handleFile(
130
131
}
132
replaceCRLFWithLF(generatedDocs);
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
+
144
// Get expected documentation if it exists
145
std::unique_ptr<llvm::MemoryBuffer> expectedDocsBuf;
146
{
0 commit comments