Skip to content

Commit

Permalink
Updates for clang-tidy 17.0.1 (#11491)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-mcmanus authored Oct 10, 2023
1 parent 51d88db commit 6da9a49
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions Extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1789,6 +1789,7 @@
"bugprone-dangling-handle",
"bugprone-dynamic-static-initializers",
"bugprone-easily-swappable-parameters",
"bugprone-empty-catch",
"bugprone-exception-escape",
"bugprone-fold-init-type",
"bugprone-forward-declaration-namespace",
Expand All @@ -1806,9 +1807,12 @@
"bugprone-misplaced-pointer-arithmetic-in-alloc",
"bugprone-misplaced-widening-cast",
"bugprone-move-forwarding-reference",
"bugprone-multiple-*",
"bugprone-multiple-new-in-one-expression",
"bugprone-multiple-statement-macro",
"bugprone-narrowing-conversions",
"bugprone-no-escape",
"bugprone-non-zero-enum-to-bool-conversion",
"bugprone-not-null-terminated-result",
"bugprone-parent-virtual-call",
"bugprone-posix-return",
Expand Down Expand Up @@ -1837,6 +1841,7 @@
"bugprone-suspicious-semicolon",
"bugprone-suspicious-string-compare",
"bugprone-swapped-arguments",
"bugprone-switch-missing-default-case",
"bugprone-terminating-continue",
"bugprone-throw-keyword-missing",
"bugprone-too-small-loop-variable",
Expand All @@ -1846,6 +1851,7 @@
"bugprone-unhandled-*",
"bugprone-unhandled-exception-at-new",
"bugprone-unhandled-self-assignment",
"bugprone-unique-ptr-array-mismatch",
"bugprone-unused-raii",
"bugprone-unused-return-value",
"bugprone-use-after-move",
Expand Down Expand Up @@ -2005,6 +2011,7 @@
"cppcoreguidelines-*",
"cppcoreguidelines-avoid-*",
"cppcoreguidelines-avoid-c-arrays",
"cppcoreguidelines-avoid-capturing-lambda-coroutines",
"cppcoreguidelines-avoid-const-or-ref-data-members",
"cppcoreguidelines-avoid-do-while",
"cppcoreguidelines-avoid-goto",
Expand All @@ -2017,6 +2024,8 @@
"cppcoreguidelines-interfaces-global-init",
"cppcoreguidelines-macro-to-enum",
"cppcoreguidelines-macro-usage",
"cppcoreguidelines-misleading-capture-default-by-value",
"cppcoreguidelines-missing-std-forward",
"cppcoreguidelines-narrowing-conversions",
"cppcoreguidelines-no-malloc",
"cppcoreguidelines-non-private-member-variables-in-classes",
Expand All @@ -2034,6 +2043,7 @@
"cppcoreguidelines-pro-type-static-cast-downcast",
"cppcoreguidelines-pro-type-union-access",
"cppcoreguidelines-pro-type-vararg",
"cppcoreguidelines-rvalue-reference-param-not-moved",
"cppcoreguidelines-slicing",
"cppcoreguidelines-special-member-functions",
"cppcoreguidelines-virtual-class-destructor",
Expand Down Expand Up @@ -2124,11 +2134,14 @@
"llvmlibc-*",
"llvmlibc-callee-namespace",
"llvmlibc-implementation-in-namespace",
"llvmlibc-inline-function-decl",
"llvmlibc-restrict-system-libc-headers",
"misc-*",
"misc-confusable-identifiers",
"misc-const-correctness",
"misc-definitions-in-headers",
"misc-header-include-cycle",
"misc-include-cleaner",
"misc-misleading-*",
"misc-misleading-bidirectional",
"misc-misleading-identifier",
Expand Down Expand Up @@ -2170,6 +2183,7 @@
"modernize-replace-random-shuffle",
"modernize-return-braced-init-list",
"modernize-shrink-to-fit",
"modernize-type-traits",
"modernize-unary-static-assert",
"modernize-use-*",
"modernize-use-auto",
Expand All @@ -2184,6 +2198,7 @@
"modernize-use-noexcept",
"modernize-use-nullptr",
"modernize-use-override",
"modernize-use-std-print",
"modernize-use-trailing-return-type",
"modernize-use-transparent-functors",
"modernize-use-uncaught-exceptions",
Expand All @@ -2205,6 +2220,7 @@
"openmp-exception-escape",
"openmp-use-default-none",
"performance-*",
"performance-avoid-endl",
"performance-faster-string-find",
"performance-for-range-copy",
"performance-implicit-conversion-in-loop",
Expand All @@ -2218,7 +2234,10 @@
"performance-no-*",
"performance-no-automatic-move",
"performance-no-int-to-ptr",
"performance-noexcept-*",
"performance-noexcept-destructor",
"performance-noexcept-move-constructor",
"performance-noexcept-swap",
"performance-trivially-destructible",
"performance-type-promotion-in-math-fn",
"performance-unnecessary-*",
Expand All @@ -2229,7 +2248,9 @@
"portability-simd-intrinsics",
"portability-std-allocator-const",
"readability-*",
"readability-avoid-*",
"readability-avoid-const-params-in-decls",
"readability-avoid-unconditional-preprocessor-if",
"readability-braces-around-statements",
"readability-const-return-type",
"readability-container-*",
Expand All @@ -2255,6 +2276,7 @@
"readability-misplaced-array-index",
"readability-named-parameter",
"readability-non-const-parameter",
"readability-operators-representation",
"readability-qualified-auto",
"readability-redundant-*",
"readability-redundant-access-specifiers",
Expand Down Expand Up @@ -2353,6 +2375,7 @@
"bugprone-dangling-handle",
"bugprone-dynamic-static-initializers",
"bugprone-easily-swappable-parameters",
"bugprone-empty-catch",
"bugprone-exception-escape",
"bugprone-fold-init-type",
"bugprone-forward-declaration-namespace",
Expand All @@ -2370,9 +2393,12 @@
"bugprone-misplaced-pointer-arithmetic-in-alloc",
"bugprone-misplaced-widening-cast",
"bugprone-move-forwarding-reference",
"bugprone-multiple-*",
"bugprone-multiple-new-in-one-expression",
"bugprone-multiple-statement-macro",
"bugprone-narrowing-conversions",
"bugprone-no-escape",
"bugprone-non-zero-enum-to-bool-conversion",
"bugprone-not-null-terminated-result",
"bugprone-parent-virtual-call",
"bugprone-posix-return",
Expand Down Expand Up @@ -2401,6 +2427,7 @@
"bugprone-suspicious-semicolon",
"bugprone-suspicious-string-compare",
"bugprone-swapped-arguments",
"bugprone-switch-missing-default-case",
"bugprone-terminating-continue",
"bugprone-throw-keyword-missing",
"bugprone-too-small-loop-variable",
Expand All @@ -2410,6 +2437,7 @@
"bugprone-unhandled-*",
"bugprone-unhandled-exception-at-new",
"bugprone-unhandled-self-assignment",
"bugprone-unique-ptr-array-mismatch",
"bugprone-unused-raii",
"bugprone-unused-return-value",
"bugprone-use-after-move",
Expand Down Expand Up @@ -2569,6 +2597,7 @@
"cppcoreguidelines-*",
"cppcoreguidelines-avoid-*",
"cppcoreguidelines-avoid-c-arrays",
"cppcoreguidelines-avoid-capturing-lambda-coroutines",
"cppcoreguidelines-avoid-const-or-ref-data-members",
"cppcoreguidelines-avoid-do-while",
"cppcoreguidelines-avoid-goto",
Expand All @@ -2581,6 +2610,8 @@
"cppcoreguidelines-interfaces-global-init",
"cppcoreguidelines-macro-to-enum",
"cppcoreguidelines-macro-usage",
"cppcoreguidelines-misleading-capture-default-by-value",
"cppcoreguidelines-missing-std-forward",
"cppcoreguidelines-narrowing-conversions",
"cppcoreguidelines-no-malloc",
"cppcoreguidelines-non-private-member-variables-in-classes",
Expand All @@ -2598,6 +2629,7 @@
"cppcoreguidelines-pro-type-static-cast-downcast",
"cppcoreguidelines-pro-type-union-access",
"cppcoreguidelines-pro-type-vararg",
"cppcoreguidelines-rvalue-reference-param-not-moved",
"cppcoreguidelines-slicing",
"cppcoreguidelines-special-member-functions",
"cppcoreguidelines-virtual-class-destructor",
Expand Down Expand Up @@ -2688,11 +2720,14 @@
"llvmlibc-*",
"llvmlibc-callee-namespace",
"llvmlibc-implementation-in-namespace",
"llvmlibc-inline-function-decl",
"llvmlibc-restrict-system-libc-headers",
"misc-*",
"misc-confusable-identifiers",
"misc-const-correctness",
"misc-definitions-in-headers",
"misc-header-include-cycle",
"misc-include-cleaner",
"misc-misleading-*",
"misc-misleading-bidirectional",
"misc-misleading-identifier",
Expand Down Expand Up @@ -2734,6 +2769,7 @@
"modernize-replace-random-shuffle",
"modernize-return-braced-init-list",
"modernize-shrink-to-fit",
"modernize-type-traits",
"modernize-unary-static-assert",
"modernize-use-*",
"modernize-use-auto",
Expand All @@ -2748,6 +2784,7 @@
"modernize-use-noexcept",
"modernize-use-nullptr",
"modernize-use-override",
"modernize-use-std-print",
"modernize-use-trailing-return-type",
"modernize-use-transparent-functors",
"modernize-use-uncaught-exceptions",
Expand All @@ -2769,6 +2806,7 @@
"openmp-exception-escape",
"openmp-use-default-none",
"performance-*",
"performance-avoid-endl",
"performance-faster-string-find",
"performance-for-range-copy",
"performance-implicit-conversion-in-loop",
Expand All @@ -2782,7 +2820,10 @@
"performance-no-*",
"performance-no-automatic-move",
"performance-no-int-to-ptr",
"performance-noexcept-*",
"performance-noexcept-destructor",
"performance-noexcept-move-constructor",
"performance-noexcept-swap",
"performance-trivially-destructible",
"performance-type-promotion-in-math-fn",
"performance-unnecessary-*",
Expand All @@ -2793,7 +2834,9 @@
"portability-simd-intrinsics",
"portability-std-allocator-const",
"readability-*",
"readability-avoid-*",
"readability-avoid-const-params-in-decls",
"readability-avoid-unconditional-preprocessor-if",
"readability-braces-around-statements",
"readability-const-return-type",
"readability-container-*",
Expand All @@ -2819,6 +2862,7 @@
"readability-misplaced-array-index",
"readability-named-parameter",
"readability-non-const-parameter",
"readability-operators-representation",
"readability-qualified-auto",
"readability-redundant-*",
"readability-redundant-access-specifiers",
Expand Down
2 changes: 1 addition & 1 deletion Extension/src/LanguageServer/codeAnalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export function publishCodeAnalysisDiagnostics(params: PublishCodeAnalysisDiagno
docPage = `checks${checksGroup}/${checksPage}.html`;
}
// TODO: This should be checking the clang-tidy version used to better support usage of older versions.
const primaryDocUri: vscode.Uri = vscode.Uri.parse(`https://releases.llvm.org/16.0.0/tools/clang/tools/extra/docs/clang-tidy/${docPage}`);
const primaryDocUri: vscode.Uri = vscode.Uri.parse(`https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/${docPage}`);
diagnostic.code = { value: identifier.code, target: primaryDocUri };

if (new CppSettings().clangTidyCodeActionShowDocumentation) {
Expand Down

0 comments on commit 6da9a49

Please sign in to comment.