github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp --
clang-tools-extra/test/clang-tidy/checkers/bugprone/branch-clone.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/crtp-constructor-accessibility.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/infinite-loop.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/move-forwarding-reference.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/return-const-ref-from-parameter.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/sizeof-expression.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/string-integer-assignment.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/switch-missing-default-case.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/unhandled-self-assignment.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-raii.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/use-after-move.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/init-variables.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/missing-std-forward-custom-function.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/missing-std-forward.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/no-suspend-with-lock.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-type-member-init-cxx20.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-type-member-init-cxx98.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-type-member-init-delayed.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-type-member-init.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/rvalue-reference-param-not-moved-custom-function.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/rvalue-reference-param-not-moved.cpp
clang-tools-extra/test/clang-tidy/checkers/llvm/prefer-static-over-anonymous-namespace.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-allowed-types.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-cxx17.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-pointers-values.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-pointers.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-values.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-templates.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-transform-pointer-as-values.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-transform-values.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-unaligned.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-values-before-cxx23.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-values.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-wrong-config.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/include-cleaner-wrong-config.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/unconventional-assign-operator-cxx17.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/unconventional-assign-operator.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/unused-parameters.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/unused-using-decls-cxx17.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/unused-using-decls.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/macro-to-enum.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/pass-by-value.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/redundant-void-arg-delayed.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-constraints-first-greatergreater.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-constraints.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-designated-initializers.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default-copy.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default-cxx17.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default-cxx20.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-nullptr-basic.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-scope-lock-warn-on-using-and-typedef-false.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-scoped-lock-warn-on-single-locks-false.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-scoped-lock.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-trailing-return-type-transform-lambdas-cxx14.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-trailing-return-type-transform-lambdas-cxx20.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-trailing-return-type-transform-lambdas.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-using.cpp
clang-tools-extra/test/clang-tidy/checkers/performance/for-range-copy-allowed-types.cpp
clang-tools-extra/test/clang-tidy/checkers/performance/for-range-copy.cpp
clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-value-param-delayed.cpp
clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-value-param.cpp
clang-tools-extra/test/clang-tidy/checkers/portability/std-allocator-const.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/container-data-pointer.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/container-size-empty-cxx20.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/container-size-empty.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/delete-null-pointer.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-member-decl-usage.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/inconsistent-declaration-parameter-name.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/misleading-indentation-cpp17.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/misleading-indentation.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/redundant-casting.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/use-std-min-max.cpp
clang/lib/Sema/Sema.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 8e0ad9325..6e55b3b5a 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -1254,7 +1254,7 @@ void Sema::ActOnEndOfTranslationUnit() {
if (LangOpts.DelayedTemplateParsing) {
// Try to parse any templates that have been delayed and never
// instantiated so that their bodies are available for static
- // analysis tools to analyze.
+ // analysis tools to analyze.
Diags.setSuppressAllDiagnostics(true);
for (auto &[Decl, Template] : LateParsedTemplateMap)
if (Decl->isLateTemplateParsed())
``````````
</details>
https://github.com/llvm/llvm-project/pull/164156
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits