Skip to content

Commit 6829d3d

Browse files
committed
Add ADT directory
1 parent 0d3e0c7 commit 6829d3d

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

include/mrdox/Metadata/BitField.hpp renamed to include/mrdox/ADT/BitField.hpp

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

13-
#ifndef MRDOX_METADATA_BITFIELD_HPP
14-
#define MRDOX_METADATA_BITFIELD_HPP
13+
#ifndef MRDOX_ADT_BITFIELD_HPP
14+
#define MRDOX_ADT_BITFIELD_HPP
1515

1616
#include <cstdint>
1717
#include <limits>
@@ -20,17 +20,15 @@
2020
namespace clang {
2121
namespace mrdox {
2222

23-
24-
constexpr std::uint32_t makeMask(unsigned char Offset,
25-
unsigned char Size)
23+
constexpr std::uint32_t makeMask(
24+
unsigned char Offset, unsigned char Size)
2625
{
2726
auto init = std::numeric_limits<std::uint32_t>::max();
2827
auto offset = init << Offset;
2928
auto rest = init >>= (sizeof(std::uint32_t) * 8) - (Offset + Size);
3029
return offset & rest;
3130
}
3231

33-
3432
template<unsigned char Offset,
3533
unsigned char Size = 1u,
3634
typename T = std::uint32_t>
@@ -77,7 +75,7 @@ using BitFlag = BitField<Offset, 1u, bool>;
7775

7876
using BitFieldFullValue = BitField<0, 32>;
7977

80-
}
81-
}
78+
} // mrdox
79+
} // clang
8280

83-
#endif //MRDOX_METADATA_BITFIELD_HPP
81+
#endif

include/mrdox/Metadata/FieldType.hpp

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

1515
#include <mrdox/Platform.hpp>
1616
#include <mrdox/Metadata/Type.hpp>
17-
#include <mrdox/Metadata/BitField.hpp>
17+
#include <mrdox/ADT/BitField.hpp>
1818
#include <llvm/ADT/SmallString.h>
1919
#include <utility>
2020

include/mrdox/Metadata/Function.hpp

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

1515
#include <mrdox/Platform.hpp>
16-
#include <mrdox/Metadata/BitField.hpp>
16+
#include <mrdox/ADT/BitField.hpp>
1717
#include <mrdox/Metadata/FieldType.hpp>
1818
#include <mrdox/Metadata/Function.hpp>
1919
#include <mrdox/Metadata/FunctionKind.hpp>

include/mrdox/Metadata/Record.hpp

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

1515
#include <mrdox/Platform.hpp>
1616
#include <mrdox/Metadata/Access.hpp>
17-
#include <mrdox/Metadata/BitField.hpp>
17+
#include <mrdox/ADT/BitField.hpp>
1818
#include <mrdox/Metadata/MemberType.hpp>
1919
#include <mrdox/Metadata/Reference.hpp>
2020
#include <mrdox/Metadata/Scope.hpp>

source/AST/BitcodeWriter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "BitcodeIDs.hpp"
2424
#include <mrdox/MetadataFwd.hpp>
2525
#include <mrdox/Metadata/Access.hpp>
26-
#include <mrdox/Metadata/BitField.hpp>
26+
#include <mrdox/ADT/BitField.hpp>
2727
#include <mrdox/Metadata/Javadoc.hpp>
2828
#include <clang/AST/AST.h>
2929
#include <llvm/ADT/DenseMap.h>

0 commit comments

Comments
 (0)