quieten the clang fallthrough warnings
Change-Id: I73f068971a6908153d887e34425076e6194c657d
This commit is contained in:
@@ -334,7 +334,7 @@ Found findEntity(
|
||||
break;
|
||||
}
|
||||
assert(e->entity.is());
|
||||
// fall through
|
||||
SAL_FALLTHROUGH;
|
||||
case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL:
|
||||
if (e->entity->getSort() == unoidl::Entity::SORT_TYPEDEF) {
|
||||
if (typedefed != nullptr) {
|
||||
@@ -449,7 +449,7 @@ Found findEntity(
|
||||
return FOUND_ERROR;
|
||||
}
|
||||
assert(e->entity.is());
|
||||
// fall through
|
||||
SAL_FALLTHROUGH;
|
||||
case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL:
|
||||
switch (e->entity->getSort()) {
|
||||
case unoidl::Entity::SORT_ENUM_TYPE:
|
||||
@@ -679,7 +679,7 @@ Found findEntity(
|
||||
break;
|
||||
}
|
||||
assert(e->entity.is());
|
||||
// fall through
|
||||
SAL_FALLTHROUGH;
|
||||
case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL:
|
||||
switch (e->entity->getSort()) {
|
||||
case unoidl::Entity::SORT_ENUM_TYPE:
|
||||
@@ -745,7 +745,7 @@ Found findEntity(
|
||||
return FOUND_ERROR;
|
||||
}
|
||||
assert(e->entity.is());
|
||||
// fall through
|
||||
SAL_FALLTHROUGH;
|
||||
case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL:
|
||||
if (e->entity->getSort()
|
||||
== unoidl::Entity::SORT_POLYMORPHIC_STRUCT_TYPE_TEMPLATE)
|
||||
@@ -776,7 +776,7 @@ Found findEntity(
|
||||
t = unoidl::detail::SourceProviderType(n, e, args);
|
||||
break;
|
||||
}
|
||||
// fall through
|
||||
SAL_FALLTHROUGH;
|
||||
case unoidl::detail::SourceProviderEntity::KIND_INTERFACE_DECL:
|
||||
case unoidl::detail::SourceProviderEntity::KIND_PUBLISHED_INTERFACE_DECL:
|
||||
error(
|
||||
@@ -3806,7 +3806,7 @@ type:
|
||||
break;
|
||||
}
|
||||
assert(ent->entity.is());
|
||||
// fall through
|
||||
SAL_FALLTHROUGH;
|
||||
case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL:
|
||||
if (data->publishedContext
|
||||
&& ent->entity->getSort() != unoidl::Entity::SORT_MODULE
|
||||
@@ -3853,7 +3853,7 @@ type:
|
||||
break;
|
||||
case unoidl::Entity::SORT_TYPEDEF:
|
||||
assert(false && "this cannot happen");
|
||||
// fall through
|
||||
SAL_FALLTHROUGH;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -3866,7 +3866,7 @@ type:
|
||||
+ " used in published context"));
|
||||
YYERROR;
|
||||
}
|
||||
// fall through
|
||||
SAL_FALLTHROUGH;
|
||||
case unoidl::detail::SourceProviderEntity::KIND_PUBLISHED_INTERFACE_DECL:
|
||||
$$ = new unoidl::detail::SourceProviderType(
|
||||
unoidl::detail::SourceProviderType::TYPE_INTERFACE, name,
|
||||
@@ -3918,7 +3918,7 @@ type:
|
||||
break;
|
||||
}
|
||||
assert(ent->entity.is());
|
||||
// fall through
|
||||
SAL_FALLTHROUGH;
|
||||
case unoidl::detail::SourceProviderEntity::KIND_EXTERNAL:
|
||||
if (ent->entity->getSort()
|
||||
== unoidl::Entity::SORT_POLYMORPHIC_STRUCT_TYPE_TEMPLATE)
|
||||
@@ -4445,7 +4445,7 @@ bool parse(OUString const & uri, SourceProviderScannerData * data) {
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
// fall through
|
||||
SAL_FALLTHROUGH;
|
||||
case 1:
|
||||
throw FileFormatException(
|
||||
uri,
|
||||
|
Reference in New Issue
Block a user