Skip to content

Commit cbb74a9

Browse files
committed
assorted work
closes #226
1 parent 6e7bea1 commit cbb74a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1448
-1471
lines changed

include/mrdox/Corpus.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <mrdox/Config.hpp>
1717
#include <mrdox/MetadataFwd.hpp>
1818
#include <mrdox/Reporter.hpp>
19-
#include <mrdox/Metadata/Access.hpp>
2019
#include <mrdox/Metadata/Symbols.hpp>
2120
#include <clang/Tooling/Execution.h>
2221
#include <llvm/Support/Mutex.h>
@@ -147,6 +146,13 @@ class MRDOX_VISIBLE
147146
tooling::ToolExecutor& ex,
148147
std::shared_ptr<Config const> config,
149148
Reporter& R);
149+
150+
// KRYSTIAN NOTE: temporary
151+
MRDOX_DECL
152+
std::string&
153+
getFullyQualifiedName(
154+
const Info& I,
155+
std::string& temp) const;
150156
};
151157

152158
//------------------------------------------------

include/mrdox/Metadata/Access.hpp

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

include/mrdox/Metadata/Function.hpp

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#include <mrdox/Platform.hpp>
1717
#include <mrdox/ADT/BitField.hpp>
1818
#include <mrdox/Metadata/Field.hpp>
19-
#include <mrdox/Metadata/Function.hpp>
20-
#include <mrdox/Metadata/FunctionKind.hpp>
2119
#include <mrdox/Metadata/Symbol.hpp>
2220
#include <mrdox/Metadata/Symbols.hpp>
2321
#include <mrdox/Metadata/Template.hpp>
@@ -29,6 +27,80 @@
2927
namespace clang {
3028
namespace mrdox {
3129

30+
/** An enumeration of the different kinds of functions.
31+
*/
32+
enum class FunctionKind
33+
{
34+
// VFALCO The most frequent function kind should be
35+
// here, since the bitstream writer does not emit zeroes.
36+
Plain = 0,
37+
38+
// The operator kind values have to match the clang enumeration
39+
OpNew /* = clang::OverloadedOperatorKind::OO_New */,
40+
OpDelete,
41+
OpArray_New,
42+
OpArray_Delete,
43+
OpPlus,
44+
OpMinus,
45+
OpStar,
46+
OpSlash,
47+
OpPercent,
48+
OpCaret,
49+
OpAmp,
50+
OpPipe,
51+
OpTilde,
52+
OpExclaim,
53+
OpEqual,
54+
OpLess,
55+
OpGreater,
56+
OpPlusEqual,
57+
OpMinusEqual,
58+
OpStarEqual,
59+
OpSlashEqual,
60+
OpPercentEqual,
61+
OpCaretEqual,
62+
OpAmpEqual,
63+
OpPipeEqual,
64+
OpLessLess,
65+
OpGreaterGreater,
66+
OpLessLessEqual,
67+
OpGreaterGreaterEqual,
68+
OpEqualEqual,
69+
OpExclaimEqual,
70+
OpLessEqual,
71+
OpGreaterEqual,
72+
OpSpaceship,
73+
OpAmpAmp,
74+
OpPipePipe,
75+
OpPlusPlus,
76+
OpMinusMinus,
77+
OpComma,
78+
OpArrowStar,
79+
OpArrow,
80+
OpCall,
81+
OpSubscript,
82+
OpConditional,
83+
OpCoawait,
84+
NUM_OVERLOADED_OPERATORS /* = clang::OverloadedOperatorKind::NUM_OVERLOADED_OPERATORS */,
85+
86+
Destructor = NUM_OVERLOADED_OPERATORS,
87+
Constructor,
88+
Conversion
89+
};
90+
91+
/** Return the function kind corresponding to clang's enum
92+
*/
93+
FunctionKind
94+
getFunctionKind(
95+
OverloadedOperatorKind OOK) noexcept;
96+
97+
/** Return a unique string constant for the kind.
98+
*/
99+
llvm::StringRef
100+
getFunctionKindString(
101+
FunctionKind kind) noexcept;
102+
103+
32104
/** Bit constants used with function specifiers.
33105
*/
34106
union FnFlags0

include/mrdox/Metadata/FunctionKind.hpp

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

include/mrdox/Metadata/Info.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ struct Info
3636

3737
/** Kind of declaration.
3838
*/
39-
InfoType const IT = InfoType::IT_default;
39+
InfoType IT = InfoType::IT_default;
4040

4141
/** The unqualified name.
4242
*/
4343
std::string Name;
4444

4545
/** In-order List of parent namespaces.
4646
*/
47-
llvm::SmallVector<Reference, 4> Namespace;
47+
std::vector<SymbolID> Namespace;
4848

4949
/** The extracted javadoc for this declaration.
5050
*/
@@ -75,13 +75,14 @@ struct Info
7575
std::string
7676
extractName() const;
7777

78+
#if 0
7879
/** Return the fully qualified name.
7980
*/
8081
MRDOX_DECL
8182
std::string&
8283
getFullyQualifiedName(
8384
std::string& temp) const;
84-
85+
#endif
8586
/** Return a string representing the symbol type.
8687
8788
For example, "namespace", "class", et. al.

include/mrdox/Metadata/Interface.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/MetadataFwd.hpp>
17-
#include <mrdox/Metadata/Members.hpp>
17+
#include <mrdox/Metadata/Record.hpp>
1818
#include <span>
1919
#include <utility>
2020
#include <vector>

include/mrdox/Metadata/Members.hpp

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

0 commit comments

Comments
 (0)