Add diagnostic_logger
This commit is contained in:
parent
a0c2eece5b
commit
108fd1b2ee
8 changed files with 165 additions and 15 deletions
|
|
@ -29,7 +29,8 @@ std::unique_ptr<cppast::cpp_file> parse(const cppast::cpp_entity_index& idx, con
|
|||
libclang_compile_config config;
|
||||
config.set_flags(cpp_standard::cpp_latest);
|
||||
|
||||
libclang_parser p;
|
||||
static stderr_diagnostic_logger logger;
|
||||
libclang_parser p(type_safe::ref(logger));
|
||||
return p.parse(idx, name, config);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue