[clang] ab5133b - Revert "[Darwin][Driver][clang] apple-none-macho orders the resource directory after internal-externc-isystem when nostdlibinc is used (#120507)"

2025-01-07 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2025-01-07T09:23:50-05:00 New Revision: ab5133bbc62af4686f305a3c7d85f74b9f5b949f URL: https://github.com/llvm/llvm-project/commit/ab5133bbc62af4686f305a3c7d85f74b9f5b949f DIFF: https://github.com/llvm/llvm-project/commit/ab5133bbc62af4686f305a3c7d85f74b9f5b949f.diff LO

[clang] [llvm] [Darwin][Driver][clang] apple-none-macho orders the resource directory after internal-externc-isystem when nostdlibinc is used (PR #120507)

2025-01-07 Thread Nico Weber via cfe-commits
nico wrote: Also fails here: http://45.33.8.238/linux/156731/step_6.txt http://45.33.8.238/macm1/98544/step_6.txt https://github.com/llvm/llvm-project/pull/120507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [llvm] [Darwin][Driver][clang] apple-none-macho orders the resource directory after internal-externc-isystem when nostdlibinc is used (PR #120507)

2025-01-07 Thread Nico Weber via cfe-commits
nico wrote: Reverted in ab5133bbc62af4686f305a3c7d85f74b9f5b949f for now. https://github.com/llvm/llvm-project/pull/120507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Expose -f(no-)wrapv as clang-cl option (PR #120787)

2025-01-06 Thread Nico Weber via cfe-commits
https://github.com/nico closed https://github.com/llvm/llvm-project/pull/120787 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a4deb80 - Revert "Reapply "[Driver][OHOS] Fix lld link issue for OHOS (#118192)" (#120159)"

2025-01-02 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2025-01-02T09:13:40-05:00 New Revision: a4deb809be8f5ec3adec3626e9d700f6168d0e9f URL: https://github.com/llvm/llvm-project/commit/a4deb809be8f5ec3adec3626e9d700f6168d0e9f DIFF: https://github.com/llvm/llvm-project/commit/a4deb809be8f5ec3adec3626e9d700f6168d0e9f.diff LO

[clang] Reapply "[Driver][OHOS] Fix lld link issue for OHOS (#118192)" (PR #120159)

2025-01-02 Thread Nico Weber via cfe-commits
nico wrote: Here's a command you can use to reproduce this: ``` cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_PROJECTS='clang;lld;compiler-rt' -DLLVM_APPEND_VC_REV=NO -DLLVM_TARGETS_TO_BUILD='X86' -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF ../llvm-project/ll

[clang] Reapply "[Driver][OHOS] Fix lld link issue for OHOS (#118192)" (PR #120159)

2025-01-02 Thread Nico Weber via cfe-commits
nico wrote: I did remove the contents of out/gn/lib/clang/20/lib/linux, but `./lib/clang/20/lib/linux/libclang_rt.builtins-x86_64.a` just reappeared on the next build. I'm guessing this might break tests in cmake builds that use `-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF` (?) http://45.33.8.2

[clang] [clang] Expose -f(no-)wrapv as clang-cl option (PR #120787)

2024-12-20 Thread Nico Weber via cfe-commits
https://github.com/nico created https://github.com/llvm/llvm-project/pull/120787 Also move the -fno-wrapv option definition next to the -fwrapv one while here. >From 48b974d50a6b5d91f094663e446b94910a22f097 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 20 Dec 2024 14:25:20 -0500 Subject:

[clang] [compiler-rt] Move interceptors for libresolv functions to MSan (PR #119071)

2024-12-17 Thread Nico Weber via cfe-commits
nico wrote: @alanzhao1 has been trying to reproduce the problem, I think. I'm not sure what the current status is. https://github.com/llvm/llvm-project/pull/119071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] Reapply "[Driver][OHOS] Fix lld link issue for OHOS (#118192)" (PR #120159)

2024-12-17 Thread Nico Weber via cfe-commits
nico wrote: IIRC there are two possible compiler-rt directory layouts. @MaskRay worked on moving many platforms from one to another. I think the newer layout doesn't use platform suffixes. We shouldn't change where clang looks for things just for my bot. Thanks for figuring it out; I can dele

[clang] Fix lld link issue for OHOS (PR #118192)

2024-12-17 Thread Nico Weber via cfe-commits
nico wrote: Aha! Yes, that bot does do incremental builds. (As do many devs.) https://github.com/llvm/llvm-project/pull/118192 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] Move interceptors for libresolv functions to MSan (PR #119071)

2024-12-15 Thread Nico Weber via cfe-commits
nico wrote: I'll try to find a Linux box tomorrow to get more details. https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket/8728518597999528929/+/u/package_clang/stdout?format=raw is the full build output. If you ctrl-f for "cmake -G", you should find all cmake vars that that bot

[clang] [compiler-rt] Move interceptors for libresolv functions to MSan (PR #119071)

2024-12-15 Thread Nico Weber via cfe-commits
nico wrote: I reverted this in 1464b8ec8a675fd11dc7280db1c56aac03771b0a for now. https://github.com/llvm/llvm-project/pull/119071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1464b8e - Revert "Move interceptors for libresolv functions to MSan (#119071)"

2024-12-15 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2024-12-15T14:04:56-05:00 New Revision: 1464b8ec8a675fd11dc7280db1c56aac03771b0a URL: https://github.com/llvm/llvm-project/commit/1464b8ec8a675fd11dc7280db1c56aac03771b0a DIFF: https://github.com/llvm/llvm-project/commit/1464b8ec8a675fd11dc7280db1c56aac03771b0a.diff LO

[clang] 5004622 - Revert "[Driver] Cache SanitizerArgs (NFC) (#119442)"

2024-12-15 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2024-12-15T14:04:55-05:00 New Revision: 50046221b8e913ec6506eb96ce4c0cd267a5cc99 URL: https://github.com/llvm/llvm-project/commit/50046221b8e913ec6506eb96ce4c0cd267a5cc99 DIFF: https://github.com/llvm/llvm-project/commit/50046221b8e913ec6506eb96ce4c0cd267a5cc99.diff LO

[clang] [compiler-rt] Move interceptors for libresolv functions to MSan (PR #119071)

2024-12-15 Thread Nico Weber via cfe-commits
nico wrote: This broke Linux/dn_expand.cpp on our bots, see https://issues.chromium.org/issues/384188036 https://github.com/llvm/llvm-project/pull/119071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang] Fix lld link issue for OHOS (PR #118192)

2024-12-13 Thread Nico Weber via cfe-commits
nico wrote: If all other bots are happy, then I'm doing something wrong probably. If you don't mind reverting, it'd be nice since then I can catch other, actual problems, with the bot, but it's not a requirement. https://github.com/llvm/llvm-project/pull/118192

[clang] Fix lld link issue for OHOS (PR #118192)

2024-12-13 Thread Nico Weber via cfe-commits
nico wrote: This broke check-clang on my linux box: http://45.33.8.238/linux/155432/step_6.txt That bot uses the GN build – are there any prerequisite changes elsewhere that I need to port to it? https://github.com/llvm/llvm-project/pull/118192 ___

[clang] [compiler-rt] [llvm] [X86] Support -march=diamondrapids (PR #113881)

2024-11-18 Thread Nico Weber via cfe-commits
nico wrote: Looks like this breaks tests: http://45.33.8.238/linux/153081/step_6.txt Please take a look and revert for now if it takes a while to fix. https://github.com/llvm/llvm-project/pull/113881 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] [Clang][HIP] Deprecate the AMDGCN_WAVEFRONT_SIZE macros (PR #112849)

2024-11-08 Thread Nico Weber via cfe-commits
@@ -0,0 +1,111 @@ +// REQUIRES: amdgpu-registered-target +// RUN: %clang -xhip --offload-arch=gfx1030 --offload-host-only -pedantic -nogpuinc -nogpulib -nobuiltininc -fsyntax-only -Xclang -verify %s +// RUN: %clang -xhip --offload-arch=gfx1030 --offload-device-only -pedantic -no

[clang] [Clang][HIP] Deprecate the AMDGCN_WAVEFRONT_SIZE macros (PR #112849)

2024-11-08 Thread Nico Weber via cfe-commits
@@ -0,0 +1,111 @@ +// REQUIRES: amdgpu-registered-target +// RUN: %clang -xhip --offload-arch=gfx1030 --offload-host-only -pedantic -nogpuinc -nogpulib -nobuiltininc -fsyntax-only -Xclang -verify %s +// RUN: %clang -xhip --offload-arch=gfx1030 --offload-device-only -pedantic -no

[clang] [clang][dataflow] Add a lattice to help cache const accessor methods (PR #111006)

2024-10-25 Thread Nico Weber via cfe-commits
@@ -0,0 +1,218 @@ +//===-- CachedConstAccessorsLattice.h ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [clang-tools-extra] [flang] [llvm] Reland 'Update llvm::Registry to work for LLVM shared library builds on windows' (#109024) (PR #112640)

2024-10-25 Thread Nico Weber via cfe-commits
nico wrote: This seems to break building of clang-tools-extra binaries: http://45.33.8.238/win/95986/step_3.txt Please take a look and revert for now if it takes a while to fix. https://github.com/llvm/llvm-project/pull/112640 ___ cfe-commits mailing

[clang] [clang][dataflow] Add a lattice to help cache const accessor methods (PR #111006)

2024-10-25 Thread Nico Weber via cfe-commits
@@ -0,0 +1,218 @@ +//===-- CachedConstAccessorsLattice.h ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [clang][dataflow] Disambiguate a ref to "internal" in CachedConstAccessorsLattice (PR #113601)

2024-10-24 Thread Nico Weber via cfe-commits
nico wrote: I think this'll fix the build, thanks! However, the root cause is probably that the `AST_MATCHER_P_OVERLOAD` instantiation in clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp is in an unnamed namespace that's inside namespace `clang::dataflow`, right? Shoul

[clang] [Clang] Add __builtin_(elementwise|reduce)_(max|min)imum (PR #110198)

2024-10-01 Thread Nico Weber via cfe-commits
nico wrote: Looks like this breaks check-clang: http://45.33.8.238/linux/149333/step_6.txt Please take a look and revert for now if it takes a while to fix. https://github.com/llvm/llvm-project/pull/110198 ___ cfe-commits mailing list cfe-commits@list

[clang] [llvm] [AArch64] Implement intrinsics for SME2 FSCALE (PR #100128)

2024-09-25 Thread Nico Weber via cfe-commits
nico wrote: Thanks for merging the fix! At least on one of my bots, it helped and it's green again :) https://github.com/llvm/llvm-project/pull/100128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [llvm] [AArch64] Implement intrinsics for SME2 FSCALE (PR #100128)

2024-09-25 Thread Nico Weber via cfe-commits
nico wrote: The test is broken on trunk. It won't get more broken if you merge the fix. So please merge, and if it helps, great. https://github.com/llvm/llvm-project/pull/100128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [Driver] Add toolchain for X86_64 UEFI target (PR #76838)

2024-09-19 Thread Nico Weber via cfe-commits
nico wrote: Looks like this breaks tests on Mac: http://45.33.8.238/macm1/92471/step_6.txt Please take a look and revert for now if it takes a while to fix. https://github.com/llvm/llvm-project/pull/76838 ___ cfe-commits mailing list cfe-commits@lists

[clang] [clang-tools-extra] Remove clang-pseudo (PR #109154)

2024-09-18 Thread Nico Weber via cfe-commits
@@ -181,16 +181,16 @@ llvm::Expected> getFoldingRanges(ParsedAST &AST) { // Related issue: https://github.com/clangd/clangd/issues/310 llvm::Expected> getFoldingRanges(const std::string &Code, bool LineFoldingOnly) { nico wrote: Should we revert 70914aa631561

[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

2024-09-17 Thread Nico Weber via cfe-commits
nico wrote: @thurstond ^ https://github.com/llvm/llvm-project/pull/106588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

2024-09-17 Thread Nico Weber via cfe-commits
nico wrote: Looks like the _revert_ broke check-clang: http://45.33.8.238/linux/148045/step_6.txt Please take a look, and uh, mark that test as UNSUPPORTED if it takes a while to fix, I suppose. https://github.com/llvm/llvm-project/pull/106588 ___ c

[clang] [Utils] add update-verify-tests.py (PR #97369)

2024-09-13 Thread Nico Weber via cfe-commits
nico wrote: This breaks tests on windows: http://45.33.8.238/win/94083/step_6.txt Please take a look and revert for now if it takes a while to fix. https://github.com/llvm/llvm-project/pull/97369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][test] Fix some windows driver tests with legacy runtime dir layout (PR #108452)

2024-09-12 Thread Nico Weber via cfe-commits
https://github.com/nico closed https://github.com/llvm/llvm-project/pull/108452 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][test] Fix some windows driver tests with legacy runtime dir layout (PR #108452)

2024-09-12 Thread Nico Weber via cfe-commits
https://github.com/nico approved this pull request. https://github.com/llvm/llvm-project/pull/108452 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [Driver] Ensure `-fms-volatile` is set for x86 for `*-windows-msvc` triple on non cl driver modes (PR #107509)

2024-09-09 Thread Nico Weber via cfe-commits
nico wrote: (To be clear, I'm fine with landing this.) > non conforming two phase lookup by default would also be a concern. It is! There were quite a few discussions around this. Aha, see #42377. We usually say the goal is to have a very standards compliant impl, while also being able to par

[clang] c64dac2 - [clang] Fix noisy -Wcovered-switch-default warning after 1f70fcefa9 / #100278

2024-09-06 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2024-09-06T09:17:45-04:00 New Revision: c64dac2e6c39f0f7f1c676857e7d34c764b4d632 URL: https://github.com/llvm/llvm-project/commit/c64dac2e6c39f0f7f1c676857e7d34c764b4d632 DIFF: https://github.com/llvm/llvm-project/commit/c64dac2e6c39f0f7f1c676857e7d34c764b4d632.diff LO

[clang] [Clang] [Driver] Ensure `-fms-volatile` is set for x86 for `*-windows-msvc` triple on non cl driver modes (PR #107509)

2024-09-06 Thread Nico Weber via cfe-commits
nico wrote: For this patch here, I don't know if gcc even has a `fms-volatile`. If not, this here seems less surprising to me than the strict aliasing patch. https://github.com/llvm/llvm-project/pull/107509 ___ cfe-commits mailing list cfe-commits@lis

[clang] [Clang] [Driver] Ensure `-fms-volatile` is set for x86 for `*-windows-msvc` triple on non cl driver modes (PR #107509)

2024-09-06 Thread Nico Weber via cfe-commits
nico wrote: I don't have a very strong opinion. I find it surprising in that the clang driver is supposed to be gcc-compatible, and having to use `clang -fstrict-aliasing` (but only when targeting Windows) to get the default behavior looks a bit surprising. (I agree it's a better default, but

[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)

2024-09-06 Thread Nico Weber via cfe-commits
nico wrote: I made that change in 5cf3677a7bcdf5a9e603c054bd40c1282db984a9. https://github.com/llvm/llvm-project/pull/98736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5cf3677 - [clang] Pass -c to clang in test/Driver/Ofast.c

2024-09-06 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2024-09-06T08:27:41-04:00 New Revision: 5cf3677a7bcdf5a9e603c054bd40c1282db984a9 URL: https://github.com/llvm/llvm-project/commit/5cf3677a7bcdf5a9e603c054bd40c1282db984a9 DIFF: https://github.com/llvm/llvm-project/commit/5cf3677a7bcdf5a9e603c054bd40c1282db984a9.diff LO

[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)

2024-09-06 Thread Nico Weber via cfe-commits
nico wrote: …passing `Wno-msvc-not-found` as suggested above would also make the test go. But `-c` seems generally nicer here anyways? https://github.com/llvm/llvm-project/pull/98736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)

2024-09-06 Thread Nico Weber via cfe-commits
nico wrote: > Somehow `clang.exe -Ofast -O2 -### -Werror > C:\src\llvm-project\clang\test\Driver\Ofast.c 2>&1` is not producing any > output for you, despite `-###` being present. I'm not sure why, but all > windows buildbots seem to be happy with this patch. Can you investigate > further? F

[clang] [Clang] Overflow Pattern Exclusions (PR #100272)

2024-08-21 Thread Nico Weber via cfe-commits
nico wrote: The test added here was tweaked a bit and then deleted in https://github.com/llvm/llvm-project/commit/07a8cbaf8dc16bebf6e875173d20299d9cc47cc5 What gives? Instead of deleting tests, we should revert the PR that adds them and then reland the PR with working tests. https://github.c

[libunwind] [libunwind] Be more careful about enabling GCS (PR #101973)

2024-08-05 Thread Nico Weber via cfe-commits
https://github.com/nico approved this pull request. Makes sense, thanks! https://github.com/llvm/llvm-project/pull/101973 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Add GCS support for AArch64 (PR #99335)

2024-08-05 Thread Nico Weber via cfe-commits
nico wrote: That sounds believable. We did update our compiler just an hour or so ago, so it's possible it will work for us now. However, it suggests that the assumption `defined(__ARM_FEATURE_GCS_DEFAULT)` => arm_acle.h has `__chkfeat()` isn't valid in this snippet in libunwind/src/cet_unwi

[libunwind] [libunwind] Add GCS support for AArch64 (PR #99335)

2024-08-04 Thread Nico Weber via cfe-commits
nico wrote: Looks like this breaks building on Android: https://ci.chromium.org/ui/p/chromium/builders/try/android-arm64-rel/680348/overview https://github.com/llvm/llvm-project/pull/99335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)

2024-07-22 Thread Nico Weber via cfe-commits
nico wrote: This seems to break tests on my Windows box: http://45.33.8.238/win/91548/step_6.txt https://github.com/llvm/llvm-project/pull/98736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [libcxx] [llvm] Reapply "[Clang] Implement resolution for CWG1835 (#92957)" (PR #98547)

2024-07-21 Thread Nico Weber via cfe-commits
nico wrote: Independent of the other issues, it looks like this also re-introduces #98878 https://github.com/llvm/llvm-project/pull/98547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-18 Thread Nico Weber via cfe-commits
https://github.com/nico edited https://github.com/llvm/llvm-project/pull/66462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-18 Thread Nico Weber via cfe-commits
https://github.com/nico edited https://github.com/llvm/llvm-project/pull/66462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-18 Thread Nico Weber via cfe-commits
@@ -161,6 +163,7 @@ clang_target_link_libraries(clangDaemon clangAST clangASTMatchers clangBasic + clangDependencyScanning nico wrote: This dependency makes clangd depend (transitively) on clangCodeGen, which it didn't depend on previously. This makes

[clang] [llvm] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

2024-07-10 Thread Nico Weber via cfe-commits
nico wrote: In addition to the test failures, this apparently also breaks building lldb on windows and Mac: http://45.33.8.238/macm1/88231/step_3.txt http://45.33.8.238/win/91235/step_3.txt Please check if that's something real or if my bots are being silly before relanding. https://github.co

[clang] Fix erroneous `-Wmissing-prototypes` for Win32 entry points (PR #98105)

2024-07-09 Thread Nico Weber via cfe-commits
@@ -654,6 +654,9 @@ Improvements to Clang's diagnostics - Clang now shows implicit deduction guides when diagnosing overload resolution failure. #GH92393. +- Clong no longer emits a no previous prototype warning for Win32 entry points under ``-Wmissing-prototypes``. ---

[clang-tools-extra] 69c99ad - [clangd] Fix build on linux after 7878d9c036352

2024-06-28 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2024-06-28T13:42:54+02:00 New Revision: 69c99ad7e84b075bbafc541a2e4397e18975391d URL: https://github.com/llvm/llvm-project/commit/69c99ad7e84b075bbafc541a2e4397e18975391d DIFF: https://github.com/llvm/llvm-project/commit/69c99ad7e84b075bbafc541a2e4397e18975391d.diff LO

[clang-tools-extra] 7878d9c - [clangd] Replace an include with a forward declaration

2024-06-28 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2024-06-28T13:38:14+02:00 New Revision: 7878d9c0363528c44effe55aae2843fbabb6dd0e URL: https://github.com/llvm/llvm-project/commit/7878d9c0363528c44effe55aae2843fbabb6dd0e DIFF: https://github.com/llvm/llvm-project/commit/7878d9c0363528c44effe55aae2843fbabb6dd0e.diff LO

[clang-tools-extra] reapply [clang-doc] Add --asset option to clang-doc (PR #96358)

2024-06-22 Thread Nico Weber via cfe-commits
nico wrote: (I now ported ade28a77ed17760bf2fde57c6571b69489b0bac0 to the GN build in 3ba7599842be. Again, apologies for missing this – the GN build shouldn't affect other people. But I'm kind of glad it did since I found several GN-unrelated issues both here and on #93928. Feel free to do wit

[clang-tools-extra] reapply [clang-doc] Add --asset option to clang-doc (PR #96358)

2024-06-22 Thread Nico Weber via cfe-commits
@@ -127,16 +133,86 @@ std::string getFormatString() { // GetMainExecutable (since some platforms don't support taking the // address of main, and some platforms can't implement GetMainExecutable // without being given the address of a function in the main executable). -std::str

[clang-tools-extra] [clang-doc] Add basic e2e test (PR #93928)

2024-06-22 Thread Nico Weber via cfe-commits
@@ -0,0 +1,21 @@ +#include "Calculator.h" +#include nico wrote: Tests must be freestanding and cannot include system headers. https://github.com/llvm/llvm-project/pull/93928 ___ cfe-commits mailing list cfe-commits@li

[clang-tools-extra] reapply [clang-doc] Add --asset option to clang-doc (PR #96358)

2024-06-22 Thread Nico Weber via cfe-commits
@@ -182,23 +258,9 @@ Example usage for a project using a compile commands database: {"index.js", "index_json.js"}}; if (Format == "html") { -void *MainAddr = (void *)(intptr_t)GetExecutablePath; -std::string ClangDocPath = GetExecutablePath(argv[0], MainAddr);

[clang-tools-extra] [clang-doc] Add basic e2e test (PR #93928)

2024-06-22 Thread Nico Weber via cfe-commits
@@ -0,0 +1,358 @@ +// RUN: rm -rf %t && mkdir -p %t/docs %t/build +// RUN: sed 's|$test_dir|%/S|g' %S/Inputs/basic-project/database_template.json > %t/build/compile_commands.json +// RUN: clang-doc --format=html --output=%t/docs --executor=all-TUs %t/build/compile_commands.json

[clang-tools-extra] reapply [clang-doc] Add --asset option to clang-doc (PR #96358)

2024-06-22 Thread Nico Weber via cfe-commits
@@ -0,0 +1,2 @@ +// RUN: clang-doc --format=html --executor=standalone %s -output=%t/docs | FileCheck %s +// CHECK: Using default asset: {{.*}}{{[\/]}}share{{[\/]}}clang nico wrote: A test that only tests for logspam doesn't seem very useful. I would've expecte

[clang-tools-extra] reapply [clang-doc] Add --asset option to clang-doc (PR #96358)

2024-06-22 Thread Nico Weber via cfe-commits
@@ -127,16 +133,86 @@ std::string getFormatString() { // GetMainExecutable (since some platforms don't support taking the // address of main, and some platforms can't implement GetMainExecutable // without being given the address of a function in the main executable). -std::str

[clang-tools-extra] reapply [clang-doc] Add --asset option to clang-doc (PR #96358)

2024-06-22 Thread Nico Weber via cfe-commits
@@ -182,23 +258,9 @@ Example usage for a project using a compile commands database: {"index.js", "index_json.js"}}; if (Format == "html") { -void *MainAddr = (void *)(intptr_t)GetExecutablePath; -std::string ClangDocPath = GetExecutablePath(argv[0], MainAddr);

[clang-tools-extra] reapply [clang-doc] Add --asset option to clang-doc (PR #96358)

2024-06-22 Thread Nico Weber via cfe-commits
nico wrote: Ah, I see now, the failing test is also very new (70ec8419dd7), and it depends on ade28a77ed177 which the GN build doesn't yet have. But my bot points at this change here for breaking that fairly new end-to-end test. I think it's probably because absence of the css file wasn't an e

[clang-tools-extra] reapply [clang-doc] Add --asset option to clang-doc (PR #96358)

2024-06-22 Thread Nico Weber via cfe-commits
nico wrote: Sorry, I'm confused, how is this build-system dependent? The patch doesn't change any cmake files, and it changes the behavior of an existing test. I'm not saying it can't be build-system dependent, but it isn't clear to me why it is. Do you have a few more words on what's happenin

[clang-tools-extra] [clang-doc] Add --asset option to clang-doc (PR #94717)

2024-06-20 Thread Nico Weber via cfe-commits
nico wrote: Looks Like this might break tests: http://45.33.8.238/linux/141118/step_7.txt Please take a look and revert for now if it takes a while to fix. https://github.com/llvm/llvm-project/pull/94717 ___ cfe-commits mailing list cfe-commits@lists.

[clang] [clang-interp] Use -fno-sized-deallocation in two tests (PR #95546)

2024-06-14 Thread Nico Weber via cfe-commits
https://github.com/nico closed https://github.com/llvm/llvm-project/pull/95546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-interp] Use -fno-sized-deallocation in two tests (PR #95546)

2024-06-14 Thread Nico Weber via cfe-commits
nico wrote: Merging to green up tests on a bot. Happy to address post-commit comments in a follow-up 🙂 https://github.com/llvm/llvm-project/pull/95546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [clang-interp] Use -fno-sized-deallocation in two tests (PR #95546)

2024-06-14 Thread Nico Weber via cfe-commits
https://github.com/nico created https://github.com/llvm/llvm-project/pull/95546 At least on my Windows machine, these two tests fail due to not being able to look up `??3@YAXPEAX_K@Z` (which is `void __cdecl operator delete(void *, unsigned __int64)` in demangled) after 130e93cc26ca. Since they

[clang] [clang-cl] Map /Ot to -O3 instead of -O2 (PR #95406)

2024-06-13 Thread Nico Weber via cfe-commits
https://github.com/nico approved this pull request. https://github.com/llvm/llvm-project/pull/95406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl] Map /Ot to -O3 instead of -O2 (PR #95406)

2024-06-13 Thread Nico Weber via cfe-commits
nico wrote: Oh, you have that in the release notes already, even better. https://github.com/llvm/llvm-project/pull/95406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl] Map /Ot to -O3 instead of -O2 (PR #95406)

2024-06-13 Thread Nico Weber via cfe-commits
nico wrote: Can you add something like "use /O2 /clang:-O2 to restore the previous behavior" to the commit message, on case someone prefers that? Otherwise LG. https://github.com/llvm/llvm-project/pull/95406 ___ cfe-commits mailing list cfe-commits@l

[clang] [clang-tools-extra] [libcxx] Reland "[clang] Enable sized deallocation by default in C++14 onwards" (PR #90373)

2024-06-13 Thread Nico Weber via cfe-commits
nico wrote: This causes #95451. https://github.com/llvm/llvm-project/pull/90373 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9b4f8ac - [clang] Fix a few comment typos to cycle bots

2024-06-11 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2024-06-11T14:00:24-04:00 New Revision: 9b4f8acf9dd1cd517f923c6de8274eed80879f6c URL: https://github.com/llvm/llvm-project/commit/9b4f8acf9dd1cd517f923c6de8274eed80879f6c DIFF: https://github.com/llvm/llvm-project/commit/9b4f8acf9dd1cd517f923c6de8274eed80879f6c.diff LO

[clang] [clang] Add fixit for using declaration with a (qualified) namespace (PR #94762)

2024-06-07 Thread Nico Weber via cfe-commits
https://github.com/nico closed https://github.com/llvm/llvm-project/pull/94762 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add fixit for using declaration with a (qualified) namespace (PR #94762)

2024-06-07 Thread Nico Weber via cfe-commits
https://github.com/nico updated https://github.com/llvm/llvm-project/pull/94762 >From 2cbc9f7e066066ffb04480be6bd7e19855086b80 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 7 Jun 2024 11:17:29 -0400 Subject: [PATCH 1/2] [clang] Add fixit for using declaration with a (qualified) namespace

[clang] [clang] Add fixit for using declaration with a (qualified) namespace (PR #94762)

2024-06-07 Thread Nico Weber via cfe-commits
https://github.com/nico created https://github.com/llvm/llvm-project/pull/94762 For `using std::literals`, we now output: error: using declaration cannot refer to a namespace 4 | using std::literals; | ~^ note: did you mean 'using namespace'? 4 |

[clang] Enable unguarded availability diagnostic on instantiated template functions (PR #91699)

2024-06-05 Thread Nico Weber via cfe-commits
nico wrote: Any chance to put these behind a subgroup? This now fires in a bunch of places where it didn't before. https://github.com/llvm/llvm-project/pull/91699 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [llvm] [AArch64] Add intrinsics for multi-vector to ZA array vector accumulators (PR #88266)

2024-05-09 Thread Nico Weber via cfe-commits
nico wrote: Thanks for the quick revert! Is the failure due to a conflict with another commit that landed? https://github.com/llvm/llvm-project/pull/88266 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [clang][X86] Fix -Wundef warning in cpuid.h (PR #89842)

2024-04-26 Thread Nico Weber via cfe-commits
https://github.com/nico closed https://github.com/llvm/llvm-project/pull/89842 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][X86] Fix -Wundef warning in cpuid.h (PR #89842)

2024-04-26 Thread Nico Weber via cfe-commits
nico wrote: If your project disables warning for system headers (why even do that?), I'm guessing there's going to be a bunch of other issues you'll run into. But this change here is fine, it makes cpuid.h consisten with all the other headers in clang/lib/Headers :) https://github.com/llvm/ll

[clang] [Driver] Restore compiler-rt arch suffix for PS and Windows (PR #89775)

2024-04-25 Thread Nico Weber via cfe-commits
nico wrote: > Again, clangDriver does file probing in various places. This is the only place where we probe link-time inputs for compile-time decisions as far as I know. https://github.com/llvm/llvm-project/pull/89775 ___ cfe-commits mailing list cfe

[clang] [Driver] Restore compiler-rt arch suffix for PS and Windows (PR #89775)

2024-04-24 Thread Nico Weber via cfe-commits
nico wrote: Anyway, for this specific issue it sounds like the change here was unintentional. As suggested by mstorsjo at https://github.com/llvm/llvm-project/pull/87866#issuecomment-2073231116, I think it'd be good to revert these changes, and then make a mindful decision about this when rel

[clang] [Driver] Restore compiler-rt arch suffix for PS and Windows (PR #89775)

2024-04-24 Thread Nico Weber via cfe-commits
nico wrote: > My recollection of the past discussions is that we want users to switch to > the new hierarchy. FWIW this doesn't match my understanding. phosek added the new hierarchy to Fuchsia, maskray put in some work to enable it elsewhere, but it's a huge headache, and we've forcibly turn

[clang] [Driver] Ensure ToolChain::LibraryPaths is not empty for non-Darwin (PR #87866)

2024-04-23 Thread Nico Weber via cfe-commits
nico wrote: > I would suggest we revert this - and at least collect all the observed side > effects and declare them before considering relanding it. That sounds good to me. Do you have a list of PRs to revert? > ... then we do still get the old name embedded. Sure. The motivation on our sid

[clang] clang/win: Add a flag to disable default-linking of compiler-rt libraries (PR #89642)

2024-04-23 Thread Nico Weber via cfe-commits
https://github.com/nico closed https://github.com/llvm/llvm-project/pull/89642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Ensure ToolChain::LibraryPaths is not empty for non-Darwin (PR #87866)

2024-04-23 Thread Nico Weber via cfe-commits
nico wrote: I now did build clang at ccdebbae4d77 and ccdebbae4d77^. ccdebbae4d77 has `/DEFAULTLIB:clang_rt.profile.lib` in its output, ccdebbae4d77^ has /DEFAULTLIB:clang_rt.profile-x86_64.lib`. So definitely due to this change. It sounds like you're saying that's not intentional? (It's kind

[clang] [Driver] Ensure ToolChain::LibraryPaths is not empty for non-Darwin (PR #87866)

2024-04-23 Thread Nico Weber via cfe-commits
nico wrote: Here's a minimal repro: ``` % cat empty.c % foo/clang --driver-mode=cl empty.c --target=x86_64-pc-windows -fprofile-instr-generate -c /Fa && rg DEFAULTLIB empty.asm 23: .ascii " /DEFAULTLIB:libcmt.lib" 24: .ascii " /DEFAULTLIB:oldnames.lib" 25: .ascii " /DEFAULTLIB:c

[clang] clang/win: Add a flag to disable default-linking of compiler-rt libraries (PR #89642)

2024-04-23 Thread Nico Weber via cfe-commits
nico wrote: Good call-out, thanks. I meant #87866, which is new. I also forgot that llvm-project likes to do squash commits and put the new commit message in the old commit and `git push -f`'d. But the only thing that changed in the new commit is the commit message text. https://github.com/ll

[clang] clang/win: Add a flag to disable default-linking of compiler-rt libraries (PR #89642)

2024-04-23 Thread Nico Weber via cfe-commits
https://github.com/nico edited https://github.com/llvm/llvm-project/pull/89642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang/win: Add a flag to disable default-linking of compiler-rt libraries (PR #89642)

2024-04-23 Thread Nico Weber via cfe-commits
https://github.com/nico updated https://github.com/llvm/llvm-project/pull/89642 >From 39bd2d2ece1f55c3c77e1f376913846fb604be27 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 22 Apr 2024 14:05:04 -0400 Subject: [PATCH] clang/win: Add a flag to disable default-linking of compiler-rt librari

[clang] [Driver] Ensure ToolChain::LibraryPaths is not empty for non-Darwin (PR #87866)

2024-04-23 Thread Nico Weber via cfe-commits
nico wrote: This is a behavior change: In distributed build environments, neither lib file exists at compile time. Previously, this would result in the "old" style, now (together with #81037) it results in the "new" style (which we disable everywhere since it causes all kinds of issues – from

[clang] [Driver] Improve error when a compiler-rt library is not found (PR #81037)

2024-04-23 Thread Nico Weber via cfe-commits
@@ -656,19 +656,29 @@ std::string ToolChain::getCompilerRT(const ArgList &Args, StringRef Component, // Check for runtime files in the new layout without the architecture first. std::string CRTBasename = buildCompilerRTBasename(Args, Component, Type, /*AddArch=*/fals

[clang] clang/win: Add a flag to disable default-linking of compiler-rt libraries (PR #89642)

2024-04-22 Thread Nico Weber via cfe-commits
https://github.com/nico edited https://github.com/llvm/llvm-project/pull/89642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang/win: Add a flag to disable default-linking of compiler-rt libraries (PR #89642)

2024-04-22 Thread Nico Weber via cfe-commits
https://github.com/nico edited https://github.com/llvm/llvm-project/pull/89642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang/win: Add a flag to disable default-linking of compiler-rt libra… (PR #89642)

2024-04-22 Thread Nico Weber via cfe-commits
https://github.com/nico created https://github.com/llvm/llvm-project/pull/89642 …ries For ASan, users already manually have to pass in the path to the lib, and for other libraries they have to pass in the path to the libpath. With LLVM's unreliable name of the lib (due to LLVM_ENABLE_PER_TARGE

[clang] [Driver] Improve error when a compiler-rt library is not found (PR #81037)

2024-04-22 Thread Nico Weber via cfe-commits
@@ -656,19 +656,29 @@ std::string ToolChain::getCompilerRT(const ArgList &Args, StringRef Component, // Check for runtime files in the new layout without the architecture first. std::string CRTBasename = buildCompilerRTBasename(Args, Component, Type, /*AddArch=*/fals

[clang] [Clang][Sema] placement new initializes typedef array with correct size (PR #88902)

2024-04-16 Thread Nico Weber via cfe-commits
@@ -1,5 +1,5 @@ -// RUN: %clang -S -fno-discard-value-names -emit-llvm -o - %s | FileCheck %s -// Issue no: 41441 +// RUN: %clang --target=x86_64-pc-linux -S -fno-discard-value-names -emit-llvm -o - %s | FileCheck %s + #include nico wrote: Thanks! https://git

[clang] [SEH] Ignore async exception flag when the environment is not MSVC (PR #88101)

2024-04-16 Thread Nico Weber via cfe-commits
nico wrote: Yes, #83124 broke it in the meantime 😅 https://github.com/llvm/llvm-project/pull/88101 ___ 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   9   10   >