Skip to content

Commit 78a4394

Browse files
committed
remove unused MetadataFwd.hpp
#refactor
1 parent 9eec331 commit 78a4394

File tree

15 files changed

+26
-95
lines changed

15 files changed

+26
-95
lines changed

include/mrdocs/Metadata.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <mrdocs/Metadata/Javadoc.hpp>
3434
#include <mrdocs/Metadata/Name.hpp>
3535
#include <mrdocs/Metadata/Source.hpp>
36-
#include <mrdocs/Metadata/Symbols.hpp>
36+
#include <mrdocs/Metadata/SymbolID.hpp>
3737
#include <mrdocs/Metadata/Template.hpp>
3838
#include <mrdocs/Metadata/Type.hpp>
3939

include/mrdocs/Metadata/Info.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <mrdocs/Metadata/ExtractionMode.hpp>
1919
#include <mrdocs/Metadata/Javadoc.hpp>
2020
#include <mrdocs/Metadata/Specifiers.hpp>
21-
#include <mrdocs/Metadata/Symbols.hpp>
21+
#include <mrdocs/Metadata/SymbolID.hpp>
2222
#include <mrdocs/Metadata/Source.hpp>
2323
#include <mrdocs/Metadata/DomCorpus.hpp>
2424
#include <mrdocs/Support/Concepts.hpp>

include/mrdocs/Metadata/Javadoc.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define MRDOCS_API_METADATA_JAVADOC_HPP
1515

1616
#include <mrdocs/Platform.hpp>
17-
#include <mrdocs/Metadata/Symbols.hpp>
17+
#include <mrdocs/Metadata/SymbolID.hpp>
1818
#include <mrdocs/Support/Visitor.hpp>
1919
#include <mrdocs/Support/Concepts.hpp>
2020
#include <mrdocs/ADT/Polymorphic.hpp>

include/mrdocs/Metadata/Symbols.hpp renamed to include/mrdocs/Metadata/SymbolID.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// Official repository: https://github.com/cppalliance/mrdocs
1111
//
1212

13-
#ifndef MRDOCS_API_METADATA_SYMBOLS_HPP
14-
#define MRDOCS_API_METADATA_SYMBOLS_HPP
13+
#ifndef MRDOCS_API_METADATA_SYMBOLID_HPP
14+
#define MRDOCS_API_METADATA_SYMBOLID_HPP
1515

1616
#include <mrdocs/Platform.hpp>
1717
#include <mrdocs/ADT/Optional.hpp>

include/mrdocs/Metadata/Type.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
#include <mrdocs/Dom.hpp>
1818
#include <mrdocs/Metadata/Expression.hpp>
1919
#include <mrdocs/Metadata/Specifiers.hpp>
20-
#include <mrdocs/Metadata/Symbols.hpp>
21-
#include <mrdocs/MetadataFwd.hpp>
20+
#include <mrdocs/Metadata/SymbolID.hpp>
2221
#include <mrdocs/Platform.hpp>
2322
#include <mrdocs/Support/TypeTraits.hpp>
2423

2524
namespace clang::mrdocs {
2625

26+
struct NameInfo;
27+
struct TypeInfo;
28+
2729
std::strong_ordering
2830
operator<=>(Polymorphic<NameInfo> const& lhs, Polymorphic<NameInfo> const& rhs);
2931

include/mrdocs/MetadataFwd.hpp

Lines changed: 0 additions & 72 deletions
This file was deleted.

src/lib/AST/ClangHelpers.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#ifndef MRDOCS_LIB_AST_CLANGHELPERS_HPP
1515
#define MRDOCS_LIB_AST_CLANGHELPERS_HPP
1616

17-
#include <mrdocs/Metadata/Symbols.hpp>
17+
#include <mrdocs/Metadata/SymbolID.hpp>
1818
#include <mrdocs/Support/Error.hpp>
1919
#include <lib/AST/InstantiatedFromVisitor.hpp>
2020
#include <clang/AST/Expr.h>

src/lib/AST/ParseRef.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
namespace clang::mrdocs {
2222

23+
struct TArg;
24+
2325
struct ParsedRefComponent {
2426
// Component name
2527
std::string_view Name;

src/lib/Gen/hbs/SinglePageVisitor.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#define MRDOCS_LIB_GEN_HBS_SINGLEPAGEVISITOR_HPP
1414

1515
#include "Builder.hpp"
16-
#include <mrdocs/MetadataFwd.hpp>
1716
#include <mrdocs/Support/ExecutorGroup.hpp>
1817
#include <mutex>
1918
#include <ostream>

src/lib/Gen/xml/XMLGenerator.hpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@
1414

1515
#include <mrdocs/Platform.hpp>
1616
#include <mrdocs/Generator.hpp>
17-
#include <mrdocs/MetadataFwd.hpp>
1817
#include <mrdocs/Metadata/Javadoc.hpp>
1918
#include <optional>
2019

21-
namespace clang {
22-
namespace mrdocs {
23-
namespace xml {
20+
namespace clang::mrdocs::xml {
2421

2522
//------------------------------------------------
2623

@@ -50,8 +47,6 @@ struct XMLGenerator : Generator
5047
Corpus const& corpus) const override;
5148
};
5249

53-
} // xml
54-
} // mrdocs
55-
} // clang
50+
} // clang::mrdocs::xml
5651

5752
#endif

0 commit comments

Comments
 (0)