File tree Expand file tree Collapse file tree 10 files changed +69
-107
lines changed Expand file tree Collapse file tree 10 files changed +69
-107
lines changed Original file line number Diff line number Diff line change @@ -862,6 +862,22 @@ tagToString(TagTypeKind k) noexcept
862
862
}
863
863
}
864
864
865
+ // ------------------------------------------------
866
+
867
+ void
868
+ AdocWriter::
869
+ declareRecord (
870
+ RecordInfo const & I)
871
+ {
872
+ }
873
+
874
+ void
875
+ AdocWriter::
876
+ declareFunction (
877
+ FunctionInfo const & I)
878
+ {
879
+ }
880
+
865
881
} // adoc
866
882
} // mrdox
867
883
} // clang
Original file line number Diff line number Diff line change @@ -144,6 +144,11 @@ class AdocWriter
144
144
void endSection ();
145
145
146
146
static llvm::StringRef tagToString (TagTypeKind k) noexcept ;
147
+
148
+ // --------------------------------------------
149
+
150
+ void declareRecord (RecordInfo const & I);
151
+ void declareFunction (FunctionInfo const & I);
147
152
};
148
153
149
154
} // adoc
Original file line number Diff line number Diff line change 12
12
13
13
#include " ASTVisitor.hpp"
14
14
#include " Bitcode.hpp"
15
- #include " Commands.hpp"
16
15
#include " ParseJavadoc.hpp"
17
16
#include " ConfigImpl.hpp"
18
17
#include " Metadata/FunctionKind.hpp"
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
// Official repository: https://github.com/cppalliance/mrdox
10
10
//
11
11
12
- #include " clangASTComment.hpp"
13
12
#include " ParseJavadoc.hpp"
14
13
#include < mrdox/Metadata/Javadoc.hpp>
15
14
#include < clang/AST/CommentCommandTraits.h>
16
15
#include < clang/AST/ASTContext.h>
17
16
#include < clang/AST/RawCommentList.h>
17
+
18
+ #ifdef _MSC_VER
19
+ #pragma warning(push)
20
+ #pragma warning(disable: 5054) // C5054: operator '+': deprecated between enumerations of different types
21
+ #endif
22
+ #include < clang/AST/Comment.h>
23
+ #include < clang/AST/CommentVisitor.h>
24
+ #ifdef _MSC_VER
25
+ #pragma warning(pop)
26
+ #endif
27
+
18
28
#include < llvm/Support/JSON.h>
19
29
#include < cassert>
20
30
21
- #include < llvm/Support/Mutex.h>
22
-
23
31
/*
24
32
Comment Types
25
33
@@ -542,6 +550,23 @@ dumpCommentCommands()
542
550
543
551
// ------------------------------------------------
544
552
553
+ void
554
+ initCustomCommentCommands (ASTContext& context)
555
+ {
556
+ auto & traits = context.getCommentCommandTraits ();
557
+
558
+ {
559
+ // auto cmd = traits.registerBlockCommand("mrdox");
560
+ // auto cmd = traits.registerBlockCommand("par");
561
+
562
+ // CommentOptions opt;
563
+ // opt.BlockCommandNames.push_back("par");
564
+ // traits.registerCommentOptions(opt);
565
+ }
566
+
567
+ (void )traits;
568
+ }
569
+
545
570
Javadoc
546
571
parseJavadoc (
547
572
RawComment const * RC,
Original file line number Diff line number Diff line change 15
15
#include < mrdox/Platform.hpp>
16
16
#include < mrdox/Reporter.hpp>
17
17
#include < mrdox/Metadata/Javadoc.hpp>
18
- #include < clang/AST/Decl.h>
19
- #include " clangASTComment.hpp"
20
- #include < clang/AST/ASTContext.h>
21
18
22
19
namespace clang {
20
+
21
+ class Decl ;
22
+ class ASTContext ;
23
+ class RawComment ;
24
+
23
25
namespace mrdox {
24
26
27
+ /* * Initialize clang to recognize our custom comments.
28
+
29
+ Safe to be called more than once, but
30
+ not concurrently.
31
+ */
32
+ void
33
+ initCustomCommentCommands (
34
+ ASTContext& ctx);
35
+
25
36
/* * Return a complete javadoc object for a raw comment.
26
37
*/
27
38
Javadoc
@@ -31,6 +42,7 @@ parseJavadoc(
31
42
Reporter& R);
32
43
33
44
} // mrdox
45
+
34
46
} // clang
35
47
36
48
#endif
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ class Interface::Build
79
79
for (auto const & B : From.Bases )
80
80
{
81
81
auto actualAccess = effectiveAccess (access, B.access );
82
+ // VFALCO temporary hack to avoid looking up IDs
83
+ // which for metadata that is not emitted.
84
+ if (! corpus_.find (B.id ))
85
+ continue ;
82
86
append (actualAccess, corpus_.get <RecordInfo>(B.id ));
83
87
}
84
88
Original file line number Diff line number Diff line change 9
9
// Official repository: https://github.com/cppalliance/mrdox
10
10
//
11
11
12
- #include " AST/Commands .hpp"
12
+ #include " AST/ParseJavadoc .hpp"
13
13
#include < mrdox/Error.hpp>
14
14
#include < mrdox/Generator.hpp>
15
15
#include < llvm/ADT/SmallString.h>
You can’t perform that action at this time.
0 commit comments