Parse documentation comments
This commit is contained in:
parent
e787b845d5
commit
183aeaafde
21 changed files with 451 additions and 45 deletions
|
|
@ -18,10 +18,25 @@ namespace cppast
|
|||
unsigned line;
|
||||
};
|
||||
|
||||
struct pp_doc_comment
|
||||
{
|
||||
std::string comment;
|
||||
unsigned line;
|
||||
enum
|
||||
{
|
||||
c,
|
||||
cpp,
|
||||
end_of_line,
|
||||
} kind;
|
||||
|
||||
bool matches(const cpp_entity& e, unsigned line);
|
||||
};
|
||||
|
||||
struct preprocessor_output
|
||||
{
|
||||
std::string source;
|
||||
std::vector<pp_entity> entities;
|
||||
std::string source;
|
||||
std::vector<pp_entity> entities;
|
||||
std::vector<pp_doc_comment> comments;
|
||||
};
|
||||
|
||||
preprocessor_output preprocess(const libclang_compile_config& config, const char* path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue