File tree 5 files changed +35
-40
lines changed
5 files changed +35
-40
lines changed Original file line number Diff line number Diff line change 17
17
namespace clang ::mrdocs {
18
18
namespace adoc {
19
19
20
- AdocGenerator::
21
- AdocGenerator ()
22
- : hbs::HandlebarsGenerator(" Asciidoc" , " adoc" )
23
- {}
24
-
25
20
std::string
26
21
AdocGenerator::
27
22
toString (hbs::HandlebarsCorpus const & c, doc::Node const & I) const
Original file line number Diff line number Diff line change @@ -25,7 +25,24 @@ class AdocGenerator
25
25
: public hbs::HandlebarsGenerator
26
26
{
27
27
public:
28
- AdocGenerator ();
28
+ std::string_view
29
+ id () const noexcept override
30
+ {
31
+ return " adoc" ;
32
+ }
33
+
34
+ std::string_view
35
+ fileExtension () const noexcept override
36
+ {
37
+ return " adoc" ;
38
+ }
39
+
40
+
41
+ std::string_view
42
+ displayName () const noexcept override
43
+ {
44
+ return " Asciidoc" ;
45
+ }
29
46
30
47
std::string
31
48
toString (
Original file line number Diff line number Diff line change @@ -28,35 +28,7 @@ namespace hbs {
28
28
class HandlebarsGenerator
29
29
: public Generator
30
30
{
31
- std::string displayName_;
32
- std::string fileExtension_;
33
-
34
31
public:
35
- HandlebarsGenerator (
36
- std::string_view displayName,
37
- std::string_view fileExtension)
38
- : displayName_(displayName)
39
- , fileExtension_(fileExtension)
40
- {}
41
-
42
- std::string_view
43
- id () const noexcept override
44
- {
45
- return fileExtension_;
46
- }
47
-
48
- std::string_view
49
- displayName () const noexcept override
50
- {
51
- return displayName_;
52
- }
53
-
54
- std::string_view
55
- fileExtension () const noexcept override
56
- {
57
- return fileExtension_;
58
- }
59
-
60
32
Expected<void >
61
33
build (
62
34
std::string_view outputPath,
Original file line number Diff line number Diff line change @@ -17,11 +17,6 @@ namespace clang {
17
17
namespace mrdocs {
18
18
namespace html {
19
19
20
- HTMLGenerator::
21
- HTMLGenerator ()
22
- : hbs::HandlebarsGenerator(" HTML" , " html" )
23
- {}
24
-
25
20
std::string
26
21
HTMLGenerator::
27
22
toString (hbs::HandlebarsCorpus const & c, doc::Node const & I) const
Original file line number Diff line number Diff line change @@ -25,7 +25,23 @@ class HTMLGenerator
25
25
: public hbs::HandlebarsGenerator
26
26
{
27
27
public:
28
- HTMLGenerator ();
28
+ std::string_view
29
+ id () const noexcept override
30
+ {
31
+ return " html" ;
32
+ }
33
+
34
+ std::string_view
35
+ fileExtension () const noexcept override
36
+ {
37
+ return " html" ;
38
+ }
39
+
40
+ std::string_view
41
+ displayName () const noexcept override
42
+ {
43
+ return " HTML" ;
44
+ }
29
45
30
46
std::string
31
47
toString (
You can’t perform that action at this time.
0 commit comments