Add support for multiple namespace entities with the same name

This commit is contained in:
Jonathan Müller 2017-03-22 12:09:13 +01:00
commit d21d017d8a
13 changed files with 207 additions and 203 deletions

View file

@ -33,7 +33,10 @@ inline std::unique_ptr<cppast::cpp_file> parse(const cppast::cpp_entity_index& i
static stderr_diagnostic_logger logger;
libclang_parser p(type_safe::ref(logger));
return p.parse(idx, name, config);
auto result = p.parse(idx, name, config);
REQUIRE(!logger.error_logged());
return result;
}
template <typename T, typename Func>