Skip to content

Commit 0b5cfe3

Browse files
committed
tests and XML output
1 parent 1df459f commit 0b5cfe3

File tree

6 files changed

+651
-38
lines changed

6 files changed

+651
-38
lines changed

include/mrdox/mrdox.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,16 @@
1212
#ifndef MRDOX_MRDOX_HPP
1313
#define MRDOX_MRDOX_HPP
1414

15+
#include <llvm/ADT/StringRef.h>
16+
#include <llvm/ADT/Twine.h>
17+
#include "llvm/Support/Error.h"
18+
1519
namespace mrdox {
1620

21+
llvm::Expected<llvm::Twine>
22+
renderXML(
23+
llvm::StringRef path);
24+
1725
} // mrdox
1826

1927
#endif

source/lib/AsciidocGenerator.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ using namespace llvm;
2323
namespace clang {
2424
namespace doc {
2525

26+
namespace {
27+
2628
//
2729
// Asciidoc generation
2830
//
@@ -857,6 +859,8 @@ createResources(
857859
return llvm::Error::success();
858860
}
859861

862+
} // (anon)
863+
860864
static
861865
GeneratorRegistry::
862866
Add<AsciidocGenerator> Asciidoc(

source/lib/Generators.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,17 @@ void Generator::addInfoToIndex(Index &Idx, const doc::Info *Info) {
100100

101101
// This anchor is used to force the linker to link in the generated object file
102102
// and thus register the generators.
103+
//
104+
// VFALCO REDO THIS it spreads out the generator
105+
// particulars across too many separate source files.
106+
//
103107
extern volatile int AsciidocGeneratorAnchorSource;
104108
static int LLVM_ATTRIBUTE_UNUSED AsciidocGeneratorAnchorDest =
105109
AsciidocGeneratorAnchorSource;
106110

111+
extern volatile int XMLGeneratorAnchorSource;
112+
static int LLVM_ATTRIBUTE_UNUSED XMLGeneratorAnchorDest =
113+
AsciidocGeneratorAnchorSource;
114+
107115
} // namespace doc
108116
} // namespace clang

0 commit comments

Comments
 (0)