[clang] [Clang] Improve `getReplacedTemplateParameterList()` const correctness (PR #131165)

2025-03-13 Thread Boaz Brickner via cfe-commits
https://github.com/bricknerb closed https://github.com/llvm/llvm-project/pull/131165 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve `getReplacedTemplateParameterList()` const correctness (PR #131165)

2025-03-13 Thread Boaz Brickner via cfe-commits
https://github.com/bricknerb created https://github.com/llvm/llvm-project/pull/131165 None >From c7b3a1c83ca0bd2631e9dcfcce0fe672d1140cce Mon Sep 17 00:00:00 2001 From: Boaz Brickner Date: Thu, 13 Mar 2025 17:01:26 +0100 Subject: [PATCH] [Clang] Improve `getReplacedTemplateParameterList()` con

[clang] [Clang] Make `MangleContext::mangleMSGuidDecl()`, `MangleContext::mangleObjCMethodName()` and `MangleContext::mangleObjCMethodNameAsSourceName()` const methods (PR #130613)

2025-03-11 Thread Boaz Brickner via cfe-commits
https://github.com/bricknerb created https://github.com/llvm/llvm-project/pull/130613 Unfortunately, making `MangleContext::mangleName()` would require a lot of const escapes due to lazy initialization and id creations: `Mangle.h`: * https://github.com/llvm/llvm-project/blob/dffbc030e75b758e7

[clang] [Clang] Fix segmentation fault caused by `VarBypassDetector` stack overflow on deeply nested expressions (PR #124128)

2025-02-19 Thread Boaz Brickner via cfe-commits
bricknerb wrote: Please let me know if you have any comments. I plan to merge this next week (after making the agreed changes) if there are no more comments. https://github.com/llvm/llvm-project/pull/124128 ___ cfe-commits mailing list cfe-commits@lis

[clang] [Clang] Fix segmentation fault caused by `VarBypassDetector` stack overflow on deeply nested expressions (PR #124128)

2025-02-20 Thread Boaz Brickner via cfe-commits
@@ -0,0 +1,30 @@ +// RUN: %clang_cc1 %s -emit-llvm -o - -Wstack-exhausted bricknerb wrote: I believe one of @cor3ntin concerns in #111701 was flakiness, not just speed. I'm happy to try and add that option if there are no objections. https://github.com/llvm/llvm

<    1   2   3   4