forked from qt-creator/qt-creator
Clang: Fix tidy checks
generateClangTidyChecks.py generated funny output as it was not considering new major categories. Fixes: QTCREATORBUG-22450 Change-Id: Ibd6d0cc7539c9fb846caacbe936770d0c960f04f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -150,9 +150,9 @@ def main():
|
||||
process = subprocess.Popen([arguments.tidypath, '-checks=*', '-list-checks'], stdout=subprocess.PIPE)
|
||||
lines = process.stdout.read().splitlines()
|
||||
lines.pop(0) # 'Enabled checks:'
|
||||
major_checks = ['android-', 'boost-', 'bugprone-', 'cert-', 'clang-analyzer-',
|
||||
major_checks = ['abseil-', 'android-', 'boost-', 'bugprone-', 'cert-', 'clang-analyzer-',
|
||||
'cppcoreguidelines-', 'fuchsia-', 'google-', 'hicpp-', 'llvm-', 'misc-', 'modernize-',
|
||||
'mpi-', 'objc-', 'performance-', 'readability-']
|
||||
'mpi-', 'objc-', 'performance-', 'portability-', 'readability-', 'zircon-']
|
||||
current_major = 0
|
||||
major_groups = {}
|
||||
for line in lines:
|
||||
|
||||
@@ -48,10 +48,10 @@ static const TidyNode CLANG_TIDY_CHECKS_ROOT
|
||||
"",
|
||||
{
|
||||
{
|
||||
"android-",
|
||||
"abseil-",
|
||||
{
|
||||
{
|
||||
"uration-",
|
||||
"duration-",
|
||||
{
|
||||
"comparison",
|
||||
"division",
|
||||
@@ -65,18 +65,23 @@ static const TidyNode CLANG_TIDY_CHECKS_ROOT
|
||||
"subtraction"
|
||||
}
|
||||
},
|
||||
"aster-strsplit-delimiter",
|
||||
"faster-strsplit-delimiter",
|
||||
{
|
||||
"o-",
|
||||
"no-",
|
||||
{
|
||||
"internal-dependencies",
|
||||
"namespace"
|
||||
}
|
||||
},
|
||||
"edundant-strcat-calls",
|
||||
"tr-cat-append",
|
||||
"tring-find-startswith",
|
||||
"pgrade-duration-conversions",
|
||||
"redundant-strcat-calls",
|
||||
"str-cat-append",
|
||||
"string-find-startswith",
|
||||
"upgrade-duration-conversions"
|
||||
}
|
||||
},
|
||||
{
|
||||
"android-",
|
||||
{
|
||||
{
|
||||
"cloexec-",
|
||||
{
|
||||
@@ -715,7 +720,12 @@ static const TidyNode CLANG_TIDY_CHECKS_ROOT
|
||||
"copy-initialization",
|
||||
"value-param"
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"portability-",
|
||||
{
|
||||
"simd-intrinsics"
|
||||
}
|
||||
},
|
||||
@@ -773,8 +783,13 @@ static const TidyNode CLANG_TIDY_CHECKS_ROOT
|
||||
},
|
||||
"string-compare",
|
||||
"uniqueptr-delete-release",
|
||||
"uppercase-literal-suffix",
|
||||
"rary-objects"
|
||||
"uppercase-literal-suffix"
|
||||
}
|
||||
},
|
||||
{
|
||||
"zircon-",
|
||||
{
|
||||
"temporary-objects"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user