2018-05-16 07:58:53 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** Copyright (C) 2018 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
|
|
|
|
**
|
|
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
namespace CppTools {
|
|
|
|
|
namespace Constants {
|
|
|
|
|
|
|
|
|
|
struct TidyNode
|
|
|
|
|
{
|
|
|
|
|
const std::vector<TidyNode> children;
|
|
|
|
|
const char *name = nullptr;
|
|
|
|
|
TidyNode(const char *name, std::vector<TidyNode> &&children)
|
|
|
|
|
: children(std::move(children))
|
|
|
|
|
, name(name)
|
|
|
|
|
{}
|
|
|
|
|
TidyNode(const char *name) : name(name) {}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// CLANG-UPGRADE-CHECK: Run 'scripts/generateClangTidyChecks.py' after Clang upgrade to
|
|
|
|
|
// update this header.
|
|
|
|
|
static const TidyNode CLANG_TIDY_CHECKS_ROOT
|
|
|
|
|
{
|
|
|
|
|
"",
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
"android-",
|
|
|
|
|
{
|
2018-09-24 14:26:59 +02:00
|
|
|
"tring-find-startswith",
|
2018-05-16 07:58:53 +02:00
|
|
|
{
|
|
|
|
|
"cloexec-",
|
|
|
|
|
{
|
|
|
|
|
"accept",
|
|
|
|
|
"accept4",
|
|
|
|
|
"creat",
|
|
|
|
|
"dup",
|
|
|
|
|
{
|
|
|
|
|
"epoll-",
|
|
|
|
|
{
|
|
|
|
|
"create",
|
|
|
|
|
"create1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"fopen",
|
|
|
|
|
{
|
|
|
|
|
"inotify-",
|
|
|
|
|
{
|
|
|
|
|
"init",
|
|
|
|
|
"init1"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"memfd-create",
|
|
|
|
|
"open",
|
|
|
|
|
"socket"
|
|
|
|
|
}
|
2018-09-24 14:26:59 +02:00
|
|
|
},
|
|
|
|
|
"comparison-in-temp-failure-retry"
|
2018-05-16 07:58:53 +02:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"boost-",
|
|
|
|
|
{
|
|
|
|
|
"use-to-string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"bugprone-",
|
|
|
|
|
{
|
|
|
|
|
"argument-comment",
|
|
|
|
|
"assert-side-effect",
|
|
|
|
|
"bool-pointer-implicit-conversion",
|
|
|
|
|
"copy-constructor-init",
|
|
|
|
|
"dangling-handle",
|
2018-09-24 14:26:59 +02:00
|
|
|
"exception-escape",
|
2018-05-16 07:58:53 +02:00
|
|
|
"fold-init-type",
|
|
|
|
|
"forward-declaration-namespace",
|
2018-09-24 14:26:59 +02:00
|
|
|
"forwarding-reference-overload",
|
2018-05-16 07:58:53 +02:00
|
|
|
"inaccurate-erase",
|
2018-09-24 14:26:59 +02:00
|
|
|
"incorrect-roundings",
|
2018-05-16 07:58:53 +02:00
|
|
|
"integer-division",
|
2018-09-24 14:26:59 +02:00
|
|
|
"lambda-function-name",
|
|
|
|
|
{
|
|
|
|
|
"macro-",
|
|
|
|
|
{
|
|
|
|
|
"parentheses",
|
|
|
|
|
"repeated-side-effects"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"misplaced-",
|
|
|
|
|
{
|
|
|
|
|
"operator-in-strlen-in-alloc",
|
|
|
|
|
"widening-cast"
|
|
|
|
|
}
|
|
|
|
|
},
|
2018-05-16 07:58:53 +02:00
|
|
|
"move-forwarding-reference",
|
|
|
|
|
"multiple-statement-macro",
|
2018-09-24 14:26:59 +02:00
|
|
|
"narrowing-conversions",
|
|
|
|
|
"parent-virtual-call",
|
|
|
|
|
{
|
|
|
|
|
"sizeof-",
|
|
|
|
|
{
|
|
|
|
|
"container",
|
|
|
|
|
"expression"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"string-",
|
|
|
|
|
{
|
|
|
|
|
"constructor",
|
|
|
|
|
"integer-assignment",
|
|
|
|
|
"literal-with-embedded-nul"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"suspicious-",
|
|
|
|
|
{
|
|
|
|
|
"enum-usage",
|
|
|
|
|
"memset-usage",
|
|
|
|
|
"missing-comma",
|
|
|
|
|
"semicolon",
|
|
|
|
|
"string-compare"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"swapped-arguments",
|
|
|
|
|
"terminating-continue",
|
|
|
|
|
"throw-keyword-missing",
|
2018-05-16 07:58:53 +02:00
|
|
|
"undefined-memory-manipulation",
|
2018-09-24 14:26:59 +02:00
|
|
|
"undelegated-constructor",
|
|
|
|
|
{
|
|
|
|
|
"unused-",
|
|
|
|
|
{
|
|
|
|
|
"raii",
|
|
|
|
|
"return-value"
|
|
|
|
|
}
|
|
|
|
|
},
|
2018-05-16 07:58:53 +02:00
|
|
|
"use-after-move",
|
|
|
|
|
"virtual-near-miss"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cert-",
|
|
|
|
|
{
|
|
|
|
|
"dcl03-c",
|
|
|
|
|
"dcl21-cpp",
|
|
|
|
|
"dcl50-cpp",
|
|
|
|
|
"dcl54-cpp",
|
|
|
|
|
"dcl58-cpp",
|
|
|
|
|
"dcl59-cpp",
|
|
|
|
|
"env33-c",
|
|
|
|
|
"err09-cpp",
|
|
|
|
|
"err34-c",
|
|
|
|
|
"err52-cpp",
|
|
|
|
|
"err58-cpp",
|
|
|
|
|
"err60-cpp",
|
|
|
|
|
"err61-cpp",
|
|
|
|
|
"fio38-c",
|
|
|
|
|
"flp30-c",
|
|
|
|
|
"msc30-c",
|
2018-09-24 14:26:59 +02:00
|
|
|
"msc32-c",
|
2018-05-16 07:58:53 +02:00
|
|
|
"msc50-cpp",
|
2018-09-24 14:26:59 +02:00
|
|
|
"msc51-cpp",
|
2018-05-16 07:58:53 +02:00
|
|
|
"oop11-cpp"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"clang-analyzer-",
|
|
|
|
|
{
|
2018-09-24 14:26:59 +02:00
|
|
|
{
|
|
|
|
|
"apiModeling.",
|
|
|
|
|
{
|
|
|
|
|
"TrustNonnull",
|
|
|
|
|
"google.GTest"
|
|
|
|
|
}
|
|
|
|
|
},
|
2018-05-16 07:58:53 +02:00
|
|
|
{
|
|
|
|
|
"core.",
|
|
|
|
|
{
|
|
|
|
|
"CallAndMessage",
|
|
|
|
|
"DivideZero",
|
|
|
|
|
"DynamicTypePropagation",
|
|
|
|
|
"NonNullParamChecker",
|
|
|
|
|
"NonnilStringConstants",
|
|
|
|
|
"NullDereference",
|
|
|
|
|
"StackAddressEscape",
|
|
|
|
|
"UndefinedBinaryOperatorResult",
|
|
|
|
|
"VLASize",
|
|
|
|
|
{
|
|
|
|
|
"builtin.",
|
|
|
|
|
{
|
|
|
|
|
"BuiltinFunctions",
|
|
|
|
|
"NoReturnFunctions"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"uninitialized.",
|
|
|
|
|
{
|
|
|
|
|
"ArraySubscript",
|
|
|
|
|
"Assign",
|
|
|
|
|
"Branch",
|
|
|
|
|
"CapturedBlockVariable",
|
|
|
|
|
"UndefReturn"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cplusplus.",
|
|
|
|
|
{
|
2018-09-24 14:26:59 +02:00
|
|
|
"InnerPointer",
|
2018-05-16 07:58:53 +02:00
|
|
|
"NewDelete",
|
|
|
|
|
"NewDeleteLeaks",
|
|
|
|
|
"SelfAssignment"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"deadcode.DeadStores",
|
|
|
|
|
"llvm.Conventions",
|
|
|
|
|
{
|
|
|
|
|
"nullability.",
|
|
|
|
|
{
|
|
|
|
|
"NullPassedToNonnull",
|
|
|
|
|
"NullReturnedFromNonnull",
|
|
|
|
|
"NullableDereferenced",
|
|
|
|
|
"NullablePassedToNonnull",
|
|
|
|
|
"NullableReturnedFromNonnull"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"optin.",
|
|
|
|
|
{
|
|
|
|
|
"cplusplus.VirtualCall",
|
|
|
|
|
"mpi.MPI-Checker",
|
|
|
|
|
{
|
|
|
|
|
"osx.",
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
"cocoa.",
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
"localizability.",
|
|
|
|
|
{
|
|
|
|
|
"EmptyLocalizationContextChecker",
|
|
|
|
|
"NonLocalizedStringChecker"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2018-09-24 14:26:59 +02:00
|
|
|
{
|
|
|
|
|
"performance.",
|
|
|
|
|
{
|
|
|
|
|
"GCDAntipattern",
|
|
|
|
|
"Padding"
|
|
|
|
|
}
|
|
|
|
|
},
|
2018-05-16 07:58:53 +02:00
|
|
|
"portability.UnixAPI"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"osx.",
|
|
|
|
|
{
|
|
|
|
|
"API",
|
|
|
|
|
"NumberObjectConversion",
|
|
|
|
|
"ObjCProperty",
|
|
|
|
|
"SecKeychainAPI",
|
|
|
|
|
{
|
|
|
|
|
"cocoa.",
|
|
|
|
|
{
|
|
|
|
|
"AtSync",
|
2018-09-24 14:26:59 +02:00
|
|
|
"AutoreleaseWrite",
|
2018-05-16 07:58:53 +02:00
|
|
|
"ClassRelease",
|
|
|
|
|
"Dealloc",
|
|
|
|
|
"IncompatibleMethodTypes",
|
|
|
|
|
"Loops",
|
|
|
|
|
"MissingSuperCall",
|
|
|
|
|
"NSAutoreleasePool",
|
|
|
|
|
"NSError",
|
|
|
|
|
"NilArg",
|
|
|
|
|
"NonNilReturnValue",
|
|
|
|
|
"ObjCGenerics",
|
|
|
|
|
"RetainCount",
|
2018-09-24 14:26:59 +02:00
|
|
|
"RunLoopAutoreleaseLeak",
|
2018-05-16 07:58:53 +02:00
|
|
|
"SelfInit",
|
|
|
|
|
"SuperDealloc",
|
|
|
|
|
"UnusedIvars",
|
|
|
|
|
"VariadicMethodTypes"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"coreFoundation.",
|
|
|
|
|
{
|
|
|
|
|
"CFError",
|
|
|
|
|
"CFNumber",
|
|
|
|
|
"CFRetainRelease",
|
|
|
|
|
{
|
|
|
|
|
"containers.",
|
|
|
|
|
{
|
|
|
|
|
"OutOfBounds",
|
|
|
|
|
"PointerSizedValues"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"security.",
|
|
|
|
|
{
|
|
|
|
|
"FloatLoopCounter",
|
|
|
|
|
{
|
|
|
|
|
"insecureAPI.",
|
|
|
|
|
{
|
|
|
|
|
"UncheckedReturn",
|
2018-09-24 14:26:59 +02:00
|
|
|
"bcmp",
|
|
|
|
|
"bcopy",
|
|
|
|
|
"bzero",
|
2018-05-16 07:58:53 +02:00
|
|
|
"getpw",
|
|
|
|
|
"gets",
|
|
|
|
|
"mkstemp",
|
|
|
|
|
"mktemp",
|
|
|
|
|
"rand",
|
|
|
|
|
"strcpy",
|
|
|
|
|
"vfork"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unix.",
|
|
|
|
|
{
|
|
|
|
|
"API",
|
|
|
|
|
"Malloc",
|
|
|
|
|
"MallocSizeof",
|
|
|
|
|
"MismatchedDeallocator",
|
|
|
|
|
"StdCLibraryFunctions",
|
|
|
|
|
"Vfork",
|
|
|
|
|
{
|
|
|
|
|
"cstring.",
|
|
|
|
|
{
|
|
|
|
|
"BadSizeArg",
|
|
|
|
|
"NullArg"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"valist.",
|
|
|
|
|
{
|
|
|
|
|
"CopyToSelf",
|
|
|
|
|
"Uninitialized",
|
|
|
|
|
"Unterminated"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cppcoreguidelines-",
|
|
|
|
|
{
|
2018-09-24 14:26:59 +02:00
|
|
|
"avoid-goto",
|
2018-05-16 07:58:53 +02:00
|
|
|
"c-copy-assignment-signature",
|
|
|
|
|
"interfaces-global-init",
|
2018-09-24 14:26:59 +02:00
|
|
|
"narrowing-conversions",
|
2018-05-16 07:58:53 +02:00
|
|
|
"no-malloc",
|
|
|
|
|
"owning-memory",
|
|
|
|
|
{
|
|
|
|
|
"pro-",
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
"bounds-",
|
|
|
|
|
{
|
|
|
|
|
"array-to-pointer-decay",
|
|
|
|
|
"constant-array-index",
|
|
|
|
|
"pointer-arithmetic"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type-",
|
|
|
|
|
{
|
|
|
|
|
"const-cast",
|
|
|
|
|
"cstyle-cast",
|
|
|
|
|
"member-init",
|
|
|
|
|
"reinterpret-cast",
|
|
|
|
|
"static-cast-downcast",
|
|
|
|
|
"union-access",
|
|
|
|
|
"vararg"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"slicing",
|
|
|
|
|
"special-member-functions"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fuchsia-",
|
|
|
|
|
{
|
|
|
|
|
"default-arguments",
|
2018-09-24 14:26:59 +02:00
|
|
|
"header-anon-namespaces",
|
|
|
|
|
"multiple-inheritance",
|
2018-05-16 07:58:53 +02:00
|
|
|
"overloaded-operator",
|
2018-09-24 14:26:59 +02:00
|
|
|
"restrict-system-includes",
|
|
|
|
|
"statically-constructed-objects",
|
|
|
|
|
"trailing-return",
|
2018-05-16 07:58:53 +02:00
|
|
|
"virtual-inheritance"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"google-",
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
"build-",
|
|
|
|
|
{
|
|
|
|
|
"explicit-make-pair",
|
|
|
|
|
"namespaces",
|
|
|
|
|
"using-namespace"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"default-arguments",
|
|
|
|
|
"explicit-constructor",
|
|
|
|
|
"global-names-in-headers",
|
|
|
|
|
{
|
|
|
|
|
"objc-",
|
|
|
|
|
{
|
|
|
|
|
"avoid-throwing-exception",
|
|
|
|
|
"global-variable-declaration"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"readability-",
|
|
|
|
|
{
|
|
|
|
|
"braces-around-statements",
|
|
|
|
|
"casting",
|
|
|
|
|
"function-size",
|
|
|
|
|
"namespace-comments",
|
|
|
|
|
"todo"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"runtime-",
|
|
|
|
|
{
|
|
|
|
|
"int",
|
|
|
|
|
"operator",
|
|
|
|
|
"references"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"hicpp-",
|
|
|
|
|
{
|
2018-09-24 14:26:59 +02:00
|
|
|
"avoid-goto",
|
2018-05-16 07:58:53 +02:00
|
|
|
"braces-around-statements",
|
|
|
|
|
"deprecated-headers",
|
|
|
|
|
"exception-baseclass",
|
|
|
|
|
"explicit-conversions",
|
|
|
|
|
"function-size",
|
|
|
|
|
"invalid-access-moved",
|
|
|
|
|
"member-init",
|
|
|
|
|
"move-const-arg",
|
2018-09-24 14:26:59 +02:00
|
|
|
"multiway-paths-covered",
|
2018-05-16 07:58:53 +02:00
|
|
|
"named-parameter",
|
|
|
|
|
"new-delete-operators",
|
|
|
|
|
{
|
|
|
|
|
"no-",
|
|
|
|
|
{
|
|
|
|
|
"array-decay",
|
|
|
|
|
"assembler",
|
|
|
|
|
"malloc"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"noexcept-move",
|
|
|
|
|
"signed-bitwise",
|
|
|
|
|
"special-member-functions",
|
|
|
|
|
"static-assert",
|
|
|
|
|
"undelegated-constructor",
|
|
|
|
|
{
|
|
|
|
|
"use-",
|
|
|
|
|
{
|
|
|
|
|
"auto",
|
|
|
|
|
"emplace",
|
|
|
|
|
{
|
|
|
|
|
"equals-",
|
|
|
|
|
{
|
|
|
|
|
"default",
|
|
|
|
|
"delete"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"noexcept",
|
|
|
|
|
"nullptr",
|
|
|
|
|
"override"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"vararg"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"llvm-",
|
|
|
|
|
{
|
|
|
|
|
"header-guard",
|
|
|
|
|
"include-order",
|
|
|
|
|
"namespace-comment",
|
|
|
|
|
"twine-local"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"misc-",
|
|
|
|
|
{
|
|
|
|
|
"definitions-in-headers",
|
2018-09-24 14:26:59 +02:00
|
|
|
"misplaced-const",
|
2018-05-16 07:58:53 +02:00
|
|
|
"new-delete-overloads",
|
|
|
|
|
"non-copyable-objects",
|
|
|
|
|
"redundant-expression",
|
|
|
|
|
"static-assert",
|
|
|
|
|
"throw-by-value-catch-by-reference",
|
|
|
|
|
"unconventional-assign-operator",
|
|
|
|
|
"uniqueptr-reset-release",
|
|
|
|
|
{
|
|
|
|
|
"unused-",
|
|
|
|
|
{
|
|
|
|
|
"alias-decls",
|
|
|
|
|
"parameters",
|
|
|
|
|
"using-decls"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"modernize-",
|
|
|
|
|
{
|
|
|
|
|
"avoid-bind",
|
|
|
|
|
"deprecated-headers",
|
|
|
|
|
"loop-convert",
|
|
|
|
|
{
|
|
|
|
|
"make-",
|
|
|
|
|
{
|
|
|
|
|
"shared",
|
|
|
|
|
"unique"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"pass-by-value",
|
|
|
|
|
"raw-string-literal",
|
|
|
|
|
"redundant-void-arg",
|
|
|
|
|
{
|
|
|
|
|
"replace-",
|
|
|
|
|
{
|
|
|
|
|
"auto-ptr",
|
|
|
|
|
"random-shuffle"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"return-braced-init-list",
|
|
|
|
|
"shrink-to-fit",
|
|
|
|
|
"unary-static-assert",
|
|
|
|
|
{
|
|
|
|
|
"use-",
|
|
|
|
|
{
|
|
|
|
|
"auto",
|
|
|
|
|
"bool-literals",
|
|
|
|
|
"default-member-init",
|
|
|
|
|
"emplace",
|
|
|
|
|
{
|
|
|
|
|
"equals-",
|
|
|
|
|
{
|
|
|
|
|
"default",
|
|
|
|
|
"delete"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"noexcept",
|
|
|
|
|
"nullptr",
|
|
|
|
|
"override",
|
|
|
|
|
"transparent-functors",
|
2018-09-24 14:26:59 +02:00
|
|
|
"uncaught-exceptions",
|
2018-05-16 07:58:53 +02:00
|
|
|
"using"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"mpi-",
|
|
|
|
|
{
|
|
|
|
|
"buffer-deref",
|
|
|
|
|
"type-mismatch"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"objc-",
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
"avoid-",
|
|
|
|
|
{
|
|
|
|
|
"nserror-init",
|
|
|
|
|
"spinlock"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"forbidden-subclassing",
|
|
|
|
|
"property-declaration"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"performance-",
|
|
|
|
|
{
|
|
|
|
|
"faster-string-find",
|
|
|
|
|
"for-range-copy",
|
|
|
|
|
"implicit-conversion-in-loop",
|
|
|
|
|
{
|
|
|
|
|
"inefficient-",
|
|
|
|
|
{
|
|
|
|
|
"algorithm",
|
|
|
|
|
"string-concatenation",
|
|
|
|
|
"vector-operation"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"move-",
|
|
|
|
|
{
|
|
|
|
|
"const-arg",
|
|
|
|
|
"constructor-init"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"noexcept-move-constructor",
|
|
|
|
|
"type-promotion-in-math-fn",
|
|
|
|
|
{
|
|
|
|
|
"unnecessary-",
|
|
|
|
|
{
|
|
|
|
|
"copy-initialization",
|
|
|
|
|
"value-param"
|
|
|
|
|
}
|
2018-09-24 14:26:59 +02:00
|
|
|
},
|
|
|
|
|
"simd-intrinsics"
|
2018-05-16 07:58:53 +02:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"readability-",
|
|
|
|
|
{
|
|
|
|
|
"avoid-const-params-in-decls",
|
|
|
|
|
"braces-around-statements",
|
|
|
|
|
"container-size-empty",
|
|
|
|
|
"delete-null-pointer",
|
|
|
|
|
"deleted-default",
|
|
|
|
|
"else-after-return",
|
|
|
|
|
"function-size",
|
|
|
|
|
"identifier-naming",
|
|
|
|
|
"implicit-bool-conversion",
|
|
|
|
|
"inconsistent-declaration-parameter-name",
|
|
|
|
|
"misleading-indentation",
|
|
|
|
|
"misplaced-array-index",
|
|
|
|
|
"named-parameter",
|
|
|
|
|
"non-const-parameter",
|
|
|
|
|
{
|
|
|
|
|
"redundant-",
|
|
|
|
|
{
|
|
|
|
|
"control-flow",
|
|
|
|
|
"declaration",
|
|
|
|
|
"function-ptr-dereference",
|
|
|
|
|
"member-init",
|
|
|
|
|
"smartptr-get",
|
|
|
|
|
{
|
|
|
|
|
"string-",
|
|
|
|
|
{
|
|
|
|
|
"cstr",
|
|
|
|
|
"init"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2018-09-24 14:26:59 +02:00
|
|
|
{
|
|
|
|
|
"simplify-",
|
|
|
|
|
{
|
|
|
|
|
"boolean-expr",
|
|
|
|
|
"subscript-expr"
|
|
|
|
|
}
|
|
|
|
|
},
|
2018-05-16 07:58:53 +02:00
|
|
|
{
|
|
|
|
|
"static-",
|
|
|
|
|
{
|
|
|
|
|
"accessed-through-instance",
|
|
|
|
|
"definition-in-anonymous-namespace"
|
|
|
|
|
}
|
|
|
|
|
},
|
2018-09-24 14:26:59 +02:00
|
|
|
"string-compare",
|
|
|
|
|
"uniqueptr-delete-release",
|
|
|
|
|
"rary-objects"
|
2018-05-16 07:58:53 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Constants
|
|
|
|
|
} // namespace CppTools
|