[libcxx-commits] [libcxxabi] [llvm] [libc++abi][NFC] Enable modernize-loop-convert clang-tidy check (PR #213250)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 31 04:35:26 PDT 2026
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 h -- libcxxabi/src/demangle/ItaniumDemangle.h llvm/include/llvm/Demangle/ItaniumDemangle.h --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/libcxxabi/src/demangle/ItaniumDemangle.h b/libcxxabi/src/demangle/ItaniumDemangle.h
index 2ae943e19..b1fb1d07f 100644
--- a/libcxxabi/src/demangle/ItaniumDemangle.h
+++ b/libcxxabi/src/demangle/ItaniumDemangle.h
@@ -2858,7 +2858,8 @@ template <typename Derived, typename Alloc> struct AbstractManglingParser {
ParsingLambdaParamsAtLevel = (size_t)-1;
TryToParseTemplateArgs = true;
PermitForwardTemplateReferences = false;
- for (unsigned int & NumSyntheticTemplateParameter : NumSyntheticTemplateParameters)
+ for (unsigned int &NumSyntheticTemplateParameter :
+ NumSyntheticTemplateParameters)
NumSyntheticTemplateParameter = 0;
ASTAllocator.reset();
}
diff --git a/llvm/include/llvm/Demangle/ItaniumDemangle.h b/llvm/include/llvm/Demangle/ItaniumDemangle.h
index 0f1deb3d7..92d22f3dd 100644
--- a/llvm/include/llvm/Demangle/ItaniumDemangle.h
+++ b/llvm/include/llvm/Demangle/ItaniumDemangle.h
@@ -2858,7 +2858,8 @@ template <typename Derived, typename Alloc> struct AbstractManglingParser {
ParsingLambdaParamsAtLevel = (size_t)-1;
TryToParseTemplateArgs = true;
PermitForwardTemplateReferences = false;
- for (unsigned int & NumSyntheticTemplateParameter : NumSyntheticTemplateParameters)
+ for (unsigned int &NumSyntheticTemplateParameter :
+ NumSyntheticTemplateParameters)
NumSyntheticTemplateParameter = 0;
ASTAllocator.reset();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/213250
More information about the libcxx-commits
mailing list