Skip to content

Commit f9111c9

Browse files
committed
refactor includes
1 parent 3945563 commit f9111c9

32 files changed

+257
-167
lines changed

include/mrdox/ForwardDecls.hpp

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//
2+
// This is a derivative work. originally part of the LLVM Project.
3+
// Licensed under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
// Copyright (c) 2023 Vinnie Falco ([email protected])
8+
//
9+
// Official repository: https://github.com/cppalliance/mrdox
10+
//
11+
12+
#ifndef MRDOX_FORWARD_DECLS_HPP
13+
#define MRDOX_FORWARD_DECLS_HPP
14+
15+
namespace clang {
16+
namespace mrdox {
17+
18+
class Config;
19+
class Corpus;
20+
21+
struct BaseRecordInfo;
22+
struct EnumInfo;
23+
struct FieldTypeInfo;
24+
struct FunctionInfo;
25+
struct Info;
26+
struct Location;
27+
struct NamespaceInfo;
28+
struct RecordInfo;
29+
struct Scope;
30+
struct SymbolInfo;
31+
struct TemplateParamInfo;
32+
struct TypedefInfo;
33+
34+
struct Reporter;
35+
36+
} // mrdox
37+
} // clang
38+
39+
#endif

include/mrdox/Function.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
#include "FieldType.hpp"
1616
#include <mrdox/Function.hpp>
1717
#include "List.hpp"
18-
#include "Symbol.hpp"
19-
#include "Template.hpp"
20-
#include "Types.hpp"
18+
#include <mrdox/Symbol.hpp>
19+
#include <mrdox/Template.hpp>
20+
#include <mrdox/Types.hpp>
2121
#include <clang/Basic/Specifiers.h>
2222
#include <llvm/ADT/Optional.h>
2323
#include <llvm/ADT/SmallString.h>

include/mrdox/Info.hpp

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

1515
#include "Javadoc.hpp"
1616
#include "Reference.hpp"
17-
#include "Types.hpp"
17+
#include <mrdox/Types.hpp>
1818
#include <llvm/ADT/StringRef.h>
1919
#include <llvm/ADT/SmallString.h>
2020
#include <llvm/ADT/SmallVector.h>
File renamed without changes.

include/mrdox/Metadata.hpp

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
//
2+
// This is a derivative work. originally part of the LLVM Project.
3+
// Licensed under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
// Copyright (c) 2023 Vinnie Falco ([email protected])
8+
//
9+
// Official repository: https://github.com/cppalliance/mrdox
10+
//
11+
12+
#ifndef MRDOX_METADATA_HPP
13+
#define MRDOX_METADATA_HPP
14+
15+
#include "Representation.h"
16+
17+
#include <mrdox/Config.hpp>
18+
#include <mrdox/Corpus.hpp>
19+
#include <mrdox/Function.hpp>
20+
#include <mrdox/Info.hpp>
21+
#include <mrdox/Namespace.hpp>
22+
#include <mrdox/Scope.hpp>
23+
#include <mrdox/Symbol.hpp>
24+
#include <mrdox/Template.hpp>
25+
#include <mrdox/TemplateParam.hpp>
26+
#include <mrdox/Type.hpp>
27+
#include <mrdox/Typedef.hpp>
28+
#include <mrdox/Types.hpp>
29+
30+
#endif

include/mrdox/Record.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
#include "MemberType.hpp"
1616
#include "Reference.hpp"
1717
#include <mrdox/Scope.hpp>
18-
#include "Symbol.hpp"
19-
#include "Template.hpp"
20-
#include "Types.hpp"
18+
#include <mrdox/Symbol.hpp>
19+
#include <mrdox/Template.hpp>
20+
#include <mrdox/Types.hpp>
2121
#include <clang/AST/Type.h>
2222
#include <llvm/ADT/Optional.h>
2323
#include <llvm/ADT/SmallVector.h>

include/mrdox/Scope.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define MRDOX_SCOPE_HPP
1414

1515
#include "Enum.hpp"
16-
#include "Typedef.hpp"
16+
#include <mrdox/Typedef.hpp>
1717
#include <mrdox/Function.hpp>
1818
#include <vector>
1919

source/lib/Symbol.hpp renamed to include/mrdox/Symbol.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define MRDOX_SYMBOL_HPP
1414

1515
#include <mrdox/Info.hpp>
16-
#include "Location.hpp"
16+
#include <mrdox/Location.hpp>
1717
#include "llvm/ADT/Optional.h"
1818

1919
namespace clang {

source/lib/Template.hpp renamed to include/mrdox/Template.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef MRDOX_TEMPLATE_HPP
1313
#define MRDOX_TEMPLATE_HPP
1414

15-
#include "TemplateParam.hpp"
15+
#include <mrdox/TemplateParam.hpp>
1616
#include <llvm/ADT/Optional.h>
1717

1818
namespace clang {
File renamed without changes.

0 commit comments

Comments
 (0)