| 34 | class Generator; |
| 35 | |
| 36 | class CommentHandler { |
| 37 | struct CommentVisitor; |
| 38 | public: |
| 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected