[PATCH] D145885: [clang-tidy] Support readability-redundant-string-cstr.StringParameterFunctions option

2023-03-13 Thread Mike Crowe via Phabricator via cfe-commits
mikecrowe updated this revision to Diff 504517. mikecrowe marked 2 inline comments as done. mikecrowe added a comment. Documentation updates suggested by @PiotrZSL. Rebase. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145885/new/ https://reviews.l

[PATCH] D145899: [AIX][Clang] Respect -r when invoking the linker

2023-03-13 Thread Michael Francis via Phabricator via cfe-commits
francii updated this revision to Diff 504518. francii added a comment. Move `-r` check in `CommonArgs.cpp` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145899/new/ https://reviews.llvm.org/D145899 Files: clang/lib/Driver/ToolChains/AIX.cpp cl

[PATCH] D145885: [clang-tidy] Support readability-redundant-string-cstr.StringParameterFunctions option

2023-03-13 Thread Piotr Zegar via Phabricator via cfe-commits
PiotrZSL added inline comments. Comment at: clang-tools-extra/docs/clang-tidy/checks/readability/redundant-string-cstr.rst:18 + or proper overload candidates that can do so should exist. This can be + used to configure functions such as fmt::format, spdlog::logger::info, +

[PATCH] D145671: [clang] Remove legacy -m(no)-code-object-v3 options

2023-03-13 Thread Pierre van Houtryve via Phabricator via cfe-commits
Pierre-vh added a comment. I'll wait a couple of more days and then land, if no one has any objections. As said before this has been deprecated for a long time, and clang was already warning on use of those options. Removal has been pending for a while :) Repository: rG LLVM Github Monorepo

[clang] 2e9977c - [C++20] [Modules] Treat module linkage as formal linkage only

2023-03-13 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2023-03-13T15:54:40+08:00 New Revision: 2e9977c2815653c141c6c060c4e0ab6c0db27911 URL: https://github.com/llvm/llvm-project/commit/2e9977c2815653c141c6c060c4e0ab6c0db27911 DIFF: https://github.com/llvm/llvm-project/commit/2e9977c2815653c141c6c060c4e0ab6c0db27911.diff LO

[PATCH] D145491: [clang] Replace Member Expressions During Instantiation If Necessary

2023-03-13 Thread Liming Liu via Phabricator via cfe-commits
lime updated this revision to Diff 504535. lime added a comment. Update and ping. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145491/new/ https://reviews.llvm.org/D145491 Files: clang/docs/ReleaseNotes.rst clang/lib/Sema/TreeTransform.h clang/test/CodeGenCXX/decl-ref-inheritanc

[PATCH] D145885: [clang-tidy] Support readability-redundant-string-cstr.StringParameterFunctions option

2023-03-13 Thread Mike Crowe via Phabricator via cfe-commits
mikecrowe updated this revision to Diff 504537. mikecrowe edited the summary of this revision. mikecrowe added a comment. Quote types and functions correctly in redundant-string-cstr.rst. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145885/new/ ht

[PATCH] D145883: [Flang][RISCV] Emit target features for RISC-V

2023-03-13 Thread Andrzej Warzynski via Phabricator via cfe-commits
awarzynski added a comment. Why does "flang/test/Driver/target-features.f90" list all RISC-V features? Why not use https://github.com/llvm/llvm-project/blob/main/flang/test/Driver/target-cpu-features.f90 instead? Comment at: flang/test/Driver/target-features.f90:1 +! RUN: %

[PATCH] D145883: [Flang][RISCV] Emit target features for RISC-V

2023-03-13 Thread Jessica Clarke via Phabricator via cfe-commits
jrtc27 added inline comments. Comment at: flang/test/Driver/target-features.f90:1 +! RUN: %flang --target=riscv64-linux-gnu --target=riscv64 -c %s -### 2>&1 \ +! RUN: | FileCheck %s -check-prefix=CHECK-RV64 awarzynski wrote: > What happens if the RISC-V backend i

[PATCH] D145885: [clang-tidy] Support readability-redundant-string-cstr.StringParameterFunctions option

2023-03-13 Thread Piotr Zegar via Phabricator via cfe-commits
PiotrZSL accepted this revision. PiotrZSL added a comment. This revision is now accepted and ready to land. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145885/new/ https://reviews.llvm.org/D145885 ___

[PATCH] D145883: [Flang][RISCV] Emit target features for RISC-V

2023-03-13 Thread Andrzej Warzynski via Phabricator via cfe-commits
awarzynski added inline comments. Comment at: flang/test/Driver/target-features.f90:1 +! RUN: %flang --target=riscv64-linux-gnu --target=riscv64 -c %s -### 2>&1 \ +! RUN: | FileCheck %s -check-prefix=CHECK-RV64 jrtc27 wrote: > awarzynski wrote: > > What happens i

[PATCH] D145883: [Flang][RISCV] Emit target features for RISC-V

2023-03-13 Thread Jessica Clarke via Phabricator via cfe-commits
jrtc27 added inline comments. Comment at: flang/test/Driver/target-features.f90:1 +! RUN: %flang --target=riscv64-linux-gnu --target=riscv64 -c %s -### 2>&1 \ +! RUN: | FileCheck %s -check-prefix=CHECK-RV64 awarzynski wrote: > jrtc27 wrote: > > awarzynski wrote:

[clang] e264fe8 - [doc] [Modules] Document how to implement ABI compatible code in module units

2023-03-13 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2023-03-13T16:44:10+08:00 New Revision: e264fe89e37fc0b12e18d72ed98056cea1a9eba6 URL: https://github.com/llvm/llvm-project/commit/e264fe89e37fc0b12e18d72ed98056cea1a9eba6 DIFF: https://github.com/llvm/llvm-project/commit/e264fe89e37fc0b12e18d72ed98056cea1a9eba6.diff LO

[PATCH] D145883: [Flang][RISCV] Emit target features for RISC-V

2023-03-13 Thread Shao-Ce SUN via Phabricator via cfe-commits
sunshaoce updated this revision to Diff 504548. sunshaoce added a comment. Based on everyone's comments, I merged the test into `target-cpu-features.f90` and only kept the generic `-target-feature`. At the same time, I removed the `switch (TC.getArch())` and passed the test on x86 and RISC-V 64.

[PATCH] D145813: [clang-format] Respect Cpp11BraceListStyle when aligning array of structures

2023-03-13 Thread Hoe Hao Cheng via Phabricator via cfe-commits
hch12907 added inline comments. Comment at: clang/unittests/Format/FormatTest.cpp:20273 + Style.ColumnLimit = 20; + EXPECT_EQ( + "demo = std::array<\n" MyDeveloperDay wrote: > any reason you didn't use verifyFormat here? No particular reason - I simply cop

[PATCH] D142587: [clang-tidy] Improved too-small-loop-variable with bit-field support

2023-03-13 Thread Henric Karlsson via Phabricator via cfe-commits
Henric added a comment. Hi With this patch, the following code gives me a warning that I don't think is intentional. typedef struct S { int x:4; } S; void foo(S s) { for (int i=10; i > s.x; --i) ; } loop_var.c:6:22: warning: loop variable has narrower type 'int:4' than i

[PATCH] D145906: [clang-tidy] Correctly handle evaluation order of designated initializers.

2023-03-13 Thread Martin Böhme via Phabricator via cfe-commits
mboehme created this revision. Herald added subscribers: PiotrZSL, carlosgalvezp, xazax.hun. Herald added a reviewer: njames93. Herald added a project: All. mboehme requested review of this revision. Herald added a project: clang-tools-extra. Herald added a subscriber: cfe-commits. As designated i

[PATCH] D145505: [AArch64][SVE] Add svboolx2_t and svboolx4_t tuple types

2023-03-13 Thread Caroline via Phabricator via cfe-commits
CarolineConcatto accepted this revision. CarolineConcatto added a comment. This revision is now accepted and ready to land. Thank you Matt. It LGTM! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145505/new/ https://reviews.llvm.org/D145505 ___

[PATCH] D142587: [clang-tidy] Improved too-small-loop-variable with bit-field support

2023-03-13 Thread Piotr Zegar via Phabricator via cfe-commits
PiotrZSL added a comment. Thank you for information, I will look into this Indeed test for this scenario is missing. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D142587/new/ https://reviews.llvm.org/D142587 ___

[PATCH] D145916: [clangd] Remove IWYU handling code that is used only for the old unused-include feature.

2023-03-13 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: kadircet. Herald added a subscriber: arphaman. Herald added a project: All. hokein requested review of this revision. Herald added subscribers: MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. The old implementation has been

[PATCH] D145917: [clangd] Remove the IncludeStructure::isSelfContained API.

2023-03-13 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: kadircet. Herald added a subscriber: arphaman. Herald added a project: All. hokein requested review of this revision. Herald added subscribers: MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. This API was merely used in the

[PATCH] D145815: [Flang][Driver] Add support for fopenmp-is-device and fembed-offload-object to Flang ToolChain

2023-03-13 Thread Sergio Afonso via Phabricator via cfe-commits
skatrak added inline comments. Comment at: flang/test/Driver/omp-frontend-forwarding.f90:15 +! CHECK: "{{[^"]*}}flang-new" "-fc1" "-triple" "amdgcn-amd-amdhsa" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-device" {{.*}}.f90" +! CHECK: "{{[^"]*}}clang-offload-packager" {{.*}} "--image=

[PATCH] D145869: [clang][ExtractAPI] Add multiple file support to --extract-api-ignores

2023-03-13 Thread Daniel Grumberg via Phabricator via cfe-commits
dang added inline comments. Comment at: clang/test/ExtractAPI/ignored-symbols-multifile.c:34 +//--- ignores-list1 +IGNORED_FILE1_1 +IGNORED_FILE1_2 This test doesn't check the symbol name sorting behavior across multiple files, which is crucial `APIIgnoresList::

[PATCH] D145069: [analyzer][NFC] Split the no state change logic and bug report suppression into two visitors

2023-03-13 Thread Kristóf Umann via Phabricator via cfe-commits
Szelethus added inline comments. Comment at: clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp:449 // No diagnostic if region was modified inside the frame. if (!CallExitLoc || isModifiedInFrame(N)) return nullptr; We also lost this, unfortunately,

[PATCH] D144453: [clangd] Fix a bug in TweakTest::decorate()

2023-03-13 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. Good catch, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D144453/new/ https://reviews.llvm.org/D144453

[PATCH] D145883: [Flang][RISCV] Emit target features for RISC-V

2023-03-13 Thread Andrzej Warzynski via Phabricator via cfe-commits
awarzynski added a comment. Herald added a subscriber: jobnoorman. > Fix the issue of .o file generated by Flang with Flags info is 0x0 under > RISC-V. TBH, I don't see how this is addressed in this patch. If that's something that this patch is intending to fix, then there should be a regressio

[PATCH] D145883: [Flang][RISCV] Emit target features for RISC-V

2023-03-13 Thread Kiran Chandramohan via Phabricator via cfe-commits
kiranchandramohan added inline comments. Comment at: clang/lib/Driver/ToolChains/Flang.cpp:112-114 + case llvm::Triple::riscv64: +getTargetFeatures(D, Triple, Args, CmdArgs, /*ForAs*/ false); +break; jrtc27 wrote: > mnadeem wrote: > > identical code, cou

[PATCH] D145919: [libc++] Add missing include in exception_ptr.h

2023-03-13 Thread Hans Wennborg via Phabricator via cfe-commits
hans created this revision. hans added a reviewer: philnik. hans added a project: libc++. Herald added a project: All. hans requested review of this revision. Herald added a subscriber: libcxx-commits. Herald added a reviewer: libc++. Windows builds were failing due to missing include for std::add

[PATCH] D145868: [clang][ASTImporter] Fix import of anonymous structures

2023-03-13 Thread Vince Bridgers via Phabricator via cfe-commits
vabridgers added a comment. @balazske and I discussed, he will be commandeering this patch to improve. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145868/new/ https://reviews.llvm.org/D145868 ___ cfe-c

[PATCH] D145921: [clangd] Add missing unittests to build graph

2023-03-13 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet created this revision. kadircet added reviewers: sammccall, hokein. Herald added a subscriber: arphaman. Herald added a project: All. kadircet requested review of this revision. Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. Also

[PATCH] D145922: [clangd] Include SpecialMembersTests.cpp to the unittest.

2023-03-13 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: kadircet, arphaman. Herald added a project: All. hokein requested review of this revision. Herald added subscribers: MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. This file was missing

[PATCH] D144878: __builtin_FILE_NAME()

2023-03-13 Thread Ilya Karapsin via Phabricator via cfe-commits
karapsinie updated this revision to Diff 504577. karapsinie marked an inline comment as done. karapsinie added a comment. Fulfilled the wishes of cor3ntin CHANGES SINCE LAST ACTION https://reviews.llvm.org/D144878/new/ https://reviews.llvm.org/D144878 Files: clang/include/clang/AST/Expr.h

[PATCH] D145922: [clangd] Include SpecialMembersTests.cpp to the unittest.

2023-03-13 Thread Haojian Wu via Phabricator via cfe-commits
hokein abandoned this revision. hokein added a comment. I didn't notice https://reviews.llvm.org/D145921, let's deprecate this one. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145922/new/ https://reviews.llvm.org/D145922

[PATCH] D145921: [clangd] Add missing unittests to build graph

2023-03-13 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tools-extra/clangd/unittests/tweaks/SpecialMembersTests.cpp:21 EXPECT_UNAVAILABLE("struct S { ^ };"); - EXPECT_UNAVAILABLE("union ^U {};"); + EXPECT_AVAILABLE("union ^U {};"); EXPECT_AVAILABLE("struct ^S { S(const S&); S(S&&

[PATCH] D145869: [clang][ExtractAPI] Add multiple file support to --extract-api-ignores

2023-03-13 Thread Ankur Saini via Phabricator via cfe-commits
Arsenic updated this revision to Diff 504590. Arsenic added a comment. Update clang/test/ExtractAPI/ignored-symbols-multifile.c : Shuffle the order of ignored symbols in test to check the sorting behaviour of APIIgnoresList Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION http

[PATCH] D145505: [AArch64][SVE] Add svboolx2_t and svboolx4_t tuple types

2023-03-13 Thread Matt Devereau via Phabricator via cfe-commits
MattDevereau updated this revision to Diff 504588. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145505/new/ https://reviews.llvm.org/D145505 Files: clang/include/clang/Basic/AArch64SVEACLETypes.def clang/lib/AST/ASTContext.cpp clang/lib/AST/T

[PATCH] D145815: [Flang][Driver] Add support for fopenmp-is-device and fembed-offload-object to Flang ToolChain

2023-03-13 Thread Andrew Gozillon via Phabricator via cfe-commits
agozillon updated this revision to Diff 504592. agozillon added a comment. - [Flang][Driver] Try to fix failing omp-frontend-forwarding.f90 test Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145815/new/ https://reviews.llvm.org/D145815 Files: cl

[PATCH] D145869: [clang][ExtractAPI] Add multiple file support to --extract-api-ignores

2023-03-13 Thread Daniel Grumberg via Phabricator via cfe-commits
dang added inline comments. Comment at: clang/test/ExtractAPI/ignored-symbols-multifile.c:27 + +// CHECK-NOT: IGNORED_1_FILE3 +// CHECK-NOT: IGNORED_7_FILE3 Should this not be a 6? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://revie

[PATCH] D145869: [clang][ExtractAPI] Add multiple file support to --extract-api-ignores

2023-03-13 Thread Daniel Grumberg via Phabricator via cfe-commits
dang accepted this revision. dang added a comment. This revision is now accepted and ready to land. LGTM once you fix the test Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145869/new/ https://reviews.llvm.org/D145869 _

[PATCH] D145916: [clangd] Remove IWYU handling code that is used only for the old unused-include feature.

2023-03-13 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGbe39daea846e: [clangd] Remove IWYU handling code that is used only for the old unused-include… (authored by hokein). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm

[clang-tools-extra] be39dae - [clangd] Remove IWYU handling code that is used only for the old unused-include feature.

2023-03-13 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2023-03-13T12:34:34+01:00 New Revision: be39daea846e6b5d43a8ee0c387feb0a556ff386 URL: https://github.com/llvm/llvm-project/commit/be39daea846e6b5d43a8ee0c387feb0a556ff386 DIFF: https://github.com/llvm/llvm-project/commit/be39daea846e6b5d43a8ee0c387feb0a556ff386.diff LO

[PATCH] D145869: [clang][ExtractAPI] Add multiple file support to --extract-api-ignores

2023-03-13 Thread Ankur Saini via Phabricator via cfe-commits
Arsenic updated this revision to Diff 504594. Arsenic added a comment. fix test Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145869/new/ https://reviews.llvm.org/D145869 Files: clang/include/clang/Driver/Options.td clang/include/clang/Extract

[clang-tools-extra] fd299a7 - [clangd] Remove the IncludeStructure::isSelfContained API.

2023-03-13 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2023-03-13T12:37:38+01:00 New Revision: fd299a7880ae80911001590242e2cbdb55f24a37 URL: https://github.com/llvm/llvm-project/commit/fd299a7880ae80911001590242e2cbdb55f24a37 DIFF: https://github.com/llvm/llvm-project/commit/fd299a7880ae80911001590242e2cbdb55f24a37.diff LO

[PATCH] D145917: [clangd] Remove the IncludeStructure::isSelfContained API.

2023-03-13 Thread Haojian Wu via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGfd299a7880ae: [clangd] Remove the IncludeStructure::isSelfContained API. (authored by hokein). Repository: rG LLVM Github Monorepo CHANGES SINCE

[PATCH] D127184: [clangd] Add to header map

2023-03-13 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added a comment. we can also handle them through the stdlib symbol mappings, see https://github.com/llvm/llvm-project/issues/61373 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127184/new/ https://reviews.llvm.org/D127184 ___

[PATCH] D145921: [clangd] Add missing unittests to build graph

2023-03-13 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 504597. kadircet marked an inline comment as done. kadircet added a comment. - Disable special members tweaks on unions Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145921/new/ https://reviews.llvm.org/D14592

[PATCH] D145921: [clangd] Add missing unittests to build graph

2023-03-13 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet marked an inline comment as done. kadircet added inline comments. Comment at: clang-tools-extra/clangd/unittests/tweaks/SpecialMembersTests.cpp:21 EXPECT_UNAVAILABLE("struct S { ^ };"); - EXPECT_UNAVAILABLE("union ^U {};"); + EXPECT_AVAILABLE("union ^U {};"); EXP

[PATCH] D145868: [clang][ASTImporter] Fix import of anonymous structures

2023-03-13 Thread Balázs Kéri via Phabricator via cfe-commits
balazske commandeered this revision. balazske edited reviewers, added: vabridgers; removed: balazske. balazske added a comment. Herald added subscribers: steakhal, Szelethus, dkrupp. My opinion is that we can not omit importing the "underlying type". The `TypedefType` has the type of the declarat

[PATCH] D145921: [clangd] Add missing unittests to build graph

2023-03-13 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. doh, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145921/new/ https://reviews.llvm.org/D145921 _

[PATCH] D143436: [clangd] Move standard options adaptor to CommandMangler

2023-03-13 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet accepted this revision. kadircet added a comment. This revision is now accepted and ready to land. thanks, lgtm! Comment at: clang-tools-extra/clangd/CompileCommands.cpp:199 + // use/change working directory, which ExpandResponseFiles doesn't). + FS = llvm::vfs::getR

[clang-tools-extra] e26dad0 - [clangd] Add missing unittests to build graph

2023-03-13 Thread Kadir Cetinkaya via cfe-commits
Author: Kadir Cetinkaya Date: 2023-03-13T13:06:31+01:00 New Revision: e26dad0a661e055076002d0de4ceb713b8ca6917 URL: https://github.com/llvm/llvm-project/commit/e26dad0a661e055076002d0de4ceb713b8ca6917 DIFF: https://github.com/llvm/llvm-project/commit/e26dad0a661e055076002d0de4ceb713b8ca6917.dif

[PATCH] D145921: [clangd] Add missing unittests to build graph

2023-03-13 Thread Kadir Cetinkaya via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGe26dad0a661e: [clangd] Add missing unittests to build graph (authored by kadircet). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D143984: [DebugMetadata] Simplify handling subprogram's retainedNodes field. NFCI (1/7)

2023-03-13 Thread Kristina Bessonova via Phabricator via cfe-commits
krisb updated this revision to Diff 504602. krisb added a comment. Rebase. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D143984/new/ https://reviews.llvm.org/D143984 Files: clang/test/CodeGen/attr-btf_tag-disubprogram-callsite.c clang/test/Cod

[PATCH] D144004: [DebugMetadata][DwarfDebug] Fix DWARF emisson of function-local imported entities (3/7)

2023-03-13 Thread Kristina Bessonova via Phabricator via cfe-commits
krisb updated this revision to Diff 504605. krisb added a comment. Rebase. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D144004/new/ https://reviews.llvm.org/D144004 Files: clang/test/CodeGenCXX/debug-info-namespace.cpp llvm/include/llvm/IR/DI

[PATCH] D144006: [DebugMetadata][DwarfDebug] Support function-local types in lexical block scopes (5/7)

2023-03-13 Thread Kristina Bessonova via Phabricator via cfe-commits
krisb marked 2 inline comments as done. krisb added inline comments. Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:698 + // an inlined function: if a local variable has a templated type with + // a function-local type as a template parameter. See PR55680 for deta

[PATCH] D144006: [DebugMetadata][DwarfDebug] Support function-local types in lexical block scopes (5/7)

2023-03-13 Thread Kristina Bessonova via Phabricator via cfe-commits
krisb updated this revision to Diff 504608. krisb marked an inline comment as done. krisb added a comment. Apply review comments and rebase. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D144006/new/ https://reviews.llvm.org/D144006 Files: clang/

[PATCH] D145848: [Driver] Correct -f(no-)xray-function-index behavior

2023-03-13 Thread Oleksii Lozovskyi via Phabricator via cfe-commits
ilammy updated this revision to Diff 504609. ilammy added a comment. Addressed feedback by @MaskRay. Thanks! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145848/new/ https://reviews.llvm.org/D145848 Files: clang/include/clang/Driver/Options.td clang/test/CodeGen/xray-function-inde

[clang] 58825d2 - [clang][ExtractAPI] Add multiple file support to --extract-api-ignores

2023-03-13 Thread via cfe-commits
Author: Ankur Date: 2023-03-13T18:05:16+05:30 New Revision: 58825d2cf947d0b4fb6590c17212c388cd3ff5cf URL: https://github.com/llvm/llvm-project/commit/58825d2cf947d0b4fb6590c17212c388cd3ff5cf DIFF: https://github.com/llvm/llvm-project/commit/58825d2cf947d0b4fb6590c17212c388cd3ff5cf.diff LOG: [c

[PATCH] D145869: [clang][ExtractAPI] Add multiple file support to --extract-api-ignores

2023-03-13 Thread Ankur Saini via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG58825d2cf947: [clang][ExtractAPI] Add multiple file support to --extract-api-ignores (authored by Arsenic). Repository: rG LLVM Github Monorepo C

[PATCH] D145852: [Clang][AST] Fix __has_unique_object_representations computation for unnamed bitfields.

2023-03-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/lib/AST/ASTContext.cpp:2817 +// unique representation. +if (Field->isUnnamedBitfield() && BitfieldSize > 0) + return std::nullopt; I think the check for a non-zero bit-field width might not be co

[PATCH] D145861: [clang][Interp] Ignore more non-VarDecl declarations

2023-03-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/lib/AST/Interp/ByteCodeStmtGen.cpp:224 for (auto *D : DS->decls()) { -if (isa(D)) +if (isa(D)) continue; What about other kinds of declarations, such as typedefs or functions? ``` typedef in

[PATCH] D141907: [CMake] Ensure `CLANG_RESOURCE_DIR` is respected

2023-03-13 Thread Junchang Liu via Phabricator via cfe-commits
paperchalice added a comment. Ping. Comment at: lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp:56 + const std::string clang_resource_path = + clang::driver::Driver::GetResourcesPath("bin/lldb", CLANG_RESOURCE_DIR); Should be "${CMAKE_INSTALL_B

[PATCH] D145883: [Flang][RISCV] Emit target features for RISC-V

2023-03-13 Thread Shao-Ce SUN via Phabricator via cfe-commits
sunshaoce updated this revision to Diff 504616. sunshaoce added a comment. Add test Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145883/new/ https://reviews.llvm.org/D145883 Files: clang/lib/Driver/ToolChains/Flang.cpp flang/test/Driver/code-

[PATCH] D144709: [clang-format] Improve QualifierAlignment

2023-03-13 Thread Alexander Hederstaf via Phabricator via cfe-commits
AlexanderHederstaf added a comment. What is the next step in the process? Anything I should do? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D144709/new/ https://reviews.llvm.org/D144709 ___ cfe-commits

[PATCH] D144190: [AIX][clang] Storage Locations for Constant Pointers

2023-03-13 Thread Qiongsi Wu via Phabricator via cfe-commits
qiongsiwu1 added a comment. Ping for review. Thank you! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D144190/new/ https://reviews.llvm.org/D144190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] 34de7da - [clangd] Move standard options adaptor to CommandMangler

2023-03-13 Thread Dmitry Polukhin via cfe-commits
Author: Dmitry Polukhin Date: 2023-03-13T06:08:22-07:00 New Revision: 34de7da6246cdfa6ff6f3d3c514583cddc0a10ec URL: https://github.com/llvm/llvm-project/commit/34de7da6246cdfa6ff6f3d3c514583cddc0a10ec DIFF: https://github.com/llvm/llvm-project/commit/34de7da6246cdfa6ff6f3d3c514583cddc0a10ec.dif

[PATCH] D143436: [clangd] Move standard options adaptor to CommandMangler

2023-03-13 Thread Dmitry Polukhin via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG34de7da6246c: [clangd] Move standard options adaptor to CommandMangler (authored by DmitryPolukhin). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D143436/new

[PATCH] D145842: [clang][Sema] Avoid duplicate diagnostics for unreachable fallthrough attribute

2023-03-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/include/clang/Analysis/Analyses/ReachableCode.h:65 + Callback &CB, + const bool UnreachableFallThroughDiagIsEnabled); }} // end namespace clang::reachable_code

[PATCH] D145886: [C++2x][Modules] Amend module purview constant linkage [P2788R0].

2023-03-13 Thread Iain Sandoe via Phabricator via cfe-commits
iains created this revision. Herald added a project: All. iains added a reviewer: ChuanqiXu. iains updated this revision to Diff 504524. iains added a comment. iains updated this revision to Diff 504591. iains added a reviewer: rsmith. iains published this revision for review. Herald added a projec

[PATCH] D144878: __builtin_FILE_NAME()

2023-03-13 Thread Ilya Karapsin via Phabricator via cfe-commits
karapsinie updated this revision to Diff 504625. karapsinie marked 3 inline comments as done. karapsinie added a comment. Fulfilled the wishes of cor3ntin №2 CHANGES SINCE LAST ACTION https://reviews.llvm.org/D144878/new/ https://reviews.llvm.org/D144878 Files: clang/include/clang/AST/Expr

[PATCH] D145284: WIP [clang] adds capabilities for SARIF to be written to file

2023-03-13 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a subscriber: jansvoboda11. erichkeane added a comment. Patch topic needs "WIP" out of it I think? Just some WIP comments, I don't believe I'd be the one to approve this anyway. Comment at: clang/include/clang/Basic/DiagnosticOptions.h:109 + /// The file to

[PATCH] D145659: [clang] Add AVR specific inline assembly escaped characters

2023-03-13 Thread Ben Shi via Phabricator via cfe-commits
benshi001 updated this revision to Diff 504631. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145659/new/ https://reviews.llvm.org/D145659 Files: clang/lib/Basic/Targets/AVR.cpp clang/lib/Basic/Targets/AVR.h clang/test/CodeGen/avr/avr-inline-asm-constraints.c Index: clang/test/Co

[PATCH] D145659: [clang] Add AVR specific inline assembly escaped characters

2023-03-13 Thread Ben Shi via Phabricator via cfe-commits
benshi001 marked an inline comment as done. benshi001 added inline comments. Comment at: clang/lib/Basic/Targets/AVR.cpp:433 +AVRTargetInfo::handleAsmEscapedChar(char EscChar) const { + char C; + switch (EscChar) { jacquesguan wrote: > redundant variable? Remov

[PATCH] D145227: [LLVM][OHOS] Clang toolchain and targets

2023-03-13 Thread Pavel Kosov via Phabricator via cfe-commits
kpdev42 updated this revision to Diff 504632. kpdev42 marked an inline comment as done. kpdev42 added a comment. Address review comments and rebase Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145227/new/ https://reviews.llvm.org/D145227 Files:

[clang-tools-extra] 2a84c53 - Revert "[clangd] Move standard options adaptor to CommandMangler"

2023-03-13 Thread Dmitry Polukhin via cfe-commits
Author: Dmitry Polukhin Date: 2023-03-13T07:00:56-07:00 New Revision: 2a84c53ccdc015a7f53a144aa4f7c0dddf839604 URL: https://github.com/llvm/llvm-project/commit/2a84c53ccdc015a7f53a144aa4f7c0dddf839604 DIFF: https://github.com/llvm/llvm-project/commit/2a84c53ccdc015a7f53a144aa4f7c0dddf839604.dif

[PATCH] D143436: [clangd] Move standard options adaptor to CommandMangler

2023-03-13 Thread Dmitry Polukhin via Phabricator via cfe-commits
DmitryPolukhin added a comment. Had to revert this diff temporary due to broken ARM builds. It seems that X86 targets are disabled for that bots so tests are not passing. I'll fix upload new version for review. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.

[PATCH] D145491: [clang] Replace Member Expressions During Instantiation If Necessary

2023-03-13 Thread Erich Keane via Phabricator via cfe-commits
erichkeane accepted this revision. erichkeane added a comment. This revision is now accepted and ready to land. Thanks for the ping. I don't have any better ideas/other thoughts, so LGTM. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145491/new/ https://reviews.llvm.org/D145491 __

[PATCH] D145765: Add __builtin_set_flt_rounds

2023-03-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Thanks for the additional tests! Can you also add a release note to `clang/docs/ReleaseNotes.rst` and document the new builtin in `clang\docs\LanguageExtensions.rst`? Comment at: clang/test/Sema/builtin_set_flt_rounds.c:1-11 +// RUN: %clang_cc1

[PATCH] D145851: [Clang][Sema] Fix incorrect deletion of default constructors for some unions

2023-03-13 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. Generally looks good to me. Do we do anything special if there are multiple initializers? Also, can we have a codegen test that validates that we actually construct it correctly (and perhaps a constexpr test for the same!)? Comment at: clang/lib/

[clang] 4d55a0b - Fix include order in CXType.cpp

2023-03-13 Thread Aaron Ballman via cfe-commits
Author: Collin Baker Date: 2023-03-13T10:11:05-04:00 New Revision: 4d55a0b512a17dfaa2461b8803d37b79f6c9691d URL: https://github.com/llvm/llvm-project/commit/4d55a0b512a17dfaa2461b8803d37b79f6c9691d DIFF: https://github.com/llvm/llvm-project/commit/4d55a0b512a17dfaa2461b8803d37b79f6c9691d.diff

[PATCH] D130303: Fix include order in CXType.cpp

2023-03-13 Thread Aaron Ballman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG4d55a0b512a1: Fix include order in CXType.cpp (authored by collinbaker, committed by aaron.ballman). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130303/new

[clang] 3951c28 - [clang] Replace Member Expressions During Instantiation If Necessary

2023-03-13 Thread Liming Liu via cfe-commits
Author: Liming Liu Date: 2023-03-13T22:22:06+08:00 New Revision: 3951c28b37ff67c87da59df961c4af19818c24c2 URL: https://github.com/llvm/llvm-project/commit/3951c28b37ff67c87da59df961c4af19818c24c2 DIFF: https://github.com/llvm/llvm-project/commit/3951c28b37ff67c87da59df961c4af19818c24c2.diff LO

[PATCH] D145491: [clang] Replace Member Expressions During Instantiation If Necessary

2023-03-13 Thread Liming Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG3951c28b37ff: [clang] Replace Member Expressions During Instantiation If Necessary (authored by lime). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145491/n

[PATCH] D145919: [libc++] Add missing include in exception_ptr.h

2023-03-13 Thread Hans Wennborg via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGc341d5030503: [libc++] Add missing include in exception_ptr.h (authored by hans). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D145227: [LLVM][OHOS] Clang toolchain and targets

2023-03-13 Thread Pavel Kosov via Phabricator via cfe-commits
kpdev42 updated this revision to Diff 504647. kpdev42 added a comment. Fix test case Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145227/new/ https://reviews.llvm.org/D145227 Files: clang/include/clang/Basic/Attr.td clang/include/clang/Driver

[PATCH] D145886: [C++2x][Modules] Amend module purview constant linkage [P2788R0].

2023-03-13 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu accepted this revision. ChuanqiXu added a comment. This revision is now accepted and ready to land. LGTM. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145886/new/ https://reviews.llvm.org/D145886

[PATCH] D142692: [clang] Store the template param list of an explicit variable template specialization

2023-03-13 Thread Erich Keane via Phabricator via cfe-commits
erichkeane accepted this revision. erichkeane added a comment. This revision is now accepted and ready to land. sorry for the delay, just started unburying myself from the 16.0 release process. Its unfortunate we don't have a great way to test this, but I can see the value of having it anyway i

[PATCH] D145793: [clang][AST] Improve diagnostic for `nullptr` constexpr function pointer call

2023-03-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. LGTM, though please add a release note for the fix. If you need someone to land on your behalf, let us know what name and email address you'd like used for patch attribution. Comment at: clang/lib/AST/ExprCo

[PATCH] D144878: __builtin_FILE_NAME()

2023-03-13 Thread Ilya Karapsin via Phabricator via cfe-commits
karapsinie updated this revision to Diff 504648. karapsinie added a comment. Updated a release note and documentation. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D144878/new/ https://reviews.llvm.org/D144878 Files: clang/docs/LanguageExtensions.rst clang/docs/ReleaseNotes.rst c

[PATCH] D145815: [Flang][Driver] Add support for fopenmp-is-device and fembed-offload-object to Flang ToolChain

2023-03-13 Thread Andrew Gozillon via Phabricator via cfe-commits
agozillon added inline comments. Comment at: flang/test/Driver/omp-frontend-forwarding.f90:15 +! CHECK: "{{[^"]*}}flang-new" "-fc1" "-triple" "amdgcn-amd-amdhsa" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-device" {{.*}}.f90" +! CHECK: "{{[^"]*}}clang-offload-packager" {{.*}} "--imag

[PATCH] D145883: [Flang][RISCV] Emit target features for RISC-V

2023-03-13 Thread Andrzej Warzynski via Phabricator via cfe-commits
awarzynski added inline comments. Comment at: flang/test/Driver/code-gen-rv64.f90:12 + +! CHECK: Flags: 0x5, RVC, double-float ABI +end program For those of us less familiar with RISC-V - could you explain what's significant about this line? For example, [[ htt

[PATCH] D145834: typo statment to statement

2023-03-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! Do you need someone to land this on your behalf? If so, what name and email address would you like used for patch attribution? Repository: rG LLVM Github Monorepo CHANG

[PATCH] D145941: [Clang] Always use -zdefs when linking AMDGPU images

2023-03-13 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 created this revision. jhuber6 added reviewers: jdoerfert, JonChesterfield, arsenm, yaxunl, MaskRay. Herald added subscribers: kosarev, kerbowa, tpr, dstuttard, jvesely, kzhuravl. Herald added a project: All. jhuber6 requested review of this revision. Herald added subscribers: cfe-commits,

[PATCH] D145941: [Clang] Always use -zdefs when linking AMDGPU images

2023-03-13 Thread Jon Chesterfield via Phabricator via cfe-commits
JonChesterfield added a reviewer: AMDGPU. JonChesterfield added a comment. Adding the amdgpu reviewer group. This change might be contentious - we currently treat various broken code as calls to trap on the grounds that those functions might not be executed. By analogy, functions that call undef

[PATCH] D145227: [LLVM][OHOS] Clang toolchain and targets

2023-03-13 Thread David Spickett via Phabricator via cfe-commits
DavidSpickett accepted this revision. DavidSpickett added a comment. This revision is now accepted and ready to land. Looks good in general. If there are some incorrect details you'll find them later. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D1

[PATCH] D145944: [Clang] Add --version and --help messages to amdgpu/nvptx-arch

2023-03-13 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 created this revision. jhuber6 added reviewers: jdoerfert, tianshilei1992, JonChesterfield, ye-luo. Herald added subscribers: kosarev, mattd, gchakrabarti, asavonic, kerbowa, tpr, dstuttard, yaxunl, jvesely, kzhuravl. Herald added a project: All. jhuber6 requested review of this revision.

[PATCH] D145944: [Clang] Add --version and --help messages to amdgpu/nvptx-arch

2023-03-13 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 updated this revision to Diff 504670. jhuber6 added a comment. Add help print. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145944/new/ https://reviews.llvm.org/D145944 Files: clang/tools/amdgpu-arch/AMDGPUArch.cpp clang/tools/amdgpu-

[PATCH] D145883: [Flang][RISCV] Emit target features for RISC-V

2023-03-13 Thread Shao-Ce SUN via Phabricator via cfe-commits
sunshaoce updated this revision to Diff 504672. sunshaoce marked an inline comment as done. sunshaoce added a comment. Address @awarzynski's comment. Thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145883/new/ https://reviews.llvm.org/D145883

[PATCH] D145941: [Clang] Always use -zdefs when linking AMDGPU images

2023-03-13 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 added a comment. This can be turned off with `-zundefs`. So we could instruct people to use `-Wl,-zundefs` or `-Xoffload-linker -zundefs` if the old behavior is desired. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145941/new/ https://rev

[PATCH] D145401: [AMDGPU] Reserve extra SGPR blocks wth XNACK "any" TID Setting

2023-03-13 Thread Austin Kerbow via Phabricator via cfe-commits
kerbowa added a comment. Added AMDGPU group to reviewers. Is there any objection to changing the defaults for subtargets that support XNACK to always reserve extra SGPRs unless -xnack is explicitly requested? This would impact graphics as well. The old defaults were doing the opposite and only

  1   2   3   4   >