Tell clang-tidy that L is a fine name for a local pointer

This commit is contained in:
Mm2PL 2023-02-07 22:00:07 +01:00
parent 2cf18fbf93
commit 0f0481955d
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9
2 changed files with 5 additions and 1 deletions

View file

@ -54,3 +54,7 @@ CheckOptions:
value: camelBack value: camelBack
- key: readability-implicit-bool-conversion.AllowPointerConditions - key: readability-implicit-bool-conversion.AllowPointerConditions
value: true value: true
# Lua state
- key: readability-identifier-naming.LocalPointerIgnoredRegexp
value: ^L$

View file

@ -287,7 +287,7 @@ QString PluginController::tryExecPluginCommand(const QString &commandName,
{ {
const auto &funcName = it->second; const auto &funcName = it->second;
auto *L = plugin->state_; // NOLINT auto *L = plugin->state_;
lua_getfield(L, LUA_REGISTRYINDEX, funcName.toStdString().c_str()); lua_getfield(L, LUA_REGISTRYINDEX, funcName.toStdString().c_str());
lua::push(L, ctx); lua::push(L, ctx);