mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Tell clang-tidy that L
is a fine name for a local pointer
This commit is contained in:
parent
2cf18fbf93
commit
0f0481955d
2 changed files with 5 additions and 1 deletions
|
@ -54,3 +54,7 @@ CheckOptions:
|
|||
value: camelBack
|
||||
- key: readability-implicit-bool-conversion.AllowPointerConditions
|
||||
value: true
|
||||
|
||||
# Lua state
|
||||
- key: readability-identifier-naming.LocalPointerIgnoredRegexp
|
||||
value: ^L$
|
||||
|
|
|
@ -287,7 +287,7 @@ QString PluginController::tryExecPluginCommand(const QString &commandName,
|
|||
{
|
||||
const auto &funcName = it->second;
|
||||
|
||||
auto *L = plugin->state_; // NOLINT
|
||||
auto *L = plugin->state_;
|
||||
lua_getfield(L, LUA_REGISTRYINDEX, funcName.toStdString().c_str());
|
||||
lua::push(L, ctx);
|
||||
|
||||
|
|
Loading…
Reference in a new issue