[clang] [libcxxabi] [llvm] [WIP][Clang] Mangling of pack indexing type and expression for itanium (PR #123513)

2025-01-19 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/123513 None >From 1b016f8b86eb004568e2779d19cc030e8c487762 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Sun, 19 Jan 2025 15:08:52 +0100 Subject: [PATCH] [WIP][Clang] Mangling of pack indexing type and expressi

[clang] [libcxxabi] [llvm] [WIP][Clang] Mangling of pack indexing type and expression for itanium (PR #123513)

2025-01-19 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 7dd34baf5505d689161c3a8678322a394d7a2929 1b016f8b86eb004568e2779d19cc030e8c487762 --e

[clang] [Clang] Add GCC's __builtin_stack_address() to Clang. (PR #121332)

2025-01-19 Thread via cfe-commits
aalhwc wrote: @philnik777 does this new version of the patch address your comment? https://github.com/llvm/llvm-project/pull/121332 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0ab1f57 - [clang][bytecode] Register decomposition holding vars (#123515)

2025-01-19 Thread via cfe-commits
Author: Timm Baeder Date: 2025-01-19T16:29:56+01:00 New Revision: 0ab1f5772cbe6855d55bade566d885b7504c32ee URL: https://github.com/llvm/llvm-project/commit/0ab1f5772cbe6855d55bade566d885b7504c32ee DIFF: https://github.com/llvm/llvm-project/commit/0ab1f5772cbe6855d55bade566d885b7504c32ee.diff L

[clang] [clang][bytecode] Register decomposition holding vars (PR #123515)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/123515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM. Do you need us to merge that for you? https://github.com/llvm/llvm-project/pull/123506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
redcode wrote: > This seems related to #85995. Do you plan to fix that issue together? I wasn't planning on fixing Clang's ``, I thought it would be better handled by the maintainers of the standard library, but I can do it if you want. Do you want me to do it? https://github.com/llvm/llvm-pr

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread A. Jiang via cfe-commits
frederick-vs-ja wrote: > > This seems related to #85995. Do you plan to fix that issue together? > > I wasn't planning on fixing Clang's ``, I thought it would be > better handled by the maintainers of the standard library, but I can do it if > you want. > > Do you want me to do it? Oh, I di

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
redcode wrote: > > > This seems related to #85995. Do you plan to fix that issue together? > > > > > > I wasn't planning on fixing Clang's ``, I thought it would be > > better handled by the maintainers of the standard library, but I can do it > > if you want. > > Do you want me to do it? >

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-01-19 Thread Jeremy Rifkin via cfe-commits
jeremy-rifkin wrote: There are implications with #123166, which might also be clang 21 material https://github.com/llvm/llvm-project/pull/123470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
DeNiCoN wrote: @cor3ntin Yes. Thank you. Should I squash the commits or this can be done on your side? https://github.com/llvm/llvm-project/pull/123506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] 293dbea - Fix some typos (#123506)

2025-01-19 Thread via cfe-commits
Author: DeNiCoN Date: 2025-01-19T16:53:39+01:00 New Revision: 293dbea8b0169525d93a4ee4b7d6c53aa9d4bee0 URL: https://github.com/llvm/llvm-project/commit/293dbea8b0169525d93a4ee4b7d6c53aa9d4bee0 DIFF: https://github.com/llvm/llvm-project/commit/293dbea8b0169525d93a4ee4b7d6c53aa9d4bee0.diff LOG:

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/123506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Register decomposition holding vars (PR #123515)

2025-01-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/11979 Here is the r

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
github-actions[bot] wrote: @DeNiCoN Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build,

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang-tools-extra,clang,llvm` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/11328 Here is th

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #123499)

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

[clang] [clang][bytecode] Fix discarding DerivedToBase casts (PR #123523)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/123523 None >From f5544cfbc4a3223d76f1a388bd4c20d78f14da12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 19 Jan 2025 19:48:31 +0100 Subject: [PATCH] [clang][bytecode] Fix discarding DerivedT

[clang] [clang][bytecode] Fix discarding DerivedToBase casts (PR #123523)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/123523.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+6) - (modified) clang/test/AST/ByteCode/records.cpp (+15)

[clang] f13850a - [AST] Migrate away from PointerUnion::dyn_cast (NFC) (#123499)

2025-01-19 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-19T10:56:57-08:00 New Revision: f13850a92c13d41ee377b8ebb2c226895fddbb57 URL: https://github.com/llvm/llvm-project/commit/f13850a92c13d41ee377b8ebb2c226895fddbb57 DIFF: https://github.com/llvm/llvm-project/commit/f13850a92c13d41ee377b8ebb2c226895fddbb57.diff L

[clang] [clang][bytecode] Register decomposition holding vars (PR #123515)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/123515 None >From 69df4b6dc60426aee3ff61e556c44f81427a0e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 19 Jan 2025 15:49:30 +0100 Subject: [PATCH] [clang][bytecode] Register decomposition

[clang] [clang][bytecode] Register decomposition holding vars (PR #123515)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/123515.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+9) - (modified) clang/test/AST/ByteCode/cxx17.cpp (+20) ``

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
https://github.com/redcode created https://github.com/llvm/llvm-project/pull/123514 This small PR makes Clang predefine the following macros: ``` __INT8_C(c) __INT16_C(c) __INT32_C(c) __INT64_C(c) __INTMAX_C(c) __UINT8_C(c) __UINT16_C(c) __UINT32_C(c) __UINT64_C(c) __UINTMAX_C(c) ``` Which imp

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Manuel Sainz de Baranda y Goñi (redcode) Changes This small PR makes Clang predefine the following macros: ``` __INT8_C(c) __INT16_C(c) __INT32_C(c) __INT64_C(c) __INTMAX_C(c) __UINT8_C(c) __UINT16_C(c) __UINT32_C(c) __UINT64_C(c) __UINTMA

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 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] [libcxxabi] [llvm] [WIP][Clang] Mangling of pack indexing type and expression for itanium (PR #123513)

2025-01-19 Thread Timm Baeder via cfe-commits
@@ -4785,6 +4790,19 @@ void CXXNameMangler::mangleRequirement(SourceLocation RequiresExprLoc, } } +void CXXNameMangler::mangleReferenceToPack(const NamedDecl* Pack) { +if (const TemplateTypeParmDecl *TTP = dyn_cast(Pack)) +mangleTemplateParameter(TTP->getDepth()

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread A. Jiang via cfe-commits
frederick-vs-ja wrote: This seems related to #85995. Do you plan to fix that issue together? https://github.com/llvm/llvm-project/pull/123514 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx edited https://github.com/llvm/llvm-project/pull/123519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Alex Voicu via cfe-commits
@@ -323,43 +323,59 @@ void AMDGPU::fillAMDGPUFeatureMap(StringRef GPU, const Triple &T, StringMap &Features) { // XXX - What does the member GPU mean if device name string passed here? if (T.isSPIRV() && T.getOS() == Triple::OSType::AMDHSA

[clang] [cindex] Add API to query the class methods of a type (PR #123539)

2025-01-19 Thread Trevor Laughlin via cfe-commits
https://github.com/trelau created https://github.com/llvm/llvm-project/pull/123539 Inspired by https://github.com/llvm/llvm-project/pull/120300, add a new API `clang_visitCXXMethods` to libclang (and the Python bindings) which allows iterating over the class methods of a type. >From bb0542e8f

[clang] [cindex] Add API to query the class methods of a type (PR #123539)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Trevor Laughlin (trelau) Changes Inspired by https://github.com/llvm/llvm-project/pull/120300, add a new API `clang_visitCXXMethods` to libclang (and the Python bindings) which allows iterating over the class methods of a type. --- Full

[clang] [cindex] Add API to query the class methods of a type (PR #123539)

2025-01-19 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] [clang][bytecode][NFC] Use FixedPoint opaque int API (PR #123522)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/123522 Now that we have it, use it. >From 9495bf522c349f8223f890c2581817814f7ba2f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 19 Jan 2025 19:39:04 +0100 Subject: [PATCH] [clang][bytecode]

[clang] [clang][bytecode][NFC] Use FixedPoint opaque int API (PR #123522)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Now that we have it, use it. --- Full diff: https://github.com/llvm/llvm-project/pull/123522.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+23-28) - (modified) clang/lib/AST/Byt

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA edited https://github.com/llvm/llvm-project/pull/123533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Valentyn Yukhymenko (BaLiKfromUA) Changes Fixes llvm#123423 **How did I test it?** Modified existing test and checked an example from the issue manually. --- Full diff: https://github.com/llvm/llvm-project/pull/123533.diff 3 Files Aff

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA converted_to_draft https://github.com/llvm/llvm-project/pull/123533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-19 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/123495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-19 Thread via cfe-commits
@@ -2509,6 +2509,20 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, LookupResult &R, DC = DC->getLookupParent(); } + // Check whether a similar function-like macro exists and suggest it Sirraide wrote: Instead of doing this here before t

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-19 Thread via cfe-commits
@@ -5936,6 +5936,9 @@ def err_fold_expression_limit_exceeded: Error< "instantiating fold expression with %0 arguments exceeded expression nesting " "limit of %1">, DefaultFatal, NoSFINAE; +def note_function_like_macro_requires_parens +: Note<"'%0' exists, but as a fun

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-19 Thread via cfe-commits
https://github.com/Sirraide commented: This still needs tests and a release note. https://github.com/llvm/llvm-project/pull/123495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-19 Thread via cfe-commits
@@ -134,6 +134,7 @@ void test_NE() { // CHECK: fix-it:"{{.*}}macro_with_initializer_list.cpp":{110:32-110:32}:")" #define INIT(var, init) Foo var = init; // expected-note 3{{defined here}} +// expected-note@-1 2{{'INIT' exists, but as a function-like macro; perhaps, did you f

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA updated https://github.com/llvm/llvm-project/pull/123533 >From e451a8869420d9240f9006eb2adb599a3e6fd9f8 Mon Sep 17 00:00:00 2001 From: Valentyn Yukhymenko Date: Sun, 19 Jan 2025 23:13:46 + Subject: [PATCH] [Clang] Reject declaring an alias template with the sa

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA edited https://github.com/llvm/llvm-project/pull/123533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA ready_for_review https://github.com/llvm/llvm-project/pull/123533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #123499)

2025-01-19 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/123499 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-01-19 Thread via cfe-commits
cor3ntin wrote: Thanks for working on that Did you do a stage 2 build? I think this is probably Clang 21 material (unless we become sufficiently confident before RC3) https://github.com/llvm/llvm-project/pull/123470 ___ cfe-commits mailing list cfe-co

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: None (DeNiCoN) Changes Fixes some typos I've found while reading the documentation --- Full diff: https://github.com/llvm/llvm-project/pull/123506.diff 6 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/Contrib

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (DeNiCoN) Changes Fixes some typos I've found while reading the documentation --- Full diff: https://github.com/llvm/llvm-project/pull/123506.diff 6 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/Contributing.rst (+

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (DeNiCoN) Changes Fixes some typos I've found while reading the documentation --- Full diff: https://github.com/llvm/llvm-project/pull/123506.diff 6 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/Contributing.r

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
https://github.com/DeNiCoN created https://github.com/llvm/llvm-project/pull/123506 Fixes some typos I've found while reading the documentation >From f1691c219527e96832316a853d60985fc72115ef Mon Sep 17 00:00:00 2001 From: DeNiCoN Date: Tue, 14 Jan 2025 07:30:08 +0100 Subject: [PATCH] Fix some

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 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] Reapply "[Clang][Sema] Use the correct lookup context when building overloaded 'operator->' in the current instantiation (#104458)" (PR #109422)

2025-01-19 Thread via cfe-commits
cor3ntin wrote: @sdkrystian ping https://github.com/llvm/llvm-project/pull/109422 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. lgtm for clangtidy part. https://github.com/llvm/llvm-project/pull/123506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
@@ -224,7 +224,7 @@ class DiagStorageAllocator { /// Concrete class used by the front-end to report problems and issues. /// -/// This massages the diagnostics (e.g. handling things like "report warnings +/// This messages the diagnostics (e.g. handling things like "report war

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
@@ -50,7 +50,7 @@ documentation refer to `GitHub's documentation

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
https://github.com/DeNiCoN updated https://github.com/llvm/llvm-project/pull/123506 >From f1691c219527e96832316a853d60985fc72115ef Mon Sep 17 00:00:00 2001 From: DeNiCoN Date: Tue, 14 Jan 2025 07:30:08 +0100 Subject: [PATCH 1/2] Fix some typos --- clang-tools-extra/docs/clang-tidy/Contributin

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
https://github.com/DeNiCoN updated https://github.com/llvm/llvm-project/pull/123506 >From f1691c219527e96832316a853d60985fc72115ef Mon Sep 17 00:00:00 2001 From: DeNiCoN Date: Tue, 14 Jan 2025 07:30:08 +0100 Subject: [PATCH 1/3] Fix some typos --- clang-tools-extra/docs/clang-tidy/Contributin

[clang] 0cb2fe5 - [Clang] Deprecate __is_referenceable (#123185)

2025-01-19 Thread via cfe-commits
Author: Nikolas Klauser Date: 2025-01-19T10:28:38+01:00 New Revision: 0cb2fe5183c9b25bb96140c27d12b1ad4a80aa92 URL: https://github.com/llvm/llvm-project/commit/0cb2fe5183c9b25bb96140c27d12b1ad4a80aa92 DIFF: https://github.com/llvm/llvm-project/commit/0cb2fe5183c9b25bb96140c27d12b1ad4a80aa92.dif

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
@@ -50,7 +50,7 @@ documentation refer to `GitHub's documentation

[clang] [Clang] Deprecate __is_referenceable (PR #123185)

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

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
@@ -224,7 +224,7 @@ class DiagStorageAllocator { /// Concrete class used by the front-end to report problems and issues. /// -/// This massages the diagnostics (e.g. handling things like "report warnings +/// This messages the diagnostics (e.g. handling things like "report war

[clang] [Clang] handle [[warn_unused]] attribute for unused private fields (PR #120734)

2025-01-19 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/120734 >From 55fb96c1673911f30721c2a53bea32e7e4b5dc6e Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Fri, 20 Dec 2024 15:32:55 +0200 Subject: [PATCH 1/3] [Clang] handle [[warn_unused]] attribute for unused privat

[clang] [Clang] handle [[warn_unused]] attribute for unused private fields (PR #120734)

2025-01-19 Thread Oleksandr T. via cfe-commits
@@ -3307,6 +3307,29 @@ void Sema::CheckShadowInheritedFields(const SourceLocation &Loc, } } +template +inline static bool HasAttribute(const QualType &T) { + if (const TagDecl *TD = T->getAsTagDecl()) +return TD->hasAttr(); + if (const TypedefType *TDT = T->getAs())

[clang] [clang][bytecode] Fix discarding DerivedToBase casts (PR #123523)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/123523 >From db874d225e0994587ca15384679d070651e0cc99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 19 Jan 2025 19:48:31 +0100 Subject: [PATCH] [clang][bytecode] Fix discarding DerivedToBase

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-01-19 Thread via cfe-commits
Sirraide wrote: > Did you do a stage 2 build? Not yet; that’s probably a good idea. https://github.com/llvm/llvm-project/pull/123470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [llvm] Patch series to reapply #118734 and substantially improve it (PR #120534)

2025-01-19 Thread via cfe-commits
dyung wrote: > @dyung - OK, I think the current just-pushed version of this PR is worth > another test. > > I've taught the TableGen string table emission to go back to working around > the MSVC issues using a different table form that we used to use in LLVM when > MSVC had a reliable error o

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA created https://github.com/llvm/llvm-project/pull/123533 Fixes llvm#123423 **How did I test it?** Modified existing test and checked an example from the issue manually. >From 0852c8ca587e772d5f851ac0983f43bdeec2ebd5 Mon Sep 17 00:00:00 2001 From: Valentyn Yukhy

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 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] [Clang] Match MSVC handling of duplicate header search paths in Microsoft compatibility modes. (PR #105738)

2025-01-19 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann updated https://github.com/llvm/llvm-project/pull/105738 >From c5d4a8b94d0f5b294dda30b455c492e0a860906a Mon Sep 17 00:00:00 2001 From: Tom Honermann Date: Thu, 22 Aug 2024 09:44:56 -0700 Subject: [PATCH] [Clang] Support for MSVC compatible header search path orde

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
@@ -65,7 +65,8 @@ namespace InFunctions { template struct S3 { // expected-note {{template parameter is declared here}} template using T = int; // expected-error {{declaration of 'T' shadows template parameter}} }; - template using Z = Z; + template // expected-note

[clang-tools-extra] [clang-tidy] Added support for 3-argument std::string ctor in bugprone-string-constructor check (PR #123413)

2025-01-19 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/123413 >From f5f0ba142a2eb71ce781faf4e15fcd225bec9ca8 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sat, 18 Jan 2025 00:49:29 +0300 Subject: [PATCH 1/2] [clang-tidy] Added support for 3-argument string ctor ---

[clang-tools-extra] [clang-tidy] Added support for 3-argument std::string ctor in bugprone-string-constructor check (PR #123413)

2025-01-19 Thread Baranov Victor via cfe-commits
vbvictor wrote: > please update documents in > clang-tools-extra/docs/clang-tidy/checks/bugprone/string-constructor.rst also Added new error description for "invalid character position argument" and provided more examples to existing cases. https://github.com/llvm/llvm-project/pull/123413 ___

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx created https://github.com/llvm/llvm-project/pull/123519 When we did the initial AMDGCNSPIRV commits we left the initialisation of the feature map in a relatively disorderly state. This change corrects that oversight: - We make sure that AMDGCNSPIRV actually adverti

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alex Voicu (AlexVlx) Changes When we did the initial AMDGCNSPIRV commits we left the initialisation of the feature map in a relatively disorderly state. This change corrects that oversight: - We make sure that AMDGCNSPIRV actually advert

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Shilei Tian via cfe-commits
@@ -323,43 +323,59 @@ void AMDGPU::fillAMDGPUFeatureMap(StringRef GPU, const Triple &T, StringMap &Features) { // XXX - What does the member GPU mean if device name string passed here? if (T.isSPIRV() && T.getOS() == Triple::OSType::AMDHSA

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/123519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NVPTX] Add support for PTX 8.6 and CUDA 12.6 (12.8) (PR #123398)

2025-01-19 Thread Durgadoss R via cfe-commits
@@ -682,6 +688,9 @@ void NVPTX::getNVPTXTargetFeatures(const Driver &D, const llvm::Triple &Triple, case CudaVersion::CUDA_##CUDA_VER: \ PtxFeature = "+ptx" #PTX_VER; \ break; +

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Shilei Tian via cfe-commits
@@ -323,43 +323,59 @@ void AMDGPU::fillAMDGPUFeatureMap(StringRef GPU, const Triple &T, StringMap &Features) { // XXX - What does the member GPU mean if device name string passed here? if (T.isSPIRV() && T.getOS() == Triple::OSType::AMDHSA

[clang] [Clang] Deprecate __is_referenceable (PR #123185)

2025-01-19 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 edited https://github.com/llvm/llvm-project/pull/123185 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] handle [[warn_unused]] attribute for unused private fields (PR #120734)

2025-01-19 Thread Timm Baeder via cfe-commits
@@ -3307,6 +3307,29 @@ void Sema::CheckShadowInheritedFields(const SourceLocation &Loc, } } +template +inline static bool HasAttribute(const QualType &T) { + if (const TagDecl *TD = T->getAsTagDecl()) +return TD->hasAttr(); + if (const TypedefType *TDT = T->getAs())

[clang] First PR to llvm, adding feature for issue (PR #123543)

2025-01-19 Thread via cfe-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Discourse](https://discourse.llvm.org/t/hidden-email

[clang] [Clang][MIPS] Create correct linker arguments for Windows toolchains (PR #121041)

2025-01-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/13136 Here is th

[clang] 046b064 - [clang][bytecode][NFC] Use FixedPoint opaque int API (#123522)

2025-01-19 Thread via cfe-commits
Author: Timm Baeder Date: 2025-01-20T08:44:59+01:00 New Revision: 046b064df0ac9d4530e79f11077a768383b1ca16 URL: https://github.com/llvm/llvm-project/commit/046b064df0ac9d4530e79f11077a768383b1ca16 DIFF: https://github.com/llvm/llvm-project/commit/046b064df0ac9d4530e79f11077a768383b1ca16.diff L

[clang] [clang][bytecode][NFC] Use FixedPoint opaque int API (PR #123522)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/123522 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix discarding DerivedToBase casts (PR #123523)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/123523 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6972788 - [clang][bytecode] Fix discarding DerivedToBase casts (#123523)

2025-01-19 Thread via cfe-commits
Author: Timm Baeder Date: 2025-01-20T08:55:54+01:00 New Revision: 6972788bf3d330b7a6136e2ddd840782882b8dd0 URL: https://github.com/llvm/llvm-project/commit/6972788bf3d330b7a6136e2ddd840782882b8dd0 DIFF: https://github.com/llvm/llvm-project/commit/6972788bf3d330b7a6136e2ddd840782882b8dd0.diff L

[clang] [llvm] [NVPTX] Add support for PTX 8.6 and CUDA 12.6 (12.8) (PR #123398)

2025-01-19 Thread Sergey Kozub via cfe-commits
https://github.com/sergey-kozub updated https://github.com/llvm/llvm-project/pull/123398 >From 04313ede76d272ec391361b9828e55d8a27b4bda Mon Sep 17 00:00:00 2001 From: Sergey Kozub Date: Fri, 17 Jan 2025 21:00:49 + Subject: [PATCH] Add support for PTX 8.6 and CUDA 12.6 (12.8) --- clang/inc

[clang] [llvm] [NVPTX] Add support for PTX 8.6 and CUDA 12.6 (12.8) (PR #123398)

2025-01-19 Thread Sergey Kozub via cfe-commits
@@ -682,6 +688,9 @@ void NVPTX::getNVPTXTargetFeatures(const Driver &D, const llvm::Triple &Triple, case CudaVersion::CUDA_##CUDA_VER: \ PtxFeature = "+ptx" #PTX_VER; \ break; +

[clang] First PR to llvm, adding feature for issue (PR #123543)

2025-01-19 Thread via cfe-commits
https://github.com/Shakil582 created https://github.com/llvm/llvm-project/pull/123543 resolves #43831 I'll test it a bit more tomorrow. I think I saw something weird with the --offset functionality when testing, but my additions worked for the test cases I gave it. >From 4dc0383b366b3105a

[clang] First PR to llvm, adding feature for issue (PR #123543)

2025-01-19 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] First PR to llvm, adding feature for issue (PR #123543)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (Shakil582) Changes resolves #43831 I'll test it a bit more tomorrow. I think I saw something weird with the --offset functionality when testing, but my additions worked for the test cases I gave it. --- Full diff: https:

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/123551 Fixes https://github.com/llvm/llvm-project/issues/123549 >From cd87f05f19f245e24f5c29b97af0b69266608d7a Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Mon, 20 Jan 2025 01:52:24 -0500 Subject: [PATCH 1

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/llvm/llvm-project/issues/123549 --- Full diff: https://github.com/llvm/llvm-project/pull/123551.diff 5 Files Affected: - (modified) clang-tools-extra/clangd/FindTarget.cpp (

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/llvm/llvm-project/issues/123549 --- Full diff: https://github.com/llvm/llvm-project/pull/123551.diff 5 Files Affected: - (modified) clang-tools-extra/clangd/Find

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/llvm/llvm-project/issues/123549 --- Full diff: https://github.com/llvm/llvm-project/pull/123551.diff 5 Files Affected: - (modified) clang-tools-extra/clangd/FindTarget.cpp

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: For ease of review, I split the PR into two patches (which I plan to squash): * The first patch is mechanical changes to use and propagate `QualType` rather than `Type *` in HeuristicResolver interfaces (both public and internal), where it makes sense. * The second patch

[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)

2025-01-19 Thread via cfe-commits
leijurv wrote: Thank you for the review owenca, those are very reasonable changes, particularly on the conditions where the BreakBeforeClosingAngle gets set/used! https://github.com/llvm/llvm-project/pull/118046 ___ cfe-commits mailing list cfe-commit

[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)

2025-01-19 Thread via cfe-commits
https://github.com/leijurv updated https://github.com/llvm/llvm-project/pull/118046 >From 1caf823165b16f6701993d586df51d5cdbf0885e Mon Sep 17 00:00:00 2001 From: Leijurv Date: Fri, 29 Nov 2024 21:54:36 -0600 Subject: [PATCH 01/12] [clang-format] Add BreakBeforeTemplateClose option --- clang/d

[clang] [Clang][MIPS] Create correct linker arguments for Windows toolchains (PR #121041)

2025-01-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa closed https://github.com/llvm/llvm-project/pull/121041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >