[clang] [Clang] Implement the 'counted_by' attribute (PR #76348)

2024-01-19 Thread Sean McBride via cfe-commits
seanm wrote: @bwendling is there any plan / possibility for simple expressions (with no side effects)? Like: ```c struct libusb_bos_dev_capability_descriptor { uint8_t bLength; uint8_t bDescriptorType; uint8_t bDevCapabilityType; uint8_t dev_capability_data[

[clang] [Clang] Implement the 'counted_by' attribute (PR #76348)

2024-01-22 Thread Sean McBride via cfe-commits
seanm wrote: @bwendling thanks for your reply. No idea how representative it is of other projects, but 3 of the 6 flexible arrays in [libusb](https://github.com/libusb/libusb) structures have these kinds of non-trivial counts. The GCC folks seem to have [considered](https://gcc.gnu.org/bugzi

Re: [PATCH] trivial documentation fix regarding Obj-C ARC objc_arc_weak_reference_unavailable

2016-09-02 Thread Sean McBride via cfe-commits
Friendly ping... this is a very trivial documentation patch... On Wed, 10 Aug 2016 13:57:07 -0400, Sean McBride via cfe-commits said: >Fixed incorrect docs that referred to: > objc_arc_weak_unavailable >when it should be: > objc_arc_weak_reference_unavailable > &

[PATCH] trivial documentation fix regarding Obj-C ARC objc_arc_weak_reference_unavailable

2016-08-10 Thread Sean McBride via cfe-commits
Fixed incorrect docs that referred to: objc_arc_weak_unavailable when it should be: objc_arc_weak_reference_unavailable Cheers, Sean objc_arc_weak_unavailable-typo.patch Description: Binary data ___ cfe-commits mailing list cfe-commits@lists.llvm.or

Re: [PATCH] D18821: Add modernize-bool-to-integer-conversion

2016-04-07 Thread Sean McBride via cfe-commits
On Thu, 7 Apr 2016 15:48:56 +, Alexander Kornienko via cfe-commits said: >Actually, did you think about adding this as a clang diagnostic? > >Richard, what do you think about complaining in Clang about `int i = >true;` kind of code? If you don't mind a lurker interjecting... :) I think that'

[clang] [compiler-rt] [llvm] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2025-01-09 Thread Sean McBride via cfe-commits
seanm wrote: @fhahn can TySan be made to trap when it detects a problem? I tried `-fsanitize-trap=type` but got: `clang++: error: unsupported argument 'type' to option '-fsanitize-trap='` `-fsanitize-trap=all` does not seem to result in TySan trapping, only logging... https://github.com/llvm

[clang] Fixed issue #128882: don't warn if 1st argument to 'getcwd' is NULL (PR #135720)

2025-04-15 Thread Sean McBride via cfe-commits
https://github.com/seanm updated https://github.com/llvm/llvm-project/pull/135720 >From cfd32680ac4a534b4060d8cc3549edfe45e721bf Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 14 Apr 2025 20:58:24 -0400 Subject: [PATCH] Fixed issue #128882: don't warn if 1st argument to 'getcwd' is NUL

[clang] Fixed issue #128882: don't warn if 1st argument to 'getcwd' is NULL (PR #135720)

2025-04-15 Thread Sean McBride via cfe-commits
https://github.com/seanm created https://github.com/llvm/llvm-project/pull/135720 None >From 4ce75d43c62537a7020da0ca737c76e0cca27aca Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 14 Apr 2025 20:58:24 -0400 Subject: [PATCH] Fixed issue #128882: don't warn if 1st argument to 'getcwd'