[clang] [RecursiveASTVisitor] Do not inline TraverseStmt (NFC) (PR #107601)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 6 08:53:53 PDT 2024
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 2ee7183e38b91525ebd803144a588a9548ca9a46 c56f9d8cb3766fd867c4ebd483abedc5a8b88f29 --extensions h -- clang/include/clang/AST/RecursiveASTVisitor.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/AST/RecursiveASTVisitor.h b/clang/include/clang/AST/RecursiveASTVisitor.h
index 634aa8f115..cd9947f7ab 100644
--- a/clang/include/clang/AST/RecursiveASTVisitor.h
+++ b/clang/include/clang/AST/RecursiveASTVisitor.h
@@ -655,9 +655,8 @@ bool RecursiveASTVisitor<Derived>::PostVisitStmt(Stmt *S) {
// Inlining this method can lead to large code size and compile-time increases
// without any benefit to runtime performance.
template <typename Derived>
-LLVM_ATTRIBUTE_NOINLINE
-bool RecursiveASTVisitor<Derived>::TraverseStmt(Stmt *S,
- DataRecursionQueue *Queue) {
+LLVM_ATTRIBUTE_NOINLINE bool
+RecursiveASTVisitor<Derived>::TraverseStmt(Stmt *S, DataRecursionQueue *Queue) {
if (!S)
return true;
``````````
</details>
https://github.com/llvm/llvm-project/pull/107601
More information about the cfe-commits
mailing list