[clang] [llvm] Add parentheses to clarify operator ordering in asserts. NFC. (PR #159333)

2025-09-17 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/159333 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add parentheses to clarify operator ordering in asserts. NFC. (PR #159333)

2025-09-17 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett approved this pull request. ISTR some rule about not using more brackets than are needed but it could have been project specific. But even if that exists, https://llvm.org/docs/CodingStandards.html#treat-compiler-warnings-like-errors tells us to fix compiler w

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Use lld for everything in the ARM picolib builds (PR #158320)

2025-09-16 Thread David Spickett via cfe-commits
DavidSpickett wrote: Did not expect this to be so neat, so this PR is an alternative to https://github.com/llvm/llvm-project/pull/158300. I think using lld throughout is simpler, and better represents how you'd be cross compiling in most situations including Arm's toolchains. https://github.c

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Prepare ARM Picolib builds for upgrade to clang 21 (PR #158300)

2025-09-16 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/158300 Some time between Clang 19 and Clang 21, changes were made to the bare metal toolchain driver, and on top of that we (Linaro) updated our host OS to Ubuntu Jammy. This has caused the tests to not build wi

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Prepare ARM Picolibc builds for upgrade to clang 21 (PR #158300)

2025-09-16 Thread David Spickett via cfe-commits
DavidSpickett wrote: Switching to lld linker instead, see https://github.com/llvm/llvm-project/pull/158320. https://github.com/llvm/llvm-project/pull/158300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [clang][bytecode] Fix bit casts to IntAP types (PR #158509)

2025-09-15 Thread David Spickett via cfe-commits
DavidSpickett wrote: The above failure is because the bot is 32-bit Armv8-a, I expect this would fail on x86 32-bit as well. I think you could use the lit feature `clang-target-64-bits` along with `%if{ ... }` to make the host triple line conditional. I don't completely understand what `clang-

[clang] [clang][bytecode] Fix bit casts to IntAP types (PR #158509)

2025-09-15 Thread David Spickett via cfe-commits
DavidSpickett wrote: Is is, thanks! https://github.com/llvm/llvm-project/pull/158509 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Prepare ARM Picolibc builds for upgrade to clang 21 (PR #158300)

2025-09-15 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett closed https://github.com/llvm/llvm-project/pull/158300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Use lld for everything in the ARM picolib builds (PR #158320)

2025-09-15 Thread David Spickett via cfe-commits
DavidSpickett wrote: >I think building with lld makes the most sense here. It matches what Arm is doing with picolibc, and I think we always intended to use lld anyway but didn't realise we had to enable it when testing. And a nice bonus is that since we can install lld anywhere, this "ARM" bu

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Use lld for everything in the ARM picolib builds (PR #158320)

2025-09-15 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett closed https://github.com/llvm/llvm-project/pull/158320 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Use lld for everything in the ARM picolib builds (PR #158320)

2025-09-13 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/158320 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Use lld for everything in the ARM picolib builds (PR #158320)

2025-09-13 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/158320 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Prepare ARM Picolibc builds for upgrade to clang 21 (PR #158300)

2025-09-12 Thread David Spickett via cfe-commits
DavidSpickett wrote: Arm colleagues alerted me to the fact that picolibc does have some code to handle this `ALIGN_WITH_INPUT` thing when lld is used. Either CI is using a too old verison of picolibc, or that code is not triggering. To keep each change simple, I'm going ahead with this PR, the

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Prepare ARM Picolibc builds for upgrade to clang 21 (PR #158300)

2025-09-12 Thread David Spickett via cfe-commits
DavidSpickett wrote: Thanks for reviewing! I've fixed the spellings. https://github.com/llvm/llvm-project/pull/158300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Prepare ARM Picolibc builds for upgrade to clang 21 (PR #158300)

2025-09-12 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/158300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Prepare ARM Picolibc builds for upgrade to clang 21 (PR #158300)

2025-09-12 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/158300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Prepare ARM Picolib builds for upgrade to clang 21 (PR #158300)

2025-09-12 Thread David Spickett via cfe-commits
DavidSpickett wrote: Will get someone from Arm to review as well since they are consumers of Picolib and libcxx. https://github.com/llvm/llvm-project/pull/158300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] [lldb] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-09-09 Thread David Spickett via cfe-commits
DavidSpickett wrote: Might be fixed next build, I saw the Linux ones fail then go green right after. https://github.com/llvm/llvm-project/pull/149827 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [libcxx] [lldb] [llvm] [polly] [python] remove Python 3.9 specific typing annotations (PR #156868)

2025-09-04 Thread David Spickett via cfe-commits
DavidSpickett wrote: > from typing import List Is this something we install or something that's included with Python 3.8+? https://github.com/llvm/llvm-project/pull/156868 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [llvm] [NVPTX] Change the alloca address space in NVPTXLowerAlloca (PR #154814)

2025-09-03 Thread David Spickett via cfe-commits
DavidSpickett wrote: > Does this mean that the test bots rebase/merge before building and testing? Yes. I think the intent was to catch earlier failures that would happen when it's merged, but I don't know how as a PR author you're supposed to realise that it got rebased. https://github.com/l

[clang] [llvm] [NVPTX] Change the alloca address space in NVPTXLowerAlloca (PR #154814)

2025-09-03 Thread David Spickett via cfe-commits
DavidSpickett wrote: If you didn't dig it out of the logs already, you can see the test output here: https://github.com/llvm/llvm-project/actions/runs/17434074847?pr=154814 (no idea why it's failing, just a drive by tip) https://github.com/llvm/llvm-project/pull/154814

[clang] [clang][www] Documentation revision and proof read for features.html (PR #156620)

2025-09-03 Thread David Spickett via cfe-commits
DavidSpickett wrote: llvm-project is set to "squash and merge" only so no, you don't have to squash the changes yourself. https://github.com/llvm/llvm-project/pull/156620 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [clang][www] Documentation revision and proof read for features.html (PR #156620)

2025-09-03 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett closed https://github.com/llvm/llvm-project/pull/156620 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][www] Documentation revision and proof read for features.html (PR #156620)

2025-09-03 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett approved this pull request. LGTM. You need to adjust your GitHub email settings before I can merge this. See https://llvm.org/docs/DeveloperPolicy.html#email-addresses. https://github.com/llvm/llvm-project/pull/156620 ___

[clang] [clang] Only build c-index-test and apinotes-test when clang tests are included (PR #151157)

2025-08-29 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett updated https://github.com/llvm/llvm-project/pull/151157 >From 714a9cb319a8946fa670c7e8bbe7f29f847fa45f Mon Sep 17 00:00:00 2001 From: David Spickett Date: Tue, 29 Jul 2025 14:17:56 + Subject: [PATCH 1/2] [clang] Only build c-index-test when clang tests are

[clang] [clang] Only build c-index-test and apinotes-test when clang tests are included (PR #151157)

2025-08-26 Thread David Spickett via cfe-commits
DavidSpickett wrote: ping! https://github.com/llvm/llvm-project/pull/151157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl][AIX][zOS] Disable clang/test/Interpreter tests on AIX and zOS (NFC) (PR #153587)

2025-08-15 Thread David Spickett via cfe-commits
DavidSpickett wrote: I will be away for the next week, so don't wait for my approval. https://github.com/llvm/llvm-project/pull/153587 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl][AIX][zOS] Disable clang/test/Interpreter tests on AIX and zOS (NFC) (PR #153587)

2025-08-14 Thread David Spickett via cfe-commits
@@ -1,2 +1,5 @@ -if "host-supports-jit" not in config.available_features: +import sys + +# clang-repl is not supported on AIX and zOS +if "host-supports-jit" not in config.available_features or sys.platform == "aix" or sys.platform == "zos": DavidSpickett wrote:

[clang] [clang-repl][AIX][zOS] Disable clang/test/Interpreter tests on AIX and zOS (NFC) (PR #153587)

2025-08-14 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/153587 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl][AIX][zOS] Disable clang/test/Interpreter tests on AIX and zOS (NFC) (PR #153587)

2025-08-14 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett commented: I don't know the overlap or not between AIX and zOS but I'll assume you do. Thanks for following up. https://github.com/llvm/llvm-project/pull/153587 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [clang-tools-extra] [clang] Improve nested name specifier AST representation (PR #147835)

2025-08-11 Thread David Spickett via cfe-commits
DavidSpickett wrote: https://github.com/llvm/llvm-project/pull/152993 fixes this. Pretty sure there's no problem with this PR, it uncovered an existing problem in the formatter itself. https://github.com/llvm/llvm-project/pull/147835 ___ cfe-commits

[clang] [clang-tools-extra] [clang] Improve nested name specifier AST representation (PR #147835)

2025-08-11 Thread David Spickett via cfe-commits
DavidSpickett wrote: This has changed the output of lldb's std::string formatter when it's not a valid std::string object: ``` TEST 'lldb-api :: functionalities/data-formatter/data-formatter-stl/generic/string/TestDataFormatterStdString.py' FAILED Scri

[clang] [clang-repl] add %help, documentation, and tests for %commands (PR #150348)

2025-08-05 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett closed https://github.com/llvm/llvm-project/pull/150348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] add %help, documentation, and tests for %commands (PR #150348)

2025-08-05 Thread David Spickett via cfe-commits
DavidSpickett wrote: Looks good, thanks! Let's see what the maintainer has to say. https://github.com/llvm/llvm-project/pull/150348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] add %help, documentation, and tests for %commands (PR #150348)

2025-08-05 Thread David Spickett via cfe-commits
@@ -364,15 +366,34 @@ int main(int argc, const char **argv) { } Input += L; + // If we add more % commands, there should be better architecture than + // this. if (Input == R"(%quit)") { break; } if (Input == R"(%undo)") {

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-08-04 Thread David Spickett via cfe-commits
DavidSpickett wrote: Please update the PR description to reflect the current changes. @vgvassilev what do you think of this? Only question I have is whether there's a special way to print non-error output, or whether stdout is fine? In theory `%help` is just like `printf("..."); but it prints

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-08-04 Thread David Spickett via cfe-commits
@@ -159,8 +159,31 @@ Lamdas: clang-repl> welcome(); Welcome to REPL -Using Dynamic Library: -== +Comments: += + +.. code-block:: text + + clang-repl> // Comments in Clang-Repl + clang-repl> /* Comments in Clang-Repl */ + +

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-08-04 Thread David Spickett via cfe-commits
@@ -364,15 +366,34 @@ int main(int argc, const char **argv) { } Input += L; + // If we add more % commands, there should be better architecture than + // this. if (Input == R"(%quit)") { break; } if (Input == R"(%undo)") {

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-08-01 Thread David Spickett via cfe-commits
DavidSpickett wrote: Use the ostream then. We'll see if other reviewers think differently. https://github.com/llvm/llvm-project/pull/150348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
@@ -159,8 +159,21 @@ Lamdas: clang-repl> welcome(); Welcome to REPL -Using Dynamic Library: -== +Built in Commands: +== +clang-repl has some special commands that are of the form `%`. To list all these commands, use the `%help` comman

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
@@ -370,9 +378,24 @@ int main(int argc, const char **argv) { if (Input == R"(%undo)") { if (auto Err = Interp->Undo()) llvm::logAllUnhandledErrors(std::move(Err), llvm::errs(), "error: "); + } else if (Input == R"(%help)") { +auto Err = +

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
@@ -189,21 +202,40 @@ Using Dynamic Library: clang++-17 -c -o print.o print.cpp clang-17 -shared print.o -o print.so -Comments: -= +Undo: += +The `%undo` command reverts the previous input. DavidSpickett wrote: I would say "undoes". I know

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
@@ -370,9 +378,24 @@ int main(int argc, const char **argv) { if (Input == R"(%undo)") { if (auto Err = Interp->Undo()) llvm::logAllUnhandledErrors(std::move(Err), llvm::errs(), "error: "); + } else if (Input == R"(%help)") { +auto Err = +

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
@@ -185,7 +185,7 @@ struct ReplListCompleter { clang::Interpreter &MainInterp; ReplListCompleter(clang::IncrementalCompilerBuilder &CB, clang::Interpreter &Interp) - : CB(CB), MainInterp(Interp){}; + : CB(CB), MainInterp(Interp) {}; ---

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
@@ -159,8 +159,21 @@ Lamdas: clang-repl> welcome(); Welcome to REPL -Using Dynamic Library: -== +Built in Commands: +== +clang-repl has some special commands that are of the form `%`. To list all these commands, use the `%help` comman

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
@@ -189,21 +202,40 @@ Using Dynamic Library: clang++-17 -c -o print.o print.cpp clang-17 -shared print.o -o print.so -Comments: -= +Undo: += +The `%undo` command reverts the previous input. .. code-block:: text - clang-repl> // Comments in Clang-Repl

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
@@ -347,7 +348,15 @@ int main(int argc, const char **argv) { } } + // if we add more % commands, there should be better architecture than this DavidSpickett wrote: It's fine, point is, it's very clear to the next person that they should think about th

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett commented: So this is great, just some small things to fix. Next you need to add tests for: * %help * %lib with no argument * %rubbish error message I would do all those as their own test files. You could add the %lib bit to one of the existing tests, but each

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
@@ -159,8 +159,21 @@ Lamdas: clang-repl> welcome(); Welcome to REPL -Using Dynamic Library: -== +Built in Commands: +== +clang-repl has some special commands that are of the form `%`. To list all these commands, use the `%help` comman

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
@@ -370,9 +378,24 @@ int main(int argc, const char **argv) { if (Input == R"(%undo)") { if (auto Err = Interp->Undo()) llvm::logAllUnhandledErrors(std::move(Err), llvm::errs(), "error: "); + } else if (Input == R"(%help)") { +auto Err = +

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-30 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/150348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Only build c-index-test and apinotes-test when clang tests are included (PR #151157)

2025-07-29 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/151157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Only build c-index-test and apinotes-test when clang tests are included (PR #151157)

2025-07-29 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/151157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Only build c-index-test and apinotes-test when clang tests are included (PR #151157)

2025-07-29 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/151157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Only build c-index-test when clang tests are included (PR #151157)

2025-07-29 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett updated https://github.com/llvm/llvm-project/pull/151157 >From 714a9cb319a8946fa670c7e8bbe7f29f847fa45f Mon Sep 17 00:00:00 2001 From: David Spickett Date: Tue, 29 Jul 2025 14:17:56 + Subject: [PATCH 1/2] [clang] Only build c-index-test when clang tests are

[clang] [clang] Only build c-index-test when clang tests are included (PR #151157)

2025-07-29 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/151157 c-index-test is only used for testing, and it's used in tests that are already guarded by CLANG_INCLUDE_TESTS in clang/CMakeLists.txt. This change enables us to do builds with LLVM_INSTALL_TOOLCHAIN_ONLY=

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett commented: I had a dark thought that maybe mutli-line input would mess up checking for % commands, but luckily it does not. ``` clang-repl> int a = 1; clang-repl> int b = 10 \ clang-repl... %undo In file included from <<< inputs >>>:1: input_line_2:1:13: error

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
@@ -197,6 +197,20 @@ Comments: clang-repl> // Comments in Clang-Repl clang-repl> /* Comments in Clang-Repl */ +Help: DavidSpickett wrote: I think the doc needs to at some point introduce the concept of % commands, so how about adding a title like "Buil

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
@@ -347,7 +348,15 @@ int main(int argc, const char **argv) { } } + // if we add more % commands, there should be better architecture than this + const char *help_output = "%help\tlist clang-repl %commands\n" +"%undo\tundo the previous input\

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
@@ -28,6 +28,7 @@ #include "llvm/Support/ManagedStatic.h" // llvm_shutdown #include "llvm/Support/Signals.h" #include "llvm/Support/TargetSelect.h" +#include "llvm/Support/raw_ostream.h" DavidSpickett wrote: If we leave the welcome message out, you can remove

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
@@ -370,6 +379,10 @@ int main(int argc, const char **argv) { if (Input == R"(%undo)") { if (auto Err = Interp->Undo()) llvm::logAllUnhandledErrors(std::move(Err), llvm::errs(), "error: "); + } else if (Input == R"(%help)") { +OS << help_outp

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
@@ -347,7 +348,15 @@ int main(int argc, const char **argv) { } } + // if we add more % commands, there should be better architecture than this DavidSpickett wrote: Another factor here is code locality. If this was spread across files the threshold for

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
@@ -347,7 +348,15 @@ int main(int argc, const char **argv) { } } + // if we add more % commands, there should be better architecture than this DavidSpickett wrote: Format your comments as if they were normal written sentences. Which means capital lett

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
@@ -197,6 +197,20 @@ Comments: clang-repl> // Comments in Clang-Repl clang-repl> /* Comments in Clang-Repl */ +Help: += + +.. code-block:: text + + clang-repl>%help + +Undo: += + DavidSpickett wrote: I know it seems obvious what this does, but

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
@@ -347,7 +348,15 @@ int main(int argc, const char **argv) { } } + // if we add more % commands, there should be better architecture than this + const char *help_output = "%help\tlist clang-repl %commands\n" +"%undo\tundo the previous input\

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
@@ -197,6 +197,20 @@ Comments: clang-repl> // Comments in Clang-Repl clang-repl> /* Comments in Clang-Repl */ +Help: += + +.. code-block:: text + + clang-repl>%help DavidSpickett wrote: Actual clang-repl prints a space after the >, include that in

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/150348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
@@ -370,6 +379,10 @@ int main(int argc, const char **argv) { if (Input == R"(%undo)") { if (auto Err = Interp->Undo()) llvm::logAllUnhandledErrors(std::move(Err), llvm::errs(), "error: "); + } else if (Input == R"(%help)") { +OS << help_outp

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
@@ -370,6 +379,10 @@ int main(int argc, const char **argv) { if (Input == R"(%undo)") { if (auto Err = Interp->Undo()) llvm::logAllUnhandledErrors(std::move(Err), llvm::errs(), "error: "); + } else if (Input == R"(%help)") { +OS << help_outp

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-29 Thread David Spickett via cfe-commits
DavidSpickett wrote: Sorry, I didn't realise this was a PR! So tunnel visioned on the comment notification. So if any of what I said made not much sense, that's why :) Will review this today. https://github.com/llvm/llvm-project/pull/150348 ___ cfe-c

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-28 Thread David Spickett via cfe-commits
DavidSpickett wrote: To be clear, not saying you have to do all of the things suggested here. If you find something else to work on, please do :) https://github.com/llvm/llvm-project/pull/150348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-28 Thread David Spickett via cfe-commits
DavidSpickett wrote: > I've added %undo to the documentation and implemented %help. Would it be good > to also add %help to the documentation? Yes add %help. It feels a bit redundant and it is, but it'll also be a hint for future developers to say "hey, remember that new commands have to appea

[clang] [lldb] [lldb-dap] Add performance optimization options to improve launch times (PR #150365)

2025-07-24 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett requested changes to this pull request. I'm going to go out on a limb and suggest that a certain sort of assistive interactive tool was used to generate this. Which I don't venture an opinion on in general but in this case, it's didn't do so well. A glance at t

[clang] [clang-tools-extra] [lldb] [llvm] [mlir] [NFC] Fix typos 'seperate' -> 'separate' (PR #144368)

2025-07-24 Thread David Spickett via cfe-commits
DavidSpickett wrote: Please change your email settings as explained in https://llvm.org/docs/DeveloperPolicy.html#email-addresses. Right now it would be merged with a GitHub noreply address. https://github.com/llvm/llvm-project/pull/144368 ___ cfe-co

[clang] [clang-tools-extra] [lldb] [llvm] [mlir] [NFC] Fix typos 'seperate' -> 'separate' (PR #144368)

2025-07-24 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/144368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Improve error message on failed undos (PR #149396)

2025-07-23 Thread David Spickett via cfe-commits
DavidSpickett wrote: > Do I need to do anything else? No, all good. > Or is squashing the commits and merging up to someone with write permissions? GitHub will do the squashing, and yes I just clicked the merge button for you. Once you have established a track record you can [ask for permiss

[clang] [clang-repl] Improve error message on failed undos (PR #149396)

2025-07-23 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett closed https://github.com/llvm/llvm-project/pull/149396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-07-23 Thread David Spickett via cfe-commits
DavidSpickett wrote: > Any other ideas or should we just revert everything while you try to figure > it out? It requires the x86 target, but not in an obvious way, clang's cc1 generates an option that requires the target. Rather than what you see in the RUN line requiring it. Should be fixed

[clang] 52737ea - [clang][test] Require x86 target for new Windows EH tests

2025-07-23 Thread David Spickett via cfe-commits
Author: David Spickett Date: 2025-07-23T08:44:57Z New Revision: 52737ea6d69d79fb104480d9cd67bf85711fc939 URL: https://github.com/llvm/llvm-project/commit/52737ea6d69d79fb104480d9cd67bf85711fc939 DIFF: https://github.com/llvm/llvm-project/commit/52737ea6d69d79fb104480d9cd67bf85711fc939.diff LOG

[clang] [llvm] Make sanitizer special case list slash-agnostic (PR #149886)

2025-07-22 Thread David Spickett via cfe-commits
DavidSpickett wrote: I don't have an opinion either way but there are more users of `GlobPattern` so you should check the impact on them. https://github.com/llvm/llvm-project/pull/149886 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

[clang] [NFC][clang] Split clang/lib/CodeGen/CGBuiltin.cpp into target-specific files (PR #132252)

2025-07-22 Thread David Spickett via cfe-commits
DavidSpickett wrote: FYI https://discourse.llvm.org/t/rfc-rename-source-files-in-clang-lib-codegen-targetbuiltins/87462 https://github.com/llvm/llvm-project/pull/132252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [clang-repl] Improve error message on failed undos (PR #149396)

2025-07-21 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett approved this pull request. LGTM @aadanen you won't be able to merge this yourself but I can once you've fixed the formatting. https://github.com/llvm/llvm-project/pull/149396 ___ cfe-commits mailing list cfe-commits@

[clang] [clang-repl] Improve error message on failed undos (PR #149396)

2025-07-21 Thread David Spickett via cfe-commits
DavidSpickett wrote: You have formatting to fix, I suggest you just copy and paste the diff in this one time. Folks will have different ways to setup clang-format, I use the script https://clang.llvm.org/docs/ClangFormat.html#script-for-patch-reformatting and manually run it (because I am too

[clang] [clang-repl] Improve error message on failed undos (PR #149396)

2025-07-21 Thread David Spickett via cfe-commits
DavidSpickett wrote: > I am able to build clang, compile the project, and I am currently running the > "ninja check-clang-unit" tests. Although it does take an incredibly long time > ( 45 minutes to an hour) but that's off topic llvm/clang is not a light build at the best of times, but there a

[clang] [clang-repl] Improve error message on failed undos (PR #149396)

2025-07-21 Thread David Spickett via cfe-commits
DavidSpickett wrote: Looks great! CI should confirm the test is correct, and I added the clang-repl maintainer on review in case they have anything to say. https://github.com/llvm/llvm-project/pull/149396 ___ cfe-commits mailing list cfe-commits@lists

[clang] [clang-repl] Improve error message on failed undos (PR #149396)

2025-07-21 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/149396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Improve error message on failed undos (PR #149396)

2025-07-21 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/149396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Issue143668 (PR #149396)

2025-07-18 Thread David Spickett via cfe-commits
@@ -158,12 +158,12 @@ TEST_F(InterpreterTest, UndoCommand) { // Fail to undo. auto Err1 = Interp->Undo(); - EXPECT_EQ("Operation failed. Too many undos", + EXPECT_EQ("Operation failed. No input left to undo", llvm::toString(std::move(Err1))); auto Err2 =

[clang] Issue143668 (PR #149396)

2025-07-18 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/149396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Issue143668 (PR #149396)

2025-07-18 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/149396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Issue143668 (PR #149396)

2025-07-18 Thread David Spickett via cfe-commits
DavidSpickett wrote: https://github.com/llvm/llvm-project/pull/149396#issuecomment-3088555387 is one of our automated checks, please follow its guidance. The reason we do this is so we can attribute changes for reasons around the licensing of contributions, there's more info in those links. It

[clang] Issue143668 (PR #149396)

2025-07-18 Thread David Spickett via cfe-commits
@@ -158,12 +158,12 @@ TEST_F(InterpreterTest, UndoCommand) { // Fail to undo. auto Err1 = Interp->Undo(); - EXPECT_EQ("Operation failed. Too many undos", + EXPECT_EQ("Operation failed. No input left to undo", llvm::toString(std::move(Err1))); auto Err2 =

[clang] Issue143668 (PR #149396)

2025-07-18 Thread David Spickett via cfe-commits
@@ -158,12 +158,12 @@ TEST_F(InterpreterTest, UndoCommand) { // Fail to undo. auto Err1 = Interp->Undo(); - EXPECT_EQ("Operation failed. Too many undos", + EXPECT_EQ("Operation failed. No input left to undo", llvm::toString(std::move(Err1))); auto Err2 =

[clang] [clang][Driver] Prefer non-Linux emulations for baremetal Arm/AArch64 targets (PR #149235)

2025-07-17 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/149235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Prefer non-Linux emulations for baremetal Arm/AArch64 targets (PR #149235)

2025-07-17 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/149235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [win][aarch64] Always reserve frame pointers for Arm64 Windows (PR #146582)

2025-07-03 Thread David Spickett via cfe-commits
DavidSpickett wrote: The actual error is the same as seen elsewhere: ``` $ /home/david.spickett/build-llvm-aarch64/bin/flang --target=aarch64-pc-windows-msvc -Werror ../llvm-project/flang/test/Semantics/windows.f90 flang-21: warning: unable to find a Visual Studio installation; try running Cla

[clang] d805707 - [clang][test] Correct UNSUPPORTED syntax in print-ranges.cpp

2025-07-03 Thread David Spickett via cfe-commits
Author: David Spickett Date: 2025-07-03T13:36:30Z New Revision: d805707ee435fbe83440ceaf0eb515bf1d536f01 URL: https://github.com/llvm/llvm-project/commit/d805707ee435fbe83440ceaf0eb515bf1d536f01 DIFF: https://github.com/llvm/llvm-project/commit/d805707ee435fbe83440ceaf0eb515bf1d536f01.diff LOG

[clang] [llvm] [win][aarch64] Always reserve frame pointers for Arm64 Windows (PR #146582)

2025-07-03 Thread David Spickett via cfe-commits
DavidSpickett wrote: The warning: ``` RUN: at line 1 has no command after substitutions ``` Is because the test looks for the wrong target to be enabled, this will be fixed by: https://github.com/llvm/llvm-project/pull/146869 It's not the cause of the failure. https://github.com/llvm/llvm-proj

[clang] [llvm] [win][aarch64] Always reserve frame pointers for Arm64 Windows (PR #146582)

2025-07-03 Thread David Spickett via cfe-commits
DavidSpickett wrote: I've reverted this due to a test failure on our Linux bots: https://lab.llvm.org/buildbot/#/builders/17/builds/9292 And if I understand correctly, flang needs another patch before it can build properly on Windows: ``` FAILED: include/flang/__fortran_builtins.mod C:/Users/

[clang] [llvm] Revert "[win][aarch64] Always reserve frame pointers for Arm64 Windows" (PR #146836)

2025-07-03 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett closed https://github.com/llvm/llvm-project/pull/146836 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   6   7   8   >