diff --git a/.clang-tidy b/.clang-tidy index e1d6bfca6..7e0a62934 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -54,3 +54,7 @@ CheckOptions: value: camelBack - key: readability-implicit-bool-conversion.AllowPointerConditions value: true + + # Lua state + - key: readability-identifier-naming.LocalPointerIgnoredRegexp + value: ^L$ diff --git a/src/controllers/plugins/PluginController.cpp b/src/controllers/plugins/PluginController.cpp index cbe9aff79..6cd30810e 100644 --- a/src/controllers/plugins/PluginController.cpp +++ b/src/controllers/plugins/PluginController.cpp @@ -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);