File tree 13 files changed +1053
-894
lines changed
share/mrdox/addons/generator/asciidoc/partials
test-files/old-tests/temp
13 files changed +1053
-894
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,37 @@ class MRDOX_DECL
42
42
Config () noexcept ;
43
43
44
44
public:
45
+ struct ExtractOptions
46
+ {
47
+ enum class Policy
48
+ {
49
+ Always,
50
+ Dependency,
51
+ Never
52
+ };
53
+
54
+ /* * Extraction policy for references to external declarations.
55
+
56
+ This determines how declarations which are referenced by
57
+ explicitly extracted declarations are extracted.
58
+
59
+ Given a function parameter of type `std::string`, `std::string`
60
+ would be extracted if this option is set to `Policy::Always`.
61
+ */
62
+ Policy referencedDeclarations = Policy::Dependency;
63
+
64
+ Policy anonymousNamespaces = Policy::Always;
65
+
66
+ Policy inaccessibleMembers = Policy::Always;
67
+
68
+ Policy inaccessibleBases = Policy::Always;
69
+ };
70
+
45
71
struct Settings
46
72
{
73
+
74
+ ExtractOptions extractOptions;
75
+
47
76
/* * `true` if anonymous namespace members should be extracted and displayed.
48
77
49
78
In some cases anonymous namespace members will
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ enum class TypeKind
45
45
MemberPointer,
46
46
Array,
47
47
Function,
48
+ // KRYSTIAN FIXME: get rid of PackTypeInfo
48
49
Pack
49
50
};
50
51
Original file line number Diff line number Diff line change 1
1
{{ #if pointee-type ~}}
2
2
{{~> declarator-before pointee-type ~}}
3
3
{{ #if (or (eq pointee-type.kind " array" ) (eq pointee-type.kind " function" ))}} ({{ /if ~}}
4
- {{ else if element-type~}}
5
- {{~> declarator-before element-type ~}}
6
- {{ else if return-type~}}
7
- {{~> declarator-before return-type ~}}
8
- {{ else if pattern-type~}}
9
- {{~> declarator-before pattern-type }} ...
10
4
{{ ~/if ~}}
11
- {{ #if parent-type ~}}
12
- {{ #if parent-type }} {{> declarator parent-type }} ::{{ /if ~}}
13
- {{ /if ~}}
5
+ {{ #if element-type ~}} {{~> declarator-before element-type ~}} {{ /if ~}}
6
+ {{ #if return-type ~}} {{~> declarator-before return-type ~}} {{ /if ~}}
7
+ {{ #if pattern-type ~}} {{~> declarator-before pattern-type }} ...{{ /if ~}}
8
+ {{ #if parent-type ~}} {{> declarator parent-type }} ::{{ /if ~}}
14
9
{{ #if (eq kind " lvalue-reference" )}} & {{ /if ~}}
15
10
{{ #if (eq kind " rvalue-reference" )}} && {{ /if ~}}
16
11
{{ #if (eq kind " pointer" )}} *{{ /if ~}}
Original file line number Diff line number Diff line change 1
1
{{> declarator-before .~}}
2
2
{{ ~#if decl-name }} {{ decl-name ~}}
3
- {{ ~#if decl-name-targs }} {{> template-args args =decl-name-targs }} {{ /if ~}}
3
+ {{ ~#if decl-name-targs ~ }}{{> template-args args =decl-name-targs }} {{ ~ /if~}}
4
4
{{ ~/if ~}}
5
5
{{~> declarator-after }}
Original file line number Diff line number Diff line change 12
12
{{#if (eq class "normal")~}}
13
13
{{>declarator-before return}}
14
14
15
- {{name~}}
16
15
{{#if (eq template.kind "explicit")~}}
16
+ {{#if template.primary.id~}}{{>xref template.primary}}[{{name}}]{{else}}{{name}}{{/if~}}
17
17
{{~>template-args args=template.args~}}
18
+ {{else~}}
19
+ {{name~}}
18
20
{{/if~}}
19
21
{{else if (neq class "conversion")~}}
20
22
{{name~}}
Original file line number Diff line number Diff line change 9
9
----
10
10
{{#if template}}{{>template-head template}}
11
11
{{/if~}}
12
- {{symbol.tag}} {{symbol.name~}}
13
- {{#if (or (eq symbol.template.kind "explicit") (eq symbol.template.kind "partial"))~}}
14
- {{~>template-args args=symbol.template.args}}
12
+ {{#if (or (eq template.kind "explicit") (eq template.kind "partial"))~}}
13
+ {{tag}} {{#if template.primary.id~}}{{>xref template.primary}}[{{name}}]{{else}}{{name}}{{/if~}}
14
+ {{~>template-args args=template.args~}}
15
+ {{else~}}
16
+ {{tag}} {{name~}}
15
17
{{/if~}}
16
18
{{#unless symbol.bases}}
17
19
;
Original file line number Diff line number Diff line change 15
15
{{/if~}}
16
16
{{#if symbol.isThreadLocal}}thread_local
17
17
{{/if~}}
18
- {{>declarator-before symbol.type}} {{symbol.name~}}
19
- {{#if (or (eq symbol.template.kind "explicit") (eq symbol.template.kind "partial"))~}}
20
- {{~>template-args args=symbol.template.args}}
18
+ {{#if (or (eq template.kind "explicit") (eq template.kind "partial"))~}}
19
+ {{>declarator-before symbol.type}} {{#if template.primary.id~}}{{>xref template.primary}}[{{name}}]{{else}}{{name}}{{/if~}}
20
+ {{~>template-args args=template.args~}}
21
+ {{else~}}
22
+ {{>declarator-before symbol.type}} {{name~}}
21
23
{{/if~}}
22
24
{{>declarator-after symbol.type~}}
23
25
;
You can’t perform that action at this time.
0 commit comments