Fix error reporting in preprocessor
This commit is contained in:
parent
17477319fb
commit
a8e2676f36
3 changed files with 3 additions and 9 deletions
|
|
@ -35,7 +35,8 @@ inline std::unique_ptr<cppast::cpp_file> parse(const cppast::cpp_entity_index& i
|
|||
stderr_diagnostic_logger logger;
|
||||
libclang_parser p(type_safe::ref(logger));
|
||||
|
||||
auto result = p.parse(idx, name, config);
|
||||
std::unique_ptr<cppast::cpp_file> result;
|
||||
REQUIRE_NOTHROW(result = p.parse(idx, name, config));
|
||||
REQUIRE(!logger.error_logged());
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue