mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +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))
|
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;
|
quota_type = qt;
|
||||||
return true;
|
return true;
|
||||||
|
@ -17,8 +17,8 @@ namespace
|
|||||||
for (auto i : collections::range(AccessEntityType::MAX))
|
for (auto i : collections::range(AccessEntityType::MAX))
|
||||||
{
|
{
|
||||||
const auto & type_info = AccessEntityTypeInfo::get(i);
|
const auto & type_info = AccessEntityTypeInfo::get(i);
|
||||||
if (ParserKeyword{type_info.name.c_str()}.ignore(pos, expected)
|
if (ParserKeyword{type_info.name}.ignore(pos, expected)
|
||||||
|| (!type_info.alias.empty() && ParserKeyword{type_info.alias.c_str()}.ignore(pos, expected)))
|
|| (!type_info.alias.empty() && ParserKeyword{type_info.alias}.ignore(pos, expected)))
|
||||||
{
|
{
|
||||||
type = i;
|
type = i;
|
||||||
return true;
|
return true;
|
||||||
|
@ -15,8 +15,8 @@ namespace
|
|||||||
for (auto i : collections::range(AccessEntityType::MAX))
|
for (auto i : collections::range(AccessEntityType::MAX))
|
||||||
{
|
{
|
||||||
const auto & type_info = AccessEntityTypeInfo::get(i);
|
const auto & type_info = AccessEntityTypeInfo::get(i);
|
||||||
if (ParserKeyword{type_info.plural_name.c_str()}.ignore(pos, expected)
|
if (ParserKeyword{type_info.plural_name}.ignore(pos, expected)
|
||||||
|| (!type_info.plural_alias.empty() && ParserKeyword{type_info.plural_alias.c_str()}.ignore(pos, expected)))
|
|| (!type_info.plural_alias.empty() && ParserKeyword{type_info.plural_alias}.ignore(pos, expected)))
|
||||||
{
|
{
|
||||||
type = i;
|
type = i;
|
||||||
return true;
|
return true;
|
||||||
|
@ -25,8 +25,8 @@ namespace
|
|||||||
for (auto i : collections::range(AccessEntityType::MAX))
|
for (auto i : collections::range(AccessEntityType::MAX))
|
||||||
{
|
{
|
||||||
const auto & type_info = AccessEntityTypeInfo::get(i);
|
const auto & type_info = AccessEntityTypeInfo::get(i);
|
||||||
if (ParserKeyword{type_info.name.c_str()}.ignore(pos, expected)
|
if (ParserKeyword{type_info.name}.ignore(pos, expected)
|
||||||
|| (!type_info.alias.empty() && ParserKeyword{type_info.alias.c_str()}.ignore(pos, expected)))
|
|| (!type_info.alias.empty() && ParserKeyword{type_info.alias}.ignore(pos, expected)))
|
||||||
{
|
{
|
||||||
type = i;
|
type = i;
|
||||||
plural = false;
|
plural = false;
|
||||||
@ -37,8 +37,8 @@ namespace
|
|||||||
for (auto i : collections::range(AccessEntityType::MAX))
|
for (auto i : collections::range(AccessEntityType::MAX))
|
||||||
{
|
{
|
||||||
const auto & type_info = AccessEntityTypeInfo::get(i);
|
const auto & type_info = AccessEntityTypeInfo::get(i);
|
||||||
if (ParserKeyword{type_info.plural_name.c_str()}.ignore(pos, expected)
|
if (ParserKeyword{type_info.plural_name}.ignore(pos, expected)
|
||||||
|| (!type_info.plural_alias.empty() && ParserKeyword{type_info.plural_alias.c_str()}.ignore(pos, expected)))
|
|| (!type_info.plural_alias.empty() && ParserKeyword{type_info.plural_alias}.ignore(pos, expected)))
|
||||||
{
|
{
|
||||||
type = i;
|
type = i;
|
||||||
plural = true;
|
plural = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user