mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
clang-format: Set penalty for breaking after assignment operator
This commit is contained in:
parent
4423574d26
commit
9af6b2f48d
54 changed files with 255 additions and 247 deletions
16
src/Type.cc
16
src/Type.cc
|
@ -520,8 +520,8 @@ TableType::TableType(TypeListPtr ind, TypePtr yield)
|
|||
|
||||
if ( ! is_supported_index_type(tli, &unsupported_type_name) )
|
||||
{
|
||||
auto msg =
|
||||
util::fmt("index type containing '%s' is not supported", unsupported_type_name);
|
||||
auto msg = util::fmt("index type containing '%s' is not supported",
|
||||
unsupported_type_name);
|
||||
Error(msg, tli.get());
|
||||
SetError();
|
||||
break;
|
||||
|
@ -1720,8 +1720,8 @@ void EnumType::DescribeReST(ODesc* d, bool roles_only) const
|
|||
if ( doc->GetDeclaringScript() )
|
||||
enum_from_script = doc->GetDeclaringScript()->Name();
|
||||
|
||||
zeekygen::detail::IdentifierInfo* type_doc =
|
||||
detail::zeekygen_mgr->GetIdentifierInfo(GetName());
|
||||
zeekygen::detail::IdentifierInfo* type_doc = detail::zeekygen_mgr->GetIdentifierInfo(
|
||||
GetName());
|
||||
|
||||
if ( type_doc && type_doc->GetDeclaringScript() )
|
||||
type_from_script = type_doc->GetDeclaringScript()->Name();
|
||||
|
@ -2310,10 +2310,10 @@ TypePtr merge_types(const TypePtr& arg_t1, const TypePtr& arg_t2)
|
|||
// actually see those changes from the redef.
|
||||
return id->GetType();
|
||||
|
||||
std::string msg =
|
||||
util::fmt("incompatible enum types: '%s' and '%s'"
|
||||
" ('%s' enum type ID is invalid)",
|
||||
t1->GetName().data(), t2->GetName().data(), t1->GetName().data());
|
||||
std::string msg = util::fmt("incompatible enum types: '%s' and '%s'"
|
||||
" ('%s' enum type ID is invalid)",
|
||||
t1->GetName().data(), t2->GetName().data(),
|
||||
t1->GetName().data());
|
||||
t1->Error(msg.data(), t2);
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue