mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 07:16:31 -04:00
Merge branch 'fix_clang_tidy' into 'master'
Fix clang tidy warnings See merge request OpenMW/openmw!4811
This commit is contained in:
commit
4efc8bf99d
@ -1,6 +1,7 @@
|
||||
Checks: >
|
||||
-*,
|
||||
portability-*,
|
||||
-portability-template-virtual-member-function,
|
||||
clang-analyzer-*,
|
||||
-clang-analyzer-optin.*,
|
||||
-clang-analyzer-cplusplus.NewDeleteLeaks,
|
||||
@ -16,4 +17,4 @@ CheckOptions:
|
||||
- key: readability-identifier-naming.NamespaceCase
|
||||
value: CamelCase
|
||||
- key: readability-identifier-naming.NamespaceIgnoredRegexp
|
||||
value: 'osg(DB|FX|Particle|Shadow|Viewer|Util)?'
|
||||
value: 'bpo|osg(DB|FX|Particle|Shadow|Viewer|Util)?'
|
||||
|
@ -9,8 +9,6 @@
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
namespace sfs = std::filesystem;
|
||||
|
||||
namespace
|
||||
{
|
||||
// from configfileparser.cpp
|
||||
|
@ -10,7 +10,6 @@
|
||||
#include <components/files/conversion.hpp>
|
||||
|
||||
namespace bpo = boost::program_options;
|
||||
namespace sfs = std::filesystem;
|
||||
|
||||
#ifndef _WIN32
|
||||
int main(int argc, char* argv[])
|
||||
|
@ -15,7 +15,9 @@ namespace ESMTerrain
|
||||
inline std::pair<std::size_t, std::size_t> toCellAndLocal(
|
||||
std::size_t begin, std::size_t global, std::size_t cellSize)
|
||||
{
|
||||
// NOLINTBEGIN(clang-analyzer-core.UndefinedBinaryOperatorResult)
|
||||
std::size_t cell = global / (cellSize - 1);
|
||||
// NOLINTEND(clang-analyzer-core.UndefinedBinaryOperatorResult)
|
||||
std::size_t local = global & (cellSize - 2);
|
||||
if (global != begin && local == 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user