mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Fix readability-redundant-string-cstr clang-tidy warning
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
d03ae2abfa
commit
0610865811
@ -82,7 +82,7 @@ namespace
|
||||
{
|
||||
for (auto qt : collections::range(QuotaType::MAX))
|
||||
{
|
||||
if (ParserKeyword{QuotaTypeInfo::get(qt).keyword.c_str()}.ignore(pos, expected))
|
||||
if (ParserKeyword{QuotaTypeInfo::get(qt).keyword}.ignore(pos, expected))
|
||||
{
|
||||
quota_type = qt;
|
||||
return true;
|
||||
|
@ -17,8 +17,8 @@ namespace
|
||||
for (auto i : collections::range(AccessEntityType::MAX))
|
||||
{
|
||||
const auto & type_info = AccessEntityTypeInfo::get(i);
|
||||
if (ParserKeyword{type_info.name.c_str()}.ignore(pos, expected)
|
||||
|| (!type_info.alias.empty() && ParserKeyword{type_info.alias.c_str()}.ignore(pos, expected)))
|
||||
if (ParserKeyword{type_info.name}.ignore(pos, expected)
|
||||
|| (!type_info.alias.empty() && ParserKeyword{type_info.alias}.ignore(pos, expected)))
|
||||
{
|
||||
type = i;
|
||||
return true;
|
||||
|
@ -15,8 +15,8 @@ namespace
|
||||
for (auto i : collections::range(AccessEntityType::MAX))
|
||||
{
|
||||
const auto & type_info = AccessEntityTypeInfo::get(i);
|
||||
if (ParserKeyword{type_info.plural_name.c_str()}.ignore(pos, expected)
|
||||
|| (!type_info.plural_alias.empty() && ParserKeyword{type_info.plural_alias.c_str()}.ignore(pos, expected)))
|
||||
if (ParserKeyword{type_info.plural_name}.ignore(pos, expected)
|
||||
|| (!type_info.plural_alias.empty() && ParserKeyword{type_info.plural_alias}.ignore(pos, expected)))
|
||||
{
|
||||
type = i;
|
||||
return true;
|
||||
|
@ -25,8 +25,8 @@ namespace
|
||||
for (auto i : collections::range(AccessEntityType::MAX))
|
||||
{
|
||||
const auto & type_info = AccessEntityTypeInfo::get(i);
|
||||
if (ParserKeyword{type_info.name.c_str()}.ignore(pos, expected)
|
||||
|| (!type_info.alias.empty() && ParserKeyword{type_info.alias.c_str()}.ignore(pos, expected)))
|
||||
if (ParserKeyword{type_info.name}.ignore(pos, expected)
|
||||
|| (!type_info.alias.empty() && ParserKeyword{type_info.alias}.ignore(pos, expected)))
|
||||
{
|
||||
type = i;
|
||||
plural = false;
|
||||
@ -37,8 +37,8 @@ namespace
|
||||
for (auto i : collections::range(AccessEntityType::MAX))
|
||||
{
|
||||
const auto & type_info = AccessEntityTypeInfo::get(i);
|
||||
if (ParserKeyword{type_info.plural_name.c_str()}.ignore(pos, expected)
|
||||
|| (!type_info.plural_alias.empty() && ParserKeyword{type_info.plural_alias.c_str()}.ignore(pos, expected)))
|
||||
if (ParserKeyword{type_info.plural_name}.ignore(pos, expected)
|
||||
|| (!type_info.plural_alias.empty() && ParserKeyword{type_info.plural_alias}.ignore(pos, expected)))
|
||||
{
|
||||
type = i;
|
||||
plural = true;
|
||||
|
Loading…
Reference in New Issue
Block a user