[clang-tools-extra] [clang-doc][nfc] Avoid constructing SmallString in ToString method (PR #96921)

2024-07-01 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/96921 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][nfc] Avoid constructing SmallString in ToString method (PR #96921)

2024-07-01 Thread Paul Kirth via cfe-commits
ilovepi wrote: > I'd use `std::string_view` as a return value instead of `const char *` as a > more idiomatic C++ in which case you don't need to rename the method to > `c_str()`. I opted for `StringRef`, since that seems more in line w/ the conventions here, but I'm happy to switch to `std::

[clang] [analyzer] Fix crash in Stream checker when using void pointers (PR #97199)

2024-07-01 Thread Balazs Benics via cfe-commits
@@ -1034,16 +1034,16 @@ void StreamChecker::preWrite(const FnDescription *Desc, const CallEvent &Call, C.addTransition(State); } -static std::optional getPointeeType(const MemRegion *R) { +static QualType getPointeeType(const MemRegion *R) { if (!R) -return std::null

[clang] ae570d8 - Reland "[analyzer] Harden safeguards for Z3 query times" (#97298)

2024-07-01 Thread via cfe-commits
Author: Balazs Benics Date: 2024-07-01T17:22:24+02:00 New Revision: ae570d82e8c021f45209830db8c9c7bb79bed394 URL: https://github.com/llvm/llvm-project/commit/ae570d82e8c021f45209830db8c9c7bb79bed394 DIFF: https://github.com/llvm/llvm-project/commit/ae570d82e8c021f45209830db8c9c7bb79bed394.diff

[clang] Reland "[analyzer] Harden safeguards for Z3 query times" (PR #97298)

2024-07-01 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/97298 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reapply "[Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer" (PR #97308)

2024-07-01 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/97308 The PR reapply https://github.com/llvm/llvm-project/pull/92527 , and fix crash bugs. >From 55b06e73a38c4cf2f5e8e7b789db5f1c1921029e Mon Sep 17 00:00:00 2001 From: yronglin Date: Mon, 1 Jul 2024 23:20:58 +0800

[clang] [flang] [flang] Implement -mcmodel flag (PR #95411)

2024-07-01 Thread Mats Petersson via cfe-commits
@@ -2823,3 +2823,84 @@ void tools::addOffloadCompressArgs(const llvm::opt::ArgList &TCArgs, CmdArgs.push_back( TCArgs.MakeArgString(Twine("-compression-level=") + Arg->getValue())); } + +void tools::addMCModel(const Driver &D, const llvm::opt::ArgList &Args, --

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-01 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To: https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/97034 __

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-01 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= Message-ID: In-Reply-To: https://github.com/s

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-01 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To: @@ -0,0 +1,238 @@ +Command-Line Usage: CodeChecker and scan-build +==

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-01 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To: @@ -0,0 +1,37 @@ +Obtaining the Static Analyzer +

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-01 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To: @@ -0,0 +1,238 @@ +Command-Line Usage: CodeChecker and scan-build +==

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-01 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To: @@ -0,0 +1,238 @@ +Command-Line Usage: CodeChecker and scan-build +==

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-01 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To: @@ -0,0 +1,238 @@ +Command-Line Usage: CodeChecker and scan-build +==

[clang] [clang][analyzer][doc] Migrate checkers-related docs from HTML to RST (PR #97032)

2024-07-01 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= Message-ID: In-Reply-To: https://github.com/steakhal approved this pull request. LGTM, thanks. https://github.com/llvm/llvm-project/pull/97032 ___ cfe-commits mailing list cfe-com

[clang] [analyzer] Fix crash in Stream checker when using void pointers (PR #97199)

2024-07-01 Thread Balazs Benics via cfe-commits
https://github.com/steakhal updated https://github.com/llvm/llvm-project/pull/97199 >From 6eeab014b09cfa0909c3ccb1b2d3e6fadadb983f Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Mon, 1 Jul 2024 17:29:25 +0200 Subject: [PATCH 1/5] [analyzer] Fix crash in Stream checker when using void point

[clang] 2e81f7d - [analyzer] Fix crash in Stream checker when using void pointers (#97199)

2024-07-01 Thread via cfe-commits
Author: Balazs Benics Date: 2024-07-01T17:33:44+02:00 New Revision: 2e81f7db1f1c161a1683bcad55e0c04677a17a9d URL: https://github.com/llvm/llvm-project/commit/2e81f7db1f1c161a1683bcad55e0c04677a17a9d DIFF: https://github.com/llvm/llvm-project/commit/2e81f7db1f1c161a1683bcad55e0c04677a17a9d.diff

[clang] [analyzer] Fix crash in Stream checker when using void pointers (PR #97199)

2024-07-01 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/97199 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement P2280R4 Using unknown pointers and references in constant expressions (PR #95474)

2024-07-01 Thread via cfe-commits
yronglin wrote: Thank you work on this! I really like this feature. Will this PR also provide support for the new constant interpreter? The new constant interpreter seems to already support some unknown constexpr features (FYI https://godbolt.org/z/xTYhGEfxT). https://github.com/llvm/llvm-pro

[clang] [Clang] Extend lifetime bound analysis to support assignments (PR #96475)

2024-07-01 Thread Haojian Wu via cfe-commits
https://github.com/hokein edited https://github.com/llvm/llvm-project/pull/96475 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5c287ef - [Clang] Extend lifetime bound analysis to support assignments for the built-in pointer type (#96475)

2024-07-01 Thread via cfe-commits
Author: Haojian Wu Date: 2024-07-01T17:43:07+02:00 New Revision: 5c287efee77930ab15fe5579bed00b2750bbb254 URL: https://github.com/llvm/llvm-project/commit/5c287efee77930ab15fe5579bed00b2750bbb254 DIFF: https://github.com/llvm/llvm-project/commit/5c287efee77930ab15fe5579bed00b2750bbb254.diff LO

[clang] [Clang] Extend lifetime bound analysis to support assignments (PR #96475)

2024-07-01 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/96475 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 51797a7 - [clang][OpenMP] Unindent `checkNestingOfRegions`, NFC

2024-07-01 Thread Krzysztof Parzyszek via cfe-commits
Author: Krzysztof Parzyszek Date: 2024-07-01T10:46:37-05:00 New Revision: 51797a7c55c42a2a49b9210b150e0eb63c7975f0 URL: https://github.com/llvm/llvm-project/commit/51797a7c55c42a2a49b9210b150e0eb63c7975f0 DIFF: https://github.com/llvm/llvm-project/commit/51797a7c55c42a2a49b9210b150e0eb63c7975f0

[clang] [clang][CGRecordLayout] Remove dependency on isZeroSize (PR #96422)

2024-07-01 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/96422 >From 419af1b1db2bef88c5145276ffd24ed93bcb15a5 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 21 Jun 2024 12:15:07 +0100 Subject: [PATCH 1/7] [clang][CGRecordLayout] Remove dependency on isZeroSize Th

[clang] [Clang] Prevent null pointer dereferences in SVE tuple functions (PR #94267)

2024-07-01 Thread via cfe-commits
smanna12 wrote: Thank you @CarolineConcatto for reviews! https://github.com/llvm/llvm-project/pull/94267 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 05d8ea7 - [Clang] Prevent null pointer dereferences in SVE tuple functions (#94267)

2024-07-01 Thread via cfe-commits
Author: smanna12 Date: 2024-07-01T10:51:28-05:00 New Revision: 05d8ea77c9bbdedc462dadfdcc41332253c1c829 URL: https://github.com/llvm/llvm-project/commit/05d8ea77c9bbdedc462dadfdcc41332253c1c829 DIFF: https://github.com/llvm/llvm-project/commit/05d8ea77c9bbdedc462dadfdcc41332253c1c829.diff LOG:

[clang] [Clang] Prevent null pointer dereferences in SVE tuple functions (PR #94267)

2024-07-01 Thread via cfe-commits
https://github.com/smanna12 closed https://github.com/llvm/llvm-project/pull/94267 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix RuntimeInterfaceBuilder for 32-bit systems (PR #97071)

2024-07-01 Thread David Spickett via cfe-commits
Stefan =?utf-8?q?Gr=C3=A4nitz?= , Stefan =?utf-8?q?Gr=C3=A4nitz?= Message-ID: In-Reply-To: https://github.com/DavidSpickett approved this pull request. https://github.com/llvm/llvm-project/pull/97071 ___ cfe-commits mailing list cfe-commits@lists.ll

[clang] [llvm] [LLVM] Fix incorrect alignment on AMDGPU variadics (PR #96370)

2024-07-01 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/96370 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LLVM] Fix incorrect alignment on AMDGPU variadics (PR #96370)

2024-07-01 Thread Joseph Huber via cfe-commits
jhuber6 wrote: Lower than native alignment is legal in AMDGPU hardware and it's possible to work around in the `printf` implementation, closing. https://github.com/llvm/llvm-project/pull/96370 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [RISCV] Handle empty structs/unions passing in C++ (PR #97315)

2024-07-01 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic created https://github.com/llvm/llvm-project/pull/97315 According to RISC-V integer calling convention empty structs or union arguments or return values are ignored by C compilers which support them as a non-standard extension. This is not the case for C++, which re

[clang] [llvm] [RISCV] Add support for getHostCPUFeatures using hwprobe (PR #94352)

2024-07-01 Thread Craig Topper via cfe-commits
@@ -290,8 +290,24 @@ StringRef riscv::getRISCVArch(const llvm::opt::ArgList &Args, // 2. Get march (isa string) based on `-mcpu=` if (const Arg *A = Args.getLastArg(options::OPT_mcpu_EQ)) { StringRef CPU = A->getValue(); -if (CPU == "native") +if (CPU == "nativ

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-01 Thread Ameer J via cfe-commits
https://github.com/ameerj updated https://github.com/llvm/llvm-project/pull/95013 >From a50f3d4395efd09eea8ba2e750bb785857f9a550 Mon Sep 17 00:00:00 2001 From: ameerj Date: Mon, 10 Jun 2024 12:09:40 -0400 Subject: [PATCH 1/7] Add BinPackBinaryOperations --- clang/include/clang/Format/Format.h

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-01 Thread Ameer J via cfe-commits
@@ -27492,6 +27492,86 @@ TEST_F(FormatTest, SpaceBetweenKeywordAndLiteral) { verifyFormat("return sizeof \"5\";"); } +TEST_F(FormatTest, BinPackBinaryOperations) { + auto Style = getLLVMStyle(); + Style.BinPackBinaryOperations = false; + + // Logical operations + verifyF

[clang] [RISCV] Handle empty structs/unions passing in C++ (PR #97315)

2024-07-01 Thread Craig Topper via cfe-commits
topperc wrote: Why is this in Draft? https://github.com/llvm/llvm-project/pull/97315 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Handle empty structs/unions passing in C++ (PR #97315)

2024-07-01 Thread Sudharsan Veeravalli via cfe-commits
svs-quic wrote: Just waiting for the pre-checkins to complete. https://github.com/llvm/llvm-project/pull/97315 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
trcrsired wrote: > I've read half the patch so far, but wanted to ask before continuing: would > it be possible (and simpler) to extend the /winsysroot support somehow to > also handle --sysroot? > > (It would also be easier to review if the unrelated formatting changes were > removed or spli

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
@@ -763,19 +789,36 @@ void MSVCToolChain::AddClangSystemIncludeArgs(const ArgList &DriverArgs, // As a fallback, select default install paths. // FIXME: Don't guess drives and paths like this on Windows. const StringRef Paths[] = { -"C:/Program Files/Microsoft Visual

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
@@ -95,18 +95,21 @@ class ToolChain { enum CXXStdlibType { CST_Libcxx, -CST_Libstdcxx +CST_Libstdcxx, +CST_Stl, trcrsired wrote: Yes. MSVC STL is called STL. STL is not a generic name. std is. https://github.com/llvm/llvm-project/pull/96417

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
@@ -95,18 +95,21 @@ class ToolChain { enum CXXStdlibType { CST_Libcxx, -CST_Libstdcxx +CST_Libstdcxx, +CST_Stl, trcrsired wrote: > Could this be Msvcstl or something? Just Stl seems a pretty generic name. The C++ standard never says anythin

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
https://github.com/trcrsired edited https://github.com/llvm/llvm-project/pull/96417 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
https://github.com/trcrsired edited https://github.com/llvm/llvm-project/pull/96417 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [C23] Implement N2653: u8 strings are char8_t[] (PR #97208)

2024-07-01 Thread Mital Ashok via cfe-commits
@@ -1342,8 +1342,10 @@ static void InitializePredefinedMacros(const TargetInfo &TI, getLockFreeValue(TI.get##Type##Width(), TI)); DEFINE_LOCK_FREE_MACRO(BOOL, Bool); DEFINE_LOCK_FREE_MACRO(CHAR, Char); -if (LangOpts.Char8) - DEFINE_LOCK_F

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-01 Thread Ameer J via cfe-commits
https://github.com/ameerj updated https://github.com/llvm/llvm-project/pull/95013 >From a50f3d4395efd09eea8ba2e750bb785857f9a550 Mon Sep 17 00:00:00 2001 From: ameerj Date: Mon, 10 Jun 2024 12:09:40 -0400 Subject: [PATCH 1/8] Add BinPackBinaryOperations --- clang/include/clang/Format/Format.h

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
trcrsired wrote: > I've read half the patch so far, but wanted to ask before continuing: would > it be possible (and simpler) to extend the /winsysroot support somehow to > also handle --sysroot? > > (It would also be easier to review if the unrelated formatting changes were > removed or spli

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-01 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff a30ef38cd455d500680fea8afdc824b4983fa981 28ef1c7f87d3cd37dc5f5c409aab5e9ca76f6578 --

[clang] [HLSL][clang][Driver] Fix error when using the option -fcgl in --driver-mode=dxc. (PR #97001)

2024-07-01 Thread Justin Bogner via cfe-commits
https://github.com/bogner approved this pull request. We may need to revisit the whole `ForwardedArguments` thing in general, as there are a few funny things going on looking at the `-cc1` options coming out of dxc - for example, before this change `-S` actually shows up twice sometimes. In an

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-01 Thread Ameer J via cfe-commits
https://github.com/ameerj updated https://github.com/llvm/llvm-project/pull/95013 >From a50f3d4395efd09eea8ba2e750bb785857f9a550 Mon Sep 17 00:00:00 2001 From: ameerj Date: Mon, 10 Jun 2024 12:09:40 -0400 Subject: [PATCH 1/9] Add BinPackBinaryOperations --- clang/include/clang/Format/Format.h

[clang] [RISCV] Handle empty structs/unions passing in C++ (PR #97315)

2024-07-01 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic ready_for_review https://github.com/llvm/llvm-project/pull/97315 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PAC][Driver] Implement `-mbranch-protection=pauthabi` option (PR #97237)

2024-07-01 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 ready_for_review https://github.com/llvm/llvm-project/pull/97237 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Handle empty structs/unions passing in C++ (PR #97315)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sudharsan Veeravalli (svs-quic) Changes According to RISC-V integer calling convention empty structs or union arguments or return values are ignored by C compilers which support them as a non-standard extension. This is not the case for C

[clang] [RISCV] Handle empty structs/unions passing in C++ (PR #97315)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang-codegen Author: Sudharsan Veeravalli (svs-quic) Changes According to RISC-V integer calling convention empty structs or union arguments or return values are ignored by C compilers which support them as a non-st

[clang] [llvm] [PAC][Driver] Implement `-mbranch-protection=pauthabi` option (PR #97237)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Daniil Kovalev (kovdan01) Changes Enable the following ptrauth flags when `pauthabi` is passed as branch protection: - `intrinsics`; - `calls`; - `returns`; - `auth-traps`; - `vtable-pointer-address-discr

[clang] fix: complete comment (PR #97322)

2024-07-01 Thread Alfiya Siddique via cfe-commits
https://github.com/AlfiyaSiddique created https://github.com/llvm/llvm-project/pull/97322 ## Description. Completing a comment related to dependent template names that abruptly ended and might cause confusion for beginner contributors. Fixes #96718 >From 4391141f1b73f48304c64fdf0d61ac083ba8c

[clang] fix: complete comment (PR #97322)

2024-07-01 Thread Alfiya Siddique via cfe-commits
https://github.com/AlfiyaSiddique updated https://github.com/llvm/llvm-project/pull/97322 >From 4391141f1b73f48304c64fdf0d61ac083ba8c902 Mon Sep 17 00:00:00 2001 From: AlfiyaSiddique Date: Mon, 1 Jul 2024 22:40:07 +0530 Subject: [PATCH] complete comment --- clang/include/clang/AST/TemplateNam

[clang] [PAC][clang][Driver] Add signed GOT flag (PR #96160)

2024-07-01 Thread Daniil Kovalev via cfe-commits
kovdan01 wrote: @MaskRay @ahmedbougacha @asl I suggest to move the discussion on comma-separated flags/current flags to an issue #97320. This PR is intended to introduce the signed GOT flag, and we already have a bunch of similar ptrauth flags, so, if we want to change the flags to a single co

[clang] fix: complete comment (PR #97322)

2024-07-01 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] fix: complete comment (PR #97322)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alfiya Siddique (AlfiyaSiddique) Changes ## Description. Completing a comment related to dependent template names that abruptly ended and might cause confusion for beginner contributors. Fixes #96718 --- Full diff: https://github.com/ll

[clang] [llvm] [MC,llvm-readobj,yaml2obj] Support CREL relocation format (PR #91280)

2024-07-01 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/91280 >From a0cfafb82db825512b0ca44778fa9d4bb435563d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 6 May 2024 15:37:50 -0700 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?UTF-

[clang] [Clang] [C23] Implement N2653: u8 strings are char8_t[] (PR #97208)

2024-07-01 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/97208 >From ef0072d1fc9b14f7ee657fa95f44a686b78b525a Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Sun, 30 Jun 2024 12:07:54 +0100 Subject: [PATCH 1/3] [Clang] [C23] Implement N2653: u8 strings are char8_t[] ---

[clang] 7926c0b - [Sema] Fix -Wunused-but-set-variable after #94865

2024-07-01 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2024-07-01T10:25:36-07:00 New Revision: 7926c0b594203ca1efe3d2a73a3f4066363bac5a URL: https://github.com/llvm/llvm-project/commit/7926c0b594203ca1efe3d2a73a3f4066363bac5a DIFF: https://github.com/llvm/llvm-project/commit/7926c0b594203ca1efe3d2a73a3f4066363bac5a.diff

[clang] fix: complete comment (PR #97322)

2024-07-01 Thread Alfiya Siddique via cfe-commits
https://github.com/AlfiyaSiddique updated https://github.com/llvm/llvm-project/pull/97322 >From 4391141f1b73f48304c64fdf0d61ac083ba8c902 Mon Sep 17 00:00:00 2001 From: AlfiyaSiddique Date: Mon, 1 Jul 2024 22:40:07 +0530 Subject: [PATCH] complete comment --- clang/include/clang/AST/TemplateNam

[clang] [lldb] [clang][AST] fix ast-print of extern with >=2 declarators, fixed (PR #93913)

2024-07-01 Thread Chelsea Cassanova via cfe-commits
chelcassanova wrote: Hey! Looks like this commit broke some tests on the LLDB macOS buildbots: https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/as-lldb-cmake/6805/console ``` Assertion failed: (!isUnbracedLanguageLinkage(DC) || SC == SC_None), function VarDecl, file Decl.cpp, line 2128. P

[clang] [Clang] [C23] Implement N2653: u8 strings are char8_t[] (PR #97208)

2024-07-01 Thread Mital Ashok via cfe-commits
@@ -104,6 +107,7 @@ typedef _Atomic(long) atomic_long; typedef _Atomic(unsigned long) atomic_ulong; typedef _Atomic(long long) atomic_llong; typedef _Atomic(unsigned long long) atomic_ullong; +typedef _Atomic(unsigned char) atomic_char8_t; type

[clang] [clang] Remove a pointer union from the lifetime bound analysis (PR #97327)

2024-07-01 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun created https://github.com/llvm/llvm-project/pull/97327 Since all callers of the API is called with the same type, we do not actually need the pointer union. From 48f51032cb9228ea8704e4e2352b18ea182e1024 Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Mon, 1 Ju

[clang] [llvm] [MC,llvm-readobj,yaml2obj] Support CREL relocation format (PR #91280)

2024-07-01 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/91280 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Remove a pointer union from the lifetime bound analysis (PR #97327)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Gábor Horváth (Xazax-hun) Changes Since all callers of the API is called with the same type, we do not actually need the pointer union. --- Full diff: https://github.com/llvm/llvm-project/pull/97327.diff 1 Files Affected: - (modified)

[clang] [llvm] [mlir] [MLIR] Add f8E4M3 IEEE 754 type (PR #97118)

2024-07-01 Thread Maksim Levental via cfe-commits
makslevental wrote: Hey @apivovarov I think this needs a rebas? https://github.com/llvm/llvm-project/pull/97118 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-01 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/97103 >From c784272b3f66ca06be4ab8e72a0963e5ebb6a869 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Fri, 28 Jun 2024 12:40:56 -0700 Subject: [PATCH 1/4] update tests, update code --- clang/include/clang/Basic/A

[clang] [clang] Remove a pointer union from the lifetime bound analysis (PR #97327)

2024-07-01 Thread Haojian Wu via cfe-commits
https://github.com/hokein approved this pull request. thanks! https://github.com/llvm/llvm-project/pull/97327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-01 Thread Joshua Batista via cfe-commits
@@ -21,6 +21,7 @@ #include "clang/Basic/IdentifierTable.h" #include "clang/Basic/SourceLocation.h" #include "clang/Sema/Scope.h" +#include "clang/Sema/Sema.h" bob80905 wrote: Yes, done https://github.com/llvm/llvm-project/pull/97103 __

[clang] [llvm] Add __hlt intrinsic for Windows ARM. (PR #96578)

2024-07-01 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello approved this pull request. https://github.com/llvm/llvm-project/pull/96578 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ThreadSafety] Check trylock function success and return types (PR #95290)

2024-07-01 Thread Dan McArdle via cfe-commits
@@ -1359,17 +1361,18 @@ void ThreadSafetyAnalyzer::getMutexIDs(CapExprSet &Mtxs, AttrType *Attr, const Expr *Exp, const NamedDecl *D, const CFGBlock *PredBlock,

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-01 Thread Joshua Batista via cfe-commits
@@ -437,7 +460,206 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +struct register_binding_flags { + bool resource = false; + bool udt = false; + bool other = false; + bool basic = false; + + bool srv = false; + bool uav =

[clang] 75ec24e - [HLSL][clang][Driver] Fix error when using the option -fcgl in --driver-mode=dxc. (#97001)

2024-07-01 Thread via cfe-commits
Author: Xiang Li Date: 2024-07-01T13:44:26-04:00 New Revision: 75ec24e875762f038bf490d6e3fa5d4743d7afd1 URL: https://github.com/llvm/llvm-project/commit/75ec24e875762f038bf490d6e3fa5d4743d7afd1 DIFF: https://github.com/llvm/llvm-project/commit/75ec24e875762f038bf490d6e3fa5d4743d7afd1.diff LOG:

[clang] [HLSL][clang][Driver] Fix error when using the option -fcgl in --driver-mode=dxc. (PR #97001)

2024-07-01 Thread Xiang Li via cfe-commits
https://github.com/python3kgae closed https://github.com/llvm/llvm-project/pull/97001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
@@ -95,18 +95,21 @@ class ToolChain { enum CXXStdlibType { CST_Libcxx, -CST_Libstdcxx +CST_Libstdcxx, +CST_Stl, zmodem wrote: I think most C++ developers understand STL as a generic term for the standard library rather than for Microsoft's

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
@@ -763,19 +789,36 @@ void MSVCToolChain::AddClangSystemIncludeArgs(const ArgList &DriverArgs, // As a fallback, select default install paths. // FIXME: Don't guess drives and paths like this on Windows. const StringRef Paths[] = { -"C:/Program Files/Microsoft Visual

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
zmodem wrote: > > I've read half the patch so far, but wanted to ask before continuing: would > > it be possible (and simpler) to extend the /winsysroot support somehow to > > also handle --sysroot? > > (It would also be easier to review if the unrelated formatting changes were > > removed or

[clang] [Clang] Prevent null pointer dereference in DiagnoseDeclAvailability() (PR #97095)

2024-07-01 Thread Helena Kotas via cfe-commits
https://github.com/hekota approved this pull request. https://github.com/llvm/llvm-project/pull/97095 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Prevent null pointer dereference in DiagnoseDeclAvailability() (PR #97095)

2024-07-01 Thread Helena Kotas via cfe-commits
hekota wrote: Thanks! https://github.com/llvm/llvm-project/pull/97095 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [clang][AST] fix ast-print of extern with >=2 declarators, fixed (PR #93913)

2024-07-01 Thread via cfe-commits
Prabhuk wrote: I am part of the Fuchsia toolchain team. Our Clang toolchain CI builders crash and I suspect this change is the reason. I am verifying that. But here's the log: https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8743609724828014497/+/u/clang/build/stdout and the

[clang] [Clang] Prevent null pointer dereference in DiagnoseDeclAvailability() (PR #97095)

2024-07-01 Thread via cfe-commits
smanna12 wrote: Thank you @hekota for the reviews! https://github.com/llvm/llvm-project/pull/97095 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1c0e722 - [Clang] Prevent null pointer dereference in DiagnoseDeclAvailability() (#97095)

2024-07-01 Thread via cfe-commits
Author: smanna12 Date: 2024-07-01T13:03:03-05:00 New Revision: 1c0e7221ce35e4b709951c06c67aeb1ed3205f27 URL: https://github.com/llvm/llvm-project/commit/1c0e7221ce35e4b709951c06c67aeb1ed3205f27 DIFF: https://github.com/llvm/llvm-project/commit/1c0e7221ce35e4b709951c06c67aeb1ed3205f27.diff LOG:

[clang] [Clang] Prevent null pointer dereference in DiagnoseDeclAvailability() (PR #97095)

2024-07-01 Thread via cfe-commits
https://github.com/smanna12 closed https://github.com/llvm/llvm-project/pull/97095 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [llvm] [libc] Implement (v|f)printf on the GPU (PR #96369)

2024-07-01 Thread Matt Arsenault via cfe-commits
@@ -54,7 +54,34 @@ class MockArgList { } template LIBC_INLINE T next_var() { -++arg_counter; +arg_counter++; +return T(arg_counter); + } + + size_t read_count() const { return arg_counter; } +}; + +// Used by the GPU implementation to parse how many bytes ne

[clang] [HLSL] Rework implicit conversion sequences (PR #96011)

2024-07-01 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp approved this pull request. https://github.com/llvm/llvm-project/pull/96011 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [llvm] [libc] Implement (v|f)printf on the GPU (PR #96369)

2024-07-01 Thread Joseph Huber via cfe-commits
@@ -54,7 +54,34 @@ class MockArgList { } template LIBC_INLINE T next_var() { -++arg_counter; +arg_counter++; +return T(arg_counter); + } + + size_t read_count() const { return arg_counter; } +}; + +// Used by the GPU implementation to parse how many bytes ne

[clang] [Clang][ExprConstant] fix constant expression did not evaluate to integer (PR #97146)

2024-07-01 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: To the extent that EvaluateAsRValue handles LValues, FastEvaluateAsRValue should also handle them, sure. I'm suspicious of the fact that EvaluateAsRValue is doing this conversion in the first place, but I guess this pull request isn't the place to address that. Given tha

[clang] [HIP][Clang][Sema] Fix crash when calling builtins with pointer arguments (PR #95957)

2024-07-01 Thread Raymond Tian via cfe-commits
rymdtian wrote: cc @shiltian for review/merge, thanks https://github.com/llvm/llvm-project/pull/95957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7888d66 - [C2y] Add C2y documents to the tracking page

2024-07-01 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-07-01T14:17:57-04:00 New Revision: 7888d66af20b0c34c78ba94613e4a45e3a7285c2 URL: https://github.com/llvm/llvm-project/commit/7888d66af20b0c34c78ba94613e4a45e3a7285c2 DIFF: https://github.com/llvm/llvm-project/commit/7888d66af20b0c34c78ba94613e4a45e3a7285c2.diff

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-01 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/97200 >From 0dea95701ca4dfca9b7d0bd889003fc35aa3017e Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Sun, 30 Jun 2024 10:39:15 +0100 Subject: [PATCH 01/10] [NFC] [Clang] Some core issues have changed status from t

[clang] 71ff749 - Revert "[clang][AST] fix ast-print of extern with >=2 declarators"

2024-07-01 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-07-01T14:19:37-04:00 New Revision: 71ff749d6b9aee70c6d26d9781b9f70bf6a8c445 URL: https://github.com/llvm/llvm-project/commit/71ff749d6b9aee70c6d26d9781b9f70bf6a8c445 DIFF: https://github.com/llvm/llvm-project/commit/71ff749d6b9aee70c6d26d9781b9f70bf6a8c445.diff

[clang] [HLSL] Implement `export` keyword (PR #96823)

2024-07-01 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp edited https://github.com/llvm/llvm-project/pull/96823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Implement `export` keyword (PR #96823)

2024-07-01 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp approved this pull request. https://github.com/llvm/llvm-project/pull/96823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Implement `export` keyword (PR #96823)

2024-07-01 Thread Damyan Pepper via cfe-commits
@@ -0,0 +1,56 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - %s -verify + +export void f1(); + +export void f1() {} + +namespace { // expected-note {{anonymous namespace begins here}} +export void f2(); // expected-error {{export declaration appear

[clang] [lldb] [clang][AST] fix ast-print of extern with >=2 declarators, fixed (PR #93913)

2024-07-01 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: I reverted these changes in 71ff749d6b9aee70c6d26d9781b9f70bf6a8c445 so @temyurchenko can investigate the issues. https://github.com/llvm/llvm-project/pull/93913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-01 Thread Damyan Pepper via cfe-commits
@@ -437,7 +460,206 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +struct register_binding_flags { + bool resource = false; + bool udt = false; + bool other = false; + bool basic = false; + + bool srv = false; + bool uav =

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-01 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/96561 >From 12d00a54169fef15efccfe9472db25b1261d31d3 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Mon, 24 Jun 2024 15:14:52 -0500 Subject: [PATCH] [Clang] Introduce 'clang-nvlink-wrappaer' to work around 'nvlink'

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-01 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks commented: Could you please add a note to `clang/docs/ReleaseNotes.rst`. https://github.com/llvm/llvm-project/pull/95013 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

<    1   2   3   4   5   >