[breaking] Move error_logged() from logger to parser
This commit is contained in:
parent
6dd85cb7a7
commit
44708fff76
9 changed files with 47 additions and 20 deletions
|
|
@ -180,7 +180,7 @@ std::unique_ptr<cppast::cpp_file> parse_file(const cppast::libclang_compile_conf
|
|||
cppast::libclang_parser parser(type_safe::ref(logger));
|
||||
// parse the file
|
||||
auto file = parser.parse(idx, filename, config);
|
||||
if (fatal_error && logger.error_logged())
|
||||
if (fatal_error && parser.error())
|
||||
return nullptr;
|
||||
return file;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue