MCPcopy Create free account
hub / github.com/KDAB/codebrowser / CommentHandler

Class CommentHandler

generator/commenthandler.h:36–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34class Generator;
35
36class CommentHandler {
37 struct CommentVisitor;
38public:
39
40 struct Doc {
41 std::string content;
42 clang::SourceLocation loc;
43 };
44
45 std::multimap<std::string, Doc> docs;
46
47 // fileId -> [ref, global_visibility]
48 std::multimap<clang::SourceLocation, std::pair<std::string, bool>> decl_offsets;
49
50 /**
51 * Handle the comment startig at @a commentstart within @a bufferStart with length @a len.
52 * Search for corresponding declaration in the given source location interval
53 * @a commentLoc is the position of the comment
54 */
55 void handleComment(Annotator &A, Generator& generator, clang::Sema& Sema,
56 const char* bufferStart, int commentStart, int len,
57 clang::SourceLocation searchLocBegin, clang::SourceLocation searchLocEnd,
58 clang::SourceLocation commentLoc);
59
60};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected