[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-01 Thread Saleem Abdulrasool via cfe-commits
@@ -322,6 +323,46 @@ static bool actionRequiresCodeGen(BackendAction Action) { Action != Backend_EmitLL; } +static std::string flattenClangCommandLine(ArrayRef Args, + StringRef MainFilename) { + if (Args.empty()) + { ---

[clang] [llvm] [RISCV][VCIX] Add vcix_state to GNU inline assembly register set (PR #106914)

2024-09-01 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/106914 [RISCV][VCIX] Add vcix_state to GNU inline assembly register set Resolved https://github.com/llvm/llvm-project/issues/106700. This enables inline asm to have vcix_state to be a clobbered register thus disable

[clang] [llvm] [RISCV][VCIX] Add vcix_state to GNU inline assembly register set (PR #106914)

2024-09-01 Thread Pengcheng Wang via cfe-commits
@@ -664,5 +664,9 @@ def FRM: RISCVReg<0, "frm">; // Shadow Stack register def SSP: RISCVReg<0, "ssp">; -// Dummy VCIX state register +// Dummy VCIX state register and its register class def VCIX_STATE : RISCVReg<0, "vcix_state">; +def : RISCVRegisterClass<[XLenVT], 32

[clang] [clang-format] Add new option: WrapNamespaceBodyWithEmptyLines (PR #106901)

2024-09-01 Thread via cfe-commits
https://github.com/dmasloff created https://github.com/llvm/llvm-project/pull/106901 I would like to suggest a new clang-format option for llvm-project - WrapNamespaceBodyWithNewlines. I think it can be added to upstream since it is used by many popular public repositories, for example, [ytsa

[clang] [Clang][Concepts] Correct the CurContext for friend declarations (PR #106890)

2024-09-01 Thread Younan Zhang via cfe-commits
@@ -1012,7 +1012,14 @@ static const Expr *SubstituteConstraintExpressionWithoutSatisfaction( // possible that e.g. constraints involving C> and C are // perceived identical. std::optional ContextScope; - if (auto *RD = dyn_cast(DeclInfo.getDeclContext())) { + const Dec

[clang] 358165d - [Clang][Concepts] Correct the CurContext for friend declarations (#106890)

2024-09-01 Thread via cfe-commits
Author: Younan Zhang Date: 2024-09-02T13:42:42+08:00 New Revision: 358165ded3c45115ce587d56ef792a9e7c0214ea URL: https://github.com/llvm/llvm-project/commit/358165ded3c45115ce587d56ef792a9e7c0214ea DIFF: https://github.com/llvm/llvm-project/commit/358165ded3c45115ce587d56ef792a9e7c0214ea.diff

[clang] [Clang][Concepts] Correct the CurContext for friend declarations (PR #106890)

2024-09-01 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/106890 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Don't emit assumptions if current block is unreachable. (PR #106936)

2024-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Yingwei Zheng (dtcxzyw) Changes Fixes https://github.com/llvm/llvm-project/issues/106898. When emitting an infinite loop, clang codegen will delete the whole block and leave builder's current block as nullptr: https://github.com/l

[clang] [llvm] [RISCV][VCIX] Add vcix_state to GNU inline assembly register set (PR #106914)

2024-09-01 Thread Kito Cheng via cfe-commits
kito-cheng wrote: I would suggest it should prefix with a vendor prefix, either `sf.vcix_state` or `sifive.vcix_state`, also go `riscv-c-api-doc` or `riscv-toolchain-conventions` :) https://github.com/llvm/llvm-project/pull/106914 ___ cfe-commits mai

[clang] [clang][AIX] Fix -print-runtime-dir on AIX (PR #104806)

2024-09-01 Thread Jake Egan via cfe-commits
https://github.com/jakeegan closed https://github.com/llvm/llvm-project/pull/104806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Concepts] Correct the CurContext for friend declarations (PR #106890)

2024-09-01 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/106890 `FindInstantiatedDecl()` relies on the `CurContext` to find the corresponding class template instantiation for a class template declaration. Previously, we pushed the semantic declaration context for constraint

[clang] [Clang] Workaround dependent source location issues (PR #106925)

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

[clang] [clang-tools-extra] Add function check for windows platform (PR #106581)

2024-09-01 Thread via cfe-commits
fawdlstty wrote: ![test](https://github.com/user-attachments/assets/de4025d9-d787-4e4e-b9f5-a88e4308b452) https://github.com/llvm/llvm-project/pull/106581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [llvm] [RISCV][VCIX] Add vcix_state to GNU inline assembly register set (PR #106914)

2024-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Brandon Wu (4vtomat) Changes [RISCV][VCIX] Add vcix_state to GNU inline assembly register set Resolved https://github.com/llvm/llvm-project/issues/106700. This enables inline asm to have vcix_state to be a clobbered register th

[clang] [clang-tools-extra] Add function check for windows platform (PR #106581)

2024-09-01 Thread via cfe-commits
https://github.com/fawdlstty updated https://github.com/llvm/llvm-project/pull/106581 >From f169f3c57a0a55c1a0dbb8f965bc17a87ceb98d7 Mon Sep 17 00:00:00 2001 From: fawdlstty Date: Fri, 30 Aug 2024 00:23:39 +0800 Subject: [PATCH 1/6] add check for windows platforms api --- .../bugprone/NotNull

[clang] [Clang][NFC] Don't manually enumerate the PredefinedDeclIDs (PR #106891)

2024-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikolas Klauser (philnik777) Changes This doesn't seem to have any use other than the possibility of merge conflicts and accidentally forgetting to update `NUM_PREDEF_DECL_IDS`. --- Full diff: https://github.com/llvm/llvm-project/pull/10

[clang] [Clang][Concepts] Correct the CurContext for friend declarations (PR #106890)

2024-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes `FindInstantiatedDecl()` relies on the `CurContext` to find the corresponding class template instantiation for a class template declaration. Previously, we pushed the semantic declaration context for constra

[clang] 4fef204 - [Clang][NFC] Don't manually enumerate the PredefinedDeclIDs (#106891)

2024-09-01 Thread via cfe-commits
Author: Nikolas Klauser Date: 2024-09-01T13:39:11+02:00 New Revision: 4fef204ac42eb84e167d43ce076c9a167eae3be0 URL: https://github.com/llvm/llvm-project/commit/4fef204ac42eb84e167d43ce076c9a167eae3be0 DIFF: https://github.com/llvm/llvm-project/commit/4fef204ac42eb84e167d43ce076c9a167eae3be0.dif

[clang] [llvm] [RISCV][VCIX] Add vcix_state to GNU inline assembly register set (PR #106914)

2024-09-01 Thread Brandon Wu via cfe-commits
@@ -664,5 +664,9 @@ def FRM: RISCVReg<0, "frm">; // Shadow Stack register def SSP: RISCVReg<0, "ssp">; -// Dummy VCIX state register +// Dummy VCIX state register and its register class def VCIX_STATE : RISCVReg<0, "vcix_state">; +def : RISCVRegisterClass<[XLenVT], 32

[clang] [llvm] [RISCV][VCIX] Add vcix_state to GNU inline assembly register set (PR #106914)

2024-09-01 Thread Brandon Wu via cfe-commits
4vtomat wrote: > I would suggest it should prefix with a vendor prefix, either `sf.vcix_state` > or `sifive.vcix_state`, also go `riscv-c-api-doc` or > `riscv-toolchain-conventions` :) Do you mean change the current `vcix_state` register to `sf.vcix_state`? https://github.com/llvm/llvm-projec

[clang] [clang] The ms-extension __noop should return zero in a constexpr context. (PR #106849)

2024-09-01 Thread Timm Baeder via cfe-commits
@@ -12720,8 +12720,8 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E, } case Builtin::BI__noop: - // __noop always evaluates successfully -return true; +// __noop always evaluates successfully +return ZeroInitialization(E); t

[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-01 Thread via cfe-commits
https://github.com/nebulark updated https://github.com/llvm/llvm-project/pull/106369 >From 60332916c1fba8ad20d3353e279a867807f46273 Mon Sep 17 00:00:00 2001 From: Florian Schmiderer Date: Wed, 28 Aug 2024 12:36:39 +0200 Subject: [PATCH 1/4] Flatten compiler args in Frontend, keep existing beha

[clang] [clang] The ms-extension __noop should return zero in a constexpr context. (PR #106849)

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

[clang-tools-extra] [clang-tidy] Add option to cppcoreguidelines-pro-type-reinterpret-cas… (PR #106922)

2024-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Carlos Galvez (carlosgalvezp) Changes …t to allow casts to byte types These casts are safe according to the Standard, so add an option to allow them and not emit a warning. This helps silencing some noise and focusing on the unsafe

[clang] [Clang][NFC] Don't manually enumerate the PredefinedDeclIDs (PR #106891)

2024-09-01 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 ready_for_review https://github.com/llvm/llvm-project/pull/106891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Don't manually enumerate the PredefinedDeclIDs (PR #106891)

2024-09-01 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 closed https://github.com/llvm/llvm-project/pull/106891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Workaround dependent source location issues (PR #106925)

2024-09-01 Thread Younan Zhang via cfe-commits
zyn0217 wrote: Does it fix #80210? https://github.com/llvm/llvm-project/pull/106925 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] The ms-extension __noop should return zero in a constexpr context. (PR #106849)

2024-09-01 Thread via cfe-commits
c8ef wrote: Hi, could you please take a look? @tbaederr https://github.com/llvm/llvm-project/pull/106849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Don't manually enumerate the PredefinedDeclIDs (PR #106891)

2024-09-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot7` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/3210 Here is the relevant piece of the

[clang] [clang-format] Add new option: WrapNamespaceBodyWithEmptyLines (PR #106901)

2024-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (dmasloff) Changes I would like to suggest a new clang-format option for llvm-project - WrapNamespaceBodyWithNewlines. I think it can be added to upstream since it is used by many popular public repositories, for example, [ytsaurus]

[clang] [clang-format] Correctly identify token-pasted record names (PR #106484)

2024-09-01 Thread Owen Pan via cfe-commits
owenca wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/7579787e05966f21684dd4b4a15b9deac13d09e1 https://github.com/llvm/llvm-project/pull/106484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [Clang][Concepts] Correct the CurContext for friend declarations (PR #106890)

2024-09-01 Thread via cfe-commits
@@ -1012,7 +1012,14 @@ static const Expr *SubstituteConstraintExpressionWithoutSatisfaction( // possible that e.g. constraints involving C> and C are // perceived identical. std::optional ContextScope; - if (auto *RD = dyn_cast(DeclInfo.getDeclContext())) { + const Dec

[clang] [Clang][NFC] Don't manually enumerate the PredefinedDeclIDs (PR #106891)

2024-09-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang` at step 12 "build-stage2-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/2806 He

[clang] [llvm] [LTO] Reduce memory usage for import lists (PR #106772)

2024-09-01 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > It looks like this causes a compile-time regression. The clang thin link time > increases by 1% > (https://llvm-compile-time-tracker.com/compare_clang.php?from=9ccf82543d509bb5a0f5d0551fc4d6c1913b9a9b&to=5c0d61e318a77434487fcec8361d8110fb06e59d&stat=instructions%3Au). >

[clang] 5c0d61e - [LTO] Reduce memory usage for import lists (#106772)

2024-09-01 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-01T08:36:06-07:00 New Revision: 5c0d61e318a77434487fcec8361d8110fb06e59d URL: https://github.com/llvm/llvm-project/commit/5c0d61e318a77434487fcec8361d8110fb06e59d DIFF: https://github.com/llvm/llvm-project/commit/5c0d61e318a77434487fcec8361d8110fb06e59d.diff L

[clang] [Clang][Concepts] Correct the CurContext for friend declarations (PR #106890)

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

[clang] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)

2024-09-01 Thread Oleksandr T. via cfe-commits
@@ -177,6 +177,26 @@ static bool isLanguageDefinedBuiltin(const SourceManager &SourceMgr, return false; } +static bool isReservedAttrName(Preprocessor &PP, IdentifierInfo *II) { a-tarasyuk wrote: The reason I asked is that I recall clang has a predefined m

[clang] [clang-format] Add new option: WrapNamespaceBodyWithEmptyLines (PR #106901)

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

[clang] [Clang][Sema] Use the correct lookup context when building overloaded 'operator->' in the current instantiation (PR #104458)

2024-09-01 Thread via cfe-commits
h-vetinari wrote: > I think there won't be a rc4 so it's actually probably too late You have the wrong handle, on github it's @tru. 😉 Also, RC4 is being [considered](https://discourse.llvm.org/t/llvm-19-1-0-final-update-and-possible-rc4/81010). https://github.com/llvm/llvm-project/pull/104458

[clang-tools-extra] [clang-tidy] Add option to cppcoreguidelines-pro-type-reinterpret-cas… (PR #106922)

2024-09-01 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp created https://github.com/llvm/llvm-project/pull/106922 …t to allow casts to byte types These casts are safe according to the Standard, so add an option to allow them and not emit a warning. This helps silencing some noise and focusing on the unsafe casts. >

[clang] [Clang][NFC] Don't manually enumerate the PredefinedDeclIDs (PR #106891)

2024-09-01 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/106891 This doesn't seem to have any use other than the possibility of merge conflicts and accidentally forgetting to update `NUM_PREDEF_DECL_IDS`. >From 29cd14dff005175d30598f19a370b6ebb48a8c0e Mon Sep 17 00:00:0

[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-01 Thread via cfe-commits
https://github.com/nebulark updated https://github.com/llvm/llvm-project/pull/106369 >From 60332916c1fba8ad20d3353e279a867807f46273 Mon Sep 17 00:00:00 2001 From: Florian Schmiderer Date: Wed, 28 Aug 2024 12:36:39 +0200 Subject: [PATCH 1/7] Flatten compiler args in Frontend, keep existing beha

[clang] [clang-format] Correctly identify token-pasted record names (PR #106484)

2024-09-01 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#106900 https://github.com/llvm/llvm-project/pull/106484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Don't manually enumerate the PredefinedDeclIDs (PR #106891)

2024-09-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot1` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/3339 Here is the relevant piece of the b

[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-01 Thread Saleem Abdulrasool via cfe-commits
@@ -321,6 +322,41 @@ static bool actionRequiresCodeGen(BackendAction Action) { Action != Backend_EmitLL; } +static std::string flattenClangCommandLine(ArrayRef Args, + StringRef MainFilename) { + std::string FlatCmdLine; + raw_st

[clang] [clang-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)

2024-09-01 Thread via cfe-commits
https://github.com/dmasloff updated https://github.com/llvm/llvm-project/pull/106145 >From 219424f9cd3477d9290c8766eaa857234a1ae387 Mon Sep 17 00:00:00 2001 From: dmasloff Date: Mon, 26 Aug 2024 22:11:05 +0300 Subject: [PATCH] [clang-format] Add new option: WrapNamespaceBodyWithNewlines --- c

[clang] [Clang][Concepts] Correct the CurContext for friend declarations (PR #106890)

2024-09-01 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/106890 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)

2024-09-01 Thread Nikolas Klauser via cfe-commits
@@ -177,6 +177,26 @@ static bool isLanguageDefinedBuiltin(const SourceManager &SourceMgr, return false; } +static bool isReservedAttrName(Preprocessor &PP, IdentifierInfo *II) { philnik777 wrote: Yes, that's a supported extension. https://github.com/llvm/

[clang] [clang] NFCI: don't check deduced constraints when partial ordering (PR #106882)

2024-09-01 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/106882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] The ms-extension __noop should return zero in a constexpr context. (PR #106849)

2024-09-01 Thread via cfe-commits
https://github.com/c8ef updated https://github.com/llvm/llvm-project/pull/106849 >From 6ce4604725d36afaea17cf533d422a978c4389ff Mon Sep 17 00:00:00 2001 From: c8ef Date: Fri, 30 Aug 2024 15:34:34 + Subject: [PATCH 1/6] fix cast --- clang/lib/AST/ExprConstant.cpp | 2 +- clang/test/AST/ato

[clang] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)

2024-09-01 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk deleted https://github.com/llvm/llvm-project/pull/106036 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)

2024-09-01 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk edited https://github.com/llvm/llvm-project/pull/106036 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)

2024-09-01 Thread via cfe-commits
dmasloff wrote: > Please run `git clang-format HEAD~` and `ninja clang-format-check-format` > before pushing. Maybe it's only my problem, but i get this message running `git clang-format HEAD~`, hopefully I could fix it all manually using `ninja clang-format-check-format`: ``` /Users/daniilma

[clang] [Clang] Workaround dependent source location issues (PR #106925)

2024-09-01 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/106925 In #78436 we made some SourceLocExpr dependent to deal with the fact that their value should reflect the name of specialized function - rather than the rtemplate in which they are first used. However SourceLoc

[clang] 840d4d9 - [clang] NFCI: don't check deduced constraints when partial ordering (#106882)

2024-09-01 Thread via cfe-commits
Author: Matheus Izvekov Date: 2024-09-01T05:11:09-03:00 New Revision: 840d4d9446ef0a49b7600b42a188148a1826e17c URL: https://github.com/llvm/llvm-project/commit/840d4d9446ef0a49b7600b42a188148a1826e17c DIFF: https://github.com/llvm/llvm-project/commit/840d4d9446ef0a49b7600b42a188148a1826e17c.dif

[clang] 27e244f - [clang][AIX] Fix -print-runtime-dir on AIX (#104806)

2024-09-01 Thread via cfe-commits
Author: Jake Egan Date: 2024-09-01T23:37:43-04:00 New Revision: 27e244f51435f8f0933969782a6faddfcbe809a6 URL: https://github.com/llvm/llvm-project/commit/27e244f51435f8f0933969782a6faddfcbe809a6 DIFF: https://github.com/llvm/llvm-project/commit/27e244f51435f8f0933969782a6faddfcbe809a6.diff LOG

[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-01 Thread via cfe-commits
https://github.com/nebulark updated https://github.com/llvm/llvm-project/pull/106369 >From 60332916c1fba8ad20d3353e279a867807f46273 Mon Sep 17 00:00:00 2001 From: Florian Schmiderer Date: Wed, 28 Aug 2024 12:36:39 +0200 Subject: [PATCH 1/6] Flatten compiler args in Frontend, keep existing beha

[clang] [lld] [llvm] [X86, lld] Add relocation R_X86_64_REX2_GOTPCRELX (PR #106681)

2024-09-01 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert ready_for_review https://github.com/llvm/llvm-project/pull/106681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] The ms-extension __noop should return zero in a constexpr context. (PR #106849)

2024-09-01 Thread via cfe-commits
@@ -12720,8 +12720,8 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E, } case Builtin::BI__noop: - // __noop always evaluates successfully -return true; +// __noop always evaluates successfully +return ZeroInitialization(E); c

[clang] [Clang][NFC] Don't manually enumerate the PredefinedDeclIDs (PR #106891)

2024-09-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-android` running on `sanitizer-buildbot-android` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/1930 Here is the releva

[clang] [clang] The ms-extension __noop should return zero in a constexpr context. (PR #106849)

2024-09-01 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/106849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 57ef16c - Fix -Wswitch warning after 4fef204ac42eb84e167d43ce076c9a167eae3be0

2024-09-01 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2024-09-01T15:40:44+02:00 New Revision: 57ef16c699c274b7f3eee12e5c2896e193f513c4 URL: https://github.com/llvm/llvm-project/commit/57ef16c699c274b7f3eee12e5c2896e193f513c4 DIFF: https://github.com/llvm/llvm-project/commit/57ef16c699c274b7f3eee12e5c2896e193f513c4.diff LO

[clang] [Clang] Workaround dependent source location issues (PR #106925)

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

[clang] [Clang] Workaround dependent source location issues (PR #106925)

2024-09-01 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/106925 >From 6544062d2543c86a3701a035e6e18f12a87b3ffd Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Mon, 2 Sep 2024 00:22:40 +0200 Subject: [PATCH] [Clang] Workaround dependent source location issues In #78436

[clang] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)

2024-09-01 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk edited https://github.com/llvm/llvm-project/pull/106036 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Workaround dependent source location issues (PR #106925)

2024-09-01 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/106925 >From b561f0634c08a8cc845f8a58985c67b0e7ca35ad Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Mon, 2 Sep 2024 00:22:40 +0200 Subject: [PATCH] [Clang] Workaround dependent source location issues In #78436

[clang] [clang-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)

2024-09-01 Thread via cfe-commits
https://github.com/dmasloff updated https://github.com/llvm/llvm-project/pull/106145 >From 219424f9cd3477d9290c8766eaa857234a1ae387 Mon Sep 17 00:00:00 2001 From: dmasloff Date: Mon, 26 Aug 2024 22:11:05 +0300 Subject: [PATCH] [clang-format] Add new option: WrapNamespaceBodyWithNewlines --- c

[clang] [analyzer] Model overflow builtins (PR #102602)

2024-09-01 Thread Pavel Skripkin via cfe-commits
@@ -0,0 +1,157 @@ +// RUN: %clang_analyze_cc1 -triple x86_64-unknown-unknown -verify %s \ +// RUN: -analyzer-checker=core,debug.ExprInspection + +#define __UINT_MAX__ (__INT_MAX__ * 2U + 1U) +#define __INT_MIN__ (-__INT_MAX__ - 1) + +void clang_analyzer_dump_int(int); +void cla

[clang] [Clang] Workaround dependent source location issues (PR #106925)

2024-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes In #78436 we made some SourceLocExpr dependent to deal with the fact that their value should reflect the name of specialized function - rather than the rtemplate in which they are first used. However SourceLocE

[clang] [Clang][CodeGen] Don't emit assumptions if current block is unreachable. (PR #106936)

2024-09-01 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw created https://github.com/llvm/llvm-project/pull/106936 Fixes https://github.com/llvm/llvm-project/issues/106898. When emitting an infinite loop, clang codegen will delete the whole block and leave builder's current block as nullptr: https://github.com/llvm/llvm-pro

[clang] [flang] [mlir] Avoid object libraries in the VS IDE (PR #93519)

2024-09-01 Thread via cfe-commits
Zentrik wrote: Hi, this broke the build on windows using mingw and `LLVM_BUILD_LLVM_DYLIB`. See https://github.com/llvm/llvm-project/issues/106899 for more details. Any help fixing this would be appreciated, thanks. https://github.com/llvm/llvm-project/pull/93519 __

[clang] 7b2fe84 - Don't run the lifetime analysis for pointer assignment if the warning is

2024-09-01 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2024-09-01T16:19:18+02:00 New Revision: 7b2fe84ff57b49f6275bc12d47f87a1887919d9e URL: https://github.com/llvm/llvm-project/commit/7b2fe84ff57b49f6275bc12d47f87a1887919d9e DIFF: https://github.com/llvm/llvm-project/commit/7b2fe84ff57b49f6275bc12d47f87a1887919d9e.diff LO

[clang] [clang] NFCI: don't check deduced constraints when partial ordering (PR #106882)

2024-09-01 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/106882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LTO] Reduce memory usage for import lists (PR #106772)

2024-09-01 Thread Nikita Popov via cfe-commits
nikic wrote: It looks like this causes a compile-time regression. The clang thin link time increases by 1% (https://llvm-compile-time-tracker.com/compare_clang.php?from=9ccf82543d509bb5a0f5d0551fc4d6c1913b9a9b&to=5c0d61e318a77434487fcec8361d8110fb06e59d&stat=instructions%3Au). There is no regr

[clang] [llvm] [RISCV][VCIX] Add vcix_state to GNU inline assembly register set (PR #106914)

2024-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brandon Wu (4vtomat) Changes [RISCV][VCIX] Add vcix_state to GNU inline assembly register set Resolved https://github.com/llvm/llvm-project/issues/106700. This enables inline asm to have vcix_state to be a clobbered register thus disabl

[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-01 Thread via cfe-commits
https://github.com/nebulark updated https://github.com/llvm/llvm-project/pull/106369 >From 60332916c1fba8ad20d3353e279a867807f46273 Mon Sep 17 00:00:00 2001 From: Florian Schmiderer Date: Wed, 28 Aug 2024 12:36:39 +0200 Subject: [PATCH 1/8] Flatten compiler args in Frontend, keep existing beha

[clang] [Clang][NFC] Don't manually enumerate the PredefinedDeclIDs (PR #106891)

2024-09-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-ppc64le-linux` running on `ppc64le-sanitizer` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/72/builds/2844 Here is the relevant piece of the bu

[clang] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)

2024-09-01 Thread Oleksandr T. via cfe-commits
@@ -177,6 +177,26 @@ static bool isLanguageDefinedBuiltin(const SourceManager &SourceMgr, return false; } +static bool isReservedAttrName(Preprocessor &PP, IdentifierInfo *II) { a-tarasyuk wrote: The reason I asked is that I recall clang has a predefined m

[clang] [Clang][Concepts] Correct the CurContext for friend declarations (PR #106890)

2024-09-01 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/106890 >From 679ece827467a25b14d0a718ac10f221327f5bef Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sun, 1 Sep 2024 14:55:22 +0800 Subject: [PATCH 1/2] [Clang][Concepts] Correct the CurContext for friend declarati

[clang] [lld] [llvm] [X86, lld] Add relocation R_X86_64_REX2_GOTPCRELX (PR #106681)

2024-09-01 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert updated https://github.com/llvm/llvm-project/pull/106681 >From 8d8aea0d9d6b85a3b279a1c60b50cf9b859d6919 Mon Sep 17 00:00:00 2001 From: Shengchen Kan Date: Tue, 25 Jun 2024 20:33:10 +0800 Subject: [PATCH 1/7] [X86,lld] Add relocation R_X86_64_REX2_GOTPCRELX For

[clang] [Clang][NFC] Don't manually enumerate the PredefinedDeclIDs (PR #106891)

2024-09-01 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/106891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add new option: WrapNamespaceBodyWithEmptyLines (PR #106901)

2024-09-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] [llvm] [LTO] Reduce memory usage for import lists (PR #106772)

2024-09-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/106772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Use the correct lookup context when building overloaded 'operator->' in the current instantiation (PR #104458)

2024-09-01 Thread via cfe-commits
cor3ntin wrote: > > I think there won't be a rc4 so it's actually probably too late > > You have the wrong handle, on github it's @tru. 😉 Also, RC4 is being > [considered](https://discourse.llvm.org/t/llvm-19-1-0-final-update-and-possible-rc4/81010). Thanks! However we can't consider a backpor

[clang] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)

2024-09-01 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk edited https://github.com/llvm/llvm-project/pull/106036 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits