[PATCH] D131646: [clang][dataflow] Restructure loops to call widen on back edges

2022-08-11 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua updated this revision to Diff 451926. li.zhe.hua added a comment. Fix incorrect assumption that back edge blocks have an empty body. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131646/new/ https://reviews.llvm.org/D131646 Files:

[PATCH] D129160: libclang.so: Make SONAME the same as LLVM version

2022-08-11 Thread H. Vetinari via Phabricator via cfe-commits
h-vetinari added a comment. In D129160#3716826 , @isuruf wrote: > Maybe this should be a cmake option that is off by default and I can turn it > for my builds? I proposed something along those lines in

[PATCH] D131464: [test] Make tests pass regardless of gnu++14/gnu++17 default

2022-08-11 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. Sorry, my previous main comment had been written before I introduced `LIT_CLANG_STD_GROUP` in `llvm/utils/lit/lit/llvm/config.py`. The multiple `%clang_cc1` approach actually looks like the following. Note the use of `%stdcxx_17-` to make the test future-proof. (It is

[PATCH] D131646: [clang][dataflow] Restructure loops to call widen on back edges

2022-08-11 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added inline comments. Comment at: clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp:168-169 +// back edge block. (That is, all paths from the entry block to the back edge +// block must go through `Block`.) It also means that there are only two +//

[PATCH] D131677: [clang][RISCV] Fix incorrect ABI lowering for inherited structs under hard-float ABIs

2022-08-11 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. Remove the WIP note from the end of the description? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131677/new/ https://reviews.llvm.org/D131677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D131677: [clang][RISCV] Fix incorrect ABI lowering for inherited structs under hard-float ABIs

2022-08-11 Thread Jessica Clarke via Phabricator via cfe-commits
jrtc27 added inline comments. Comment at: clang/lib/CodeGen/TargetInfo.cpp:10986 +bool Ret = detectFPCCEligibleStructHelper( +B.getType(), CurOff, Field1Ty, Field1Off, Field2Ty, Field2Off); +if (!Ret) With multiple inheritance this

[PATCH] D131528: [Clang] Restrict non fixed enum to a value outside the range of the enumeration values warning to context requiring a constant expression

2022-08-11 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik added a comment. In D131528#3715841 , @thakis wrote: > We're also still seeing the diag fire after this: > https://ci.chromium.org/p/chromium/builders/ci/ToTLinux > > (And we cleaned up our codebase back when it was still an error.) > > Our bots

[PATCH] D131704: [Clang] Tighten restrictions on enum out of range diagnostic

2022-08-11 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik created this revision. shafik added reviewers: erichkeane, aaron.ballman, thakis. Herald added a project: All. shafik requested review of this revision. In D131528 using `Info.EvalMode == EvalInfo::EM_ConstantExpression` is not strict enough to restrict

[PATCH] D131084: Add support for specifying the severity of a SARIF Result.

2022-08-11 Thread Vaibhav Yenamandra via Phabricator via cfe-commits
vaibhav.y marked an inline comment as not done. vaibhav.y added inline comments. Comment at: clang/include/clang/Basic/Sarif.h:157 +/// 1. https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html#_Toc34317648;>level property +enum class SarifResultLevel { Note,

[PATCH] D116203: [clang] adds unary type transformations as compiler built-ins

2022-08-11 Thread Christopher Di Bella via Phabricator via cfe-commits
cjdb added a comment. Thanks for patiently reviewing! I'll do the libc++ stuff and a pilot run in some code. Hopefully can get it merged tomorrow :-) Comment at: clang/lib/Parse/ParseDeclCXX.cpp:1149-1150 + default: +assert(false && "passed in an unhandled type

[PATCH] D129160: libclang.so: Make SONAME the same as LLVM version

2022-08-11 Thread Isuru Fernando via Phabricator via cfe-commits
isuruf added a comment. Maybe this should be a cmake option that is off by default and I can turn it for my builds? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129160/new/ https://reviews.llvm.org/D129160

[PATCH] D131701: [CodeGen][ObjC] Call synthesized copy constructor/assignment operator functions in getter/setter functions of non-trivial C struct properties

2022-08-11 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. There is another bug where an object isn't destructed when a non-trivial C struct property is set. I plan to send a patch that fixes the bug after this. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131701/new/

[PATCH] D131677: [clang][RISCV][WIP] Fix incorrect ABI lowering for inherited structs with hard-float ABIs

2022-08-11 Thread Alex Bradbury via Phabricator via cfe-commits
asb updated this revision to Diff 451915. asb added reviewers: kito-cheng, craig.topper, reames. asb added a comment. Herald added subscribers: frasercrmck, apazos, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, MaskRay, jrtc27, niosHD, sabuasal, johnrusso, rbar. Add

[PATCH] D130033: [HLSL] Add resource binding attribute for HLSL.

2022-08-11 Thread Xiang Li via Phabricator via cfe-commits
python3kgae added inline comments. Comment at: clang/include/clang/Basic/Attr.td:4022 + let LangOpts = [HLSL]; + let Args = [StringArgument<"Slot", 1>, StringArgument<"Space", 1>]; + let Documentation = [HLSLResourceBindingDocs]; aaron.ballman wrote: > Do you

[PATCH] D130033: [HLSL] Add resource binding attribute for HLSL.

2022-08-11 Thread Xiang Li via Phabricator via cfe-commits
python3kgae updated this revision to Diff 451917. python3kgae marked 14 inline comments as done. python3kgae added a comment. Remove optional flag for Slot. Update error messages and doc. Add test for empty resource attribute and space only resource attribute. Repository: rG LLVM Github

[clang] d17de54 - [clang][RISCV][test] Add test that shows incorrect ABI lowering

2022-08-11 Thread Alex Bradbury via cfe-commits
Author: Alex Bradbury Date: 2022-08-11T18:51:37+01:00 New Revision: d17de5479c6234f9e37fb4deca9e537bf8d3932e URL: https://github.com/llvm/llvm-project/commit/d17de5479c6234f9e37fb4deca9e537bf8d3932e DIFF: https://github.com/llvm/llvm-project/commit/d17de5479c6234f9e37fb4deca9e537bf8d3932e.diff

[PATCH] D131701: [CodeGen][ObjC] Call synthesized copy constructor/assignment operator functions in getter/setter functions of non-trivial C struct properties

2022-08-11 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak created this revision. ahatanak added a reviewer: rjmccall. ahatanak added a project: clang. Herald added a project: All. ahatanak requested review of this revision. This fixes a bug where the getter/setter functions were doing a trivial copy instead of calling the synthesized functions

[PATCH] D131194: [C++20] Fix crash-on-valid with consteval temporary construction through list initialization

2022-08-11 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/lib/CodeGen/CGExprConstant.cpp:1402 +RetType = CGM.getContext().getLValueReferenceType(RetType); + assert(!RetType.isNull() && "Not certain of the constant expression's type"); + efriedma wrote: > Not

[PATCH] D131194: [C++20] Fix crash-on-valid with consteval temporary construction through list initialization

2022-08-11 Thread Aaron Ballman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGb48fb85fe60b: Fix crash-on-valid with consteval temporary construction through list… (authored by aaron.ballman). Changed prior to commit: https://reviews.llvm.org/D131194?vs=450271=451913#toc

[clang] b48fb85 - Fix crash-on-valid with consteval temporary construction through list initialization

2022-08-11 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-08-11T13:44:24-04:00 New Revision: b48fb85fe60b339b31b0381dde481b284e0fb93e URL: https://github.com/llvm/llvm-project/commit/b48fb85fe60b339b31b0381dde481b284e0fb93e DIFF: https://github.com/llvm/llvm-project/commit/b48fb85fe60b339b31b0381dde481b284e0fb93e.diff

[PATCH] D131698: [Sema] Fix `ExtVectorElementExpr` tree transform for the `isArrow` case.

2022-08-11 Thread Michele Scandale via Phabricator via cfe-commits
michele.scandale updated this revision to Diff 451911. michele.scandale added a comment. Clang-format fixes Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131698/new/ https://reviews.llvm.org/D131698 Files: clang/lib/Sema/TreeTransform.h

[PATCH] D131698: [Sema] Fix `ExtVectorElementExpr` tree transform for the `isArrow` case.

2022-08-11 Thread Michele Scandale via Phabricator via cfe-commits
michele.scandale created this revision. michele.scandale added reviewers: rsmith, doug.gregor, rjmccall. Herald added a project: All. michele.scandale requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Make sure we propagate the value for

[PATCH] D131696: [clangd] Fix an inlay-hint crash on a broken designator.

2022-08-11 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: kadircet. Herald added subscribers: usaxena95, 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. Repository: rG LLVM

[PATCH] D131532: [Sema] Avoid isNullPointerConstant invocation

2022-08-11 Thread Justin Stitt via Phabricator via cfe-commits
justinstitt updated this revision to Diff 451902. justinstitt edited the summary of this revision. justinstitt added a comment. add more descriptive names, add more detail to revision summary. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D131298: [clang-doc] Read docstrings for record members

2022-08-11 Thread Paul Kirth 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 rG99baa10f8f01: [clang-doc] Read docstrings for record members (authored by brettw, committed by paulkirth). Repository: rG LLVM Github Monorepo

[clang-tools-extra] 99baa10 - [clang-doc] Read docstrings for record members

2022-08-11 Thread Paul Kirth via cfe-commits
Author: Brett Wilson Date: 2022-08-11T17:14:15Z New Revision: 99baa10f8f01f5c054d259182b24ae04ae57101d URL: https://github.com/llvm/llvm-project/commit/99baa10f8f01f5c054d259182b24ae04ae57101d DIFF: https://github.com/llvm/llvm-project/commit/99baa10f8f01f5c054d259182b24ae04ae57101d.diff LOG:

[PATCH] D131194: [C++20] Fix crash-on-valid with consteval temporary construction through list initialization

2022-08-11 Thread Eli Friedman via Phabricator via cfe-commits
efriedma accepted this revision as: efriedma. efriedma added a comment. This revision is now accepted and ready to land. LGTM Comment at: clang/lib/CodeGen/CGExprConstant.cpp:1402 +RetType = CGM.getContext().getLValueReferenceType(RetType); + assert(!RetType.isNull() &&

[PATCH] D129160: libclang.so: Make SONAME the same as LLVM version

2022-08-11 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. In D129160#3716016 , @isuruf wrote: > As a downstream packager of libclang, I really like the SONAME not changing > in libclang. It makes it possible for us to package things like qt that > depend on libclang, but not have to

[clang] dacbddf - [RISCV] Move isValidCPUName to RISCVTargetInfo. NFC

2022-08-11 Thread Craig Topper via cfe-commits
Author: Craig Topper Date: 2022-08-11T10:01:56-07:00 New Revision: dacbddf56205f90e33d39575fc9d8455458d851e URL: https://github.com/llvm/llvm-project/commit/dacbddf56205f90e33d39575fc9d8455458d851e DIFF: https://github.com/llvm/llvm-project/commit/dacbddf56205f90e33d39575fc9d8455458d851e.diff

[PATCH] D131645: [clang][dataflow] Allow user-provided lattices to provide a widen operator

2022-08-11 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. In D131645#3716508 , @li.zhe.hua wrote: > In D131645#3716464 , @xazax.hun > wrote: > >> probably you are already aware of most of this > > Actually, more likely than not I don't! I

[PATCH] D131307: [Clang] Allow downgrading to a warning the diagnostic for setting a non fixed enum to a value outside the range of the enumeration values

2022-08-11 Thread Alexander Yermolovich via Phabricator via cfe-commits
ayermolo added a comment. In D131307#3714629 , @shafik wrote: > In D131307#3713011 , @sberg wrote: > >> With this commit, >> >> $ cat test.cc >> #include "boost/numeric/conversion/cast.hpp" >> int main() {

[PATCH] D129231: [Builtins] Do not claim all libfuncs are readnone with trapping math.

2022-08-11 Thread Florian Hahn via Phabricator via cfe-commits
fhahn added a comment. In D129231#3716363 , @scanon wrote: >>> Looking at implementations of these functions, it looks like GNU libm >>> doesn't raise inexact, but the bionic libm does. I think I'm leaning >>> towards marking all of them as "fng" as

[PATCH] D131222: [OpenMP] Allow data members in interop init/use/destroy clauses

2022-08-11 Thread Mike Rice via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGdd4c838da30a: [OpenMP] Allow data members in interop init/use/destroy clauses (authored by mikerice). Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github

[clang] dd4c838 - [OpenMP] Allow data members in interop init/use/destroy clauses

2022-08-11 Thread Mike Rice via cfe-commits
Author: Mike Rice Date: 2022-08-11T09:39:12-07:00 New Revision: dd4c838da30ad4b6d5dc0f700df0a6629469f719 URL: https://github.com/llvm/llvm-project/commit/dd4c838da30ad4b6d5dc0f700df0a6629469f719 DIFF: https://github.com/llvm/llvm-project/commit/dd4c838da30ad4b6d5dc0f700df0a6629469f719.diff

[PATCH] D131645: [clang][dataflow] Allow user-provided lattices to provide a widen operator

2022-08-11 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua added a comment. In D131645#3716464 , @xazax.hun wrote: > probably you are already aware of most of this Actually, more likely than not I don't! I don't have a strong background in PL (or, really any background), so I'm really just learning

[PATCH] D131645: [clang][dataflow] Allow user-provided lattices to provide a widen operator

2022-08-11 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua updated this revision to Diff 451887. li.zhe.hua marked an inline comment as done. li.zhe.hua added a comment. Add FIXME Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131645/new/ https://reviews.llvm.org/D131645 Files:

[PATCH] D131298: [clang-doc] Read docstrings for record members

2022-08-11 Thread Brett Wilson via Phabricator via cfe-commits
brettw updated this revision to Diff 451882. brettw marked 2 inline comments as done. brettw added a comment. New patch up with requested changes. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131298/new/ https://reviews.llvm.org/D131298 Files:

[PATCH] D131590: Fixed page title for abseil-no-internal-dependencies check documentation

2022-08-11 Thread Nathan James via Phabricator via cfe-commits
njames93 added a comment. In D131590#3716358 , @vladimir.plyashkun wrote: > Sure it's up to you, it's my github > account , but i don't think it's linked to JetBrains... Which email address would you like me to

[PATCH] D131688: [clang][dataflow][NFC] Remove LatticeJoinEffect from framework interfaces

2022-08-11 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a comment. This revision is now accepted and ready to land. Herald added a subscriber: rnkovacs. Returning whether the lattice was changed can be a nice optimization when comparing lattice elements is expensive. On the other hand, it can be one

[PATCH] D131645: [clang][dataflow] Allow user-provided lattices to provide a widen operator

2022-08-11 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a comment. Very cool! Thanks for investing into fixing the soundness issues! A couple of ideas for the future (probably you are already aware of most of this, but open communication can help other members of the community to jump in): - Some

[PATCH] D131691: [clang][dataflow] Remove references of LatticeJoinEffect from dataflow

2022-08-11 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua created this revision. li.zhe.hua added a reviewer: ymandel. Herald added subscribers: martong, xazax.hun. Herald added a reviewer: NoQ. Herald added a project: All. li.zhe.hua requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. A

[PATCH] D131298: [clang-doc] Read docstrings for record members

2022-08-11 Thread Brett Wilson via Phabricator via cfe-commits
brettw added inline comments. Comment at: clang-tools-extra/unittests/clang-doc/SerializeTest.cpp:166 + ExpectedE.Members.emplace_back("int", "value", AccessSpecifier::AS_public); + //ExpectedE.Members.back().Description.push_back(MakeOneLineCommentInfo(" Some docs"));

[PATCH] D131688: [clang][dataflow][NFC] Remove LatticeJoinEffect from framework interfaces

2022-08-11 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua created this revision. li.zhe.hua added a reviewer: ymandel. Herald added subscribers: martong, xazax.hun. Herald added a reviewer: NoQ. Herald added a project: All. li.zhe.hua requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.

[PATCH] D131639: [OpenMP] Remove 'stdbool.h' from OpenMP header wrappers

2022-08-11 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 updated this revision to Diff 451875. jhuber6 added a comment. Changing bool usage to use `_Bool` if compiling for C so we don't need to include the extra header for this single declaration. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D131203: [HLSL] Initial codegen for SV_GroupIndex

2022-08-11 Thread Xiang Li via Phabricator via cfe-commits
python3kgae added inline comments. Comment at: clang/lib/CodeGen/CGHLSLRuntime.cpp:119 + auto *EntryTy = llvm::FunctionType::get(llvm::Type::getVoidTy(Ctx), false); + Function *EntryFn = + Function::Create(EntryTy, Function::ExternalLinkage, FD->getName(), );

[PATCH] D131469: [Clang] change default storing path of `-ftime-trace`

2022-08-11 Thread Whitney Tsang via Phabricator via cfe-commits
Whitney added inline comments. Comment at: clang/lib/Driver/Driver.cpp:4786 +const std::string::size_type size = arg.size(); +char *buffer = new char[size + 1]; +memcpy(buffer, arg.c_str(), size + 1); dongjunduo wrote: > Whitney wrote: >

[PATCH] D129231: [Builtins] Do not claim all libfuncs are readnone with trapping math.

2022-08-11 Thread Steve Canon via Phabricator via cfe-commits
scanon added a comment. In any event, from the standpoint of the C(23) language, these operations do not set inexact, so I believe that it is appropriate to optimize them as if they do not set inexact. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D129231: [Builtins] Do not claim all libfuncs are readnone with trapping math.

2022-08-11 Thread Steve Canon via Phabricator via cfe-commits
scanon added a comment. >> Looking at implementations of these functions, it looks like GNU libm >> doesn't raise inexact, but the bionic libm does. I think I'm leaning towards >> marking all of them as "fng" as it's the more cautious of the two. > > Hmm, bionic's behavior sounds a bit

[PATCH] D131678: hicpp-signed-bitwise - Return location of the operand (and not of the operator beginning)

2022-08-11 Thread Vladimir Plyashkun via Phabricator via cfe-commits
vladimir.plyashkun added inline comments. Comment at: clang-tools-extra/clang-tidy/hicpp/SignedBitwiseCheck.cpp:100 "%select{binary|unary}0 bitwise operator") - << IsUnary << SignedOperand->getSourceRange(); + << IsUnary << Location; }

[PATCH] D131590: Fixed page title for abseil-no-internal-dependencies check documentation

2022-08-11 Thread Vladimir Plyashkun via Phabricator via cfe-commits
vladimir.plyashkun added a comment. In D131590#3716317 , @njames93 wrote: > In D131590#3713824 , > @vladimir.plyashkun wrote: > >> In D131590#3713731 , @njames93 >>

[PATCH] D131685: [clang][AST] RecursiveASTVisitor should visit owned TagDecl of friend type.

2022-08-11 Thread Balázs Kéri via Phabricator via cfe-commits
balazske added reviewers: sammccall, martong, davrec. balazske added a comment. Herald added a subscriber: rnkovacs. I really do not know why parent of the node for the owned `TagDecl` node is the `FriendDecl` and not a `TypeLoc` node, but it is working. The code `struct A { friend struct Fr;

[PATCH] D131469: [Clang] change default storing path of `-ftime-trace`

2022-08-11 Thread dongjunduo via Phabricator via cfe-commits
dongjunduo updated this revision to Diff 451874. dongjunduo added a comment. format cc1_main.cpp Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131469/new/ https://reviews.llvm.org/D131469 Files: clang/lib/Driver/Driver.cpp

[PATCH] D131423: [clang] fix frontend crash when evaluating type trait

2022-08-11 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D131423#3714318 , @shafik wrote: > In D131423#3712083 , @inclyc wrote: > >> @aaron.ballman @shafik (Help wanted). These type traits will not cause >> clang to crash if current

[PATCH] D131590: Fixed page title for abseil-no-internal-dependencies check documentation

2022-08-11 Thread Nathan James via Phabricator via cfe-commits
njames93 added a comment. In D131590#3713824 , @vladimir.plyashkun wrote: > In D131590#3713731 , @njames93 > wrote: > >> Can this be backported as well. > > I guess someone needs to do it, because i haven't got

[PATCH] D131686: [clang-tidy] Add test to cert-dcl58-cpp.

2022-08-11 Thread Balázs Kéri via Phabricator via cfe-commits
balazske created this revision. Herald added subscribers: steakhal, martong, gamesh411, Szelethus, dkrupp, xazax.hun. Herald added a project: All. balazske requested review of this revision. Herald added a project: clang-tools-extra. Herald added a subscriber: cfe-commits. Add a test to

[PATCH] D131084: Add support for specifying the severity of a SARIF Result.

2022-08-11 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/include/clang/Basic/Sarif.h:157 +/// 1. https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html#_Toc34317648;>level property +enum class SarifResultLevel { Note, Warning, Error }; + Should

[PATCH] D129608: [Clang][OpenMP] Fix segmentation fault when data field is used in is_device_pt.

2022-08-11 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:9073 SmallVector DeclComponentLists; +if (DevPointersMap.count(VD)) { + // For member fields list in is_device_ptr, store it in If VD is nullptr, why do we need this

[PATCH] D131479: Handle explicitly defaulted consteval special members.

2022-08-11 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. Thanks, this LGTM! Please be sure to add a release note for the fix before landing. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131479/new/ https://reviews.llvm.org/D131479

[PATCH] D131685: [clang][AST] RecursiveASTVisitor should visit owned TagDecl of friend type.

2022-08-11 Thread Balázs Kéri via Phabricator via cfe-commits
balazske created this revision. Herald added subscribers: steakhal, martong, gamesh411, Szelethus, dkrupp. Herald added a project: All. balazske requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. A FriendDecl node can have a friend record

[PATCH] D131464: [test] Make tests pass regardless of gnu++14/gnu++17 default

2022-08-11 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D131464#3713705 , @MaskRay wrote: > It will take some time to fix all tests properly. Let's have a guideline how > to fix them properly. I tried fixing some using several patterns in the last > revision. I didn't fix

[PATCH] D90275: [clang][IR] Add support for leaf attribute

2022-08-11 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. In D90275#3715563 , @xbolva00 wrote: > Was there any follow up? It seems that this hint (attribute) is currently not > used by LLVM passes. It is, also in our runtime, see https://reviews.llvm.org/D131628#3716252 Repository:

[PATCH] D111283: [clang] template / auto deduction deduces common sugar

2022-08-11 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added a comment. In D111283#3716104 , @davrec wrote: > The first paragraph says X and Y must have the same canonical type, the > second suggests they need not. The first paragraph is talking about canonical equality, or if you take it that

[PATCH] D129570: [clang-tidy] Add new clang-tidy check to find implicit conversions from enum to integer.

2022-08-11 Thread Paul Fultz II via Phabricator via cfe-commits
pfultz2 added a comment. Anymore feedback? Can this be merged now? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129570/new/ https://reviews.llvm.org/D129570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D131469: [Clang] change default storing path of `-ftime-trace`

2022-08-11 Thread dongjunduo via Phabricator via cfe-commits
dongjunduo marked 3 inline comments as done. dongjunduo added inline comments. Comment at: clang/lib/Driver/Driver.cpp:4786 +const std::string::size_type size = arg.size(); +char *buffer = new char[size + 1]; +memcpy(buffer, arg.c_str(), size + 1);

[clang] 08a8805 - [X86] Add RDPRU instruction CPUID bit masks

2022-08-11 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2022-08-11T16:07:36+01:00 New Revision: 08a880509e4f7ca8d346dce42fe7528c3a33f22c URL: https://github.com/llvm/llvm-project/commit/08a880509e4f7ca8d346dce42fe7528c3a33f22c DIFF: https://github.com/llvm/llvm-project/commit/08a880509e4f7ca8d346dce42fe7528c3a33f22c.diff

[PATCH] D131469: [Clang] change default storing path of `-ftime-trace`

2022-08-11 Thread dongjunduo via Phabricator via cfe-commits
dongjunduo updated this revision to Diff 451865. dongjunduo added a comment. Restyle codes Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131469/new/ https://reviews.llvm.org/D131469 Files: clang/lib/Driver/Driver.cpp

[PATCH] D131623: [clang-tidy] Improve modernize-use-emplace check

2022-08-11 Thread Joey Watts via Phabricator via cfe-commits
joeywatts added a comment. In D131623#3716227 , @njames93 wrote: > Just a general drive by comment here and doesn't affect this patch. > This specifying containers logic is a little verbose, There may be a case to > deprecate most of these options and

[PATCH] D131683: Diagnosing the Future Keywords

2022-08-11 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: clang/include/clang/Basic/TokenKinds.def:387 // C++11 keywords -CXX11_KEYWORD(alignas , 0) +CXX11_KEYWORD(alignas , KEYC23) // alignof and _Alignof return the required ABI alignment

[PATCH] D131623: [clang-tidy] Improve modernize-use-emplace check

2022-08-11 Thread Nathan James via Phabricator via cfe-commits
njames93 added a comment. Just a general drive by comment here and doesn't affect this patch. This specifying containers logic is a little verbose, There may be a case to deprecate most of these options and just detect containers with an equivalent emplace* method at runtime.

[PATCH] D128934: [X86] Add RDPRU instruction

2022-08-11 Thread Paul Robinson via Phabricator via cfe-commits
probinson added a comment. In D128934#3630800 , @probinson wrote: > In D128934#3629653 , @pengfei wrote: > >> > > Done, thanks for the reminder! > >>> 2. Update `clang/lib/Headers/cpuid.h` and

[PATCH] D131683: Diagnosing the Future Keywords

2022-08-11 Thread Muhammad Usman Shahid via Phabricator via cfe-commits
Codesbyusman added inline comments. Comment at: clang/include/clang/Basic/TokenKinds.def:387 // C++11 keywords -CXX11_KEYWORD(alignas , 0) +CXX11_KEYWORD(alignas , KEYC23) // alignof and _Alignof return the required ABI alignment

[PATCH] D131678: hicpp-signed-bitwise - Return location of the operand (and not of the operator beginning)

2022-08-11 Thread Vladimir Plyashkun via Phabricator via cfe-commits
vladimir.plyashkun added a comment. Hi @carlosgalvezp Yes, sorry, maybe screenshot and example from issue in our bugtracker is not the best one. You can check it on this sample from clang-tidy tests: The "hicpp-signed-bitwise" will point to URes = UValue &

[PATCH] D131683: Diagnosing the Future Keywords

2022-08-11 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/include/clang/Basic/TokenKinds.def:395 CXX11_KEYWORD(noexcept , 0) CXX11_KEYWORD(nullptr , 0) +CXX11_KEYWORD(static_assert , KEYMSCOMPAT|KEYC23) xbolva00 wrote: > nullptr

[PATCH] D131645: [clang][dataflow] Allow user-provided lattices to provide a widen operator

2022-08-11 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua marked an inline comment as done. li.zhe.hua added inline comments. Comment at: clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp:119 + std::unique_ptr AST = + tooling::buildASTFromCodeWithArgs("int x = 0;", {"-std=c++11"}); +

[PATCH] D131646: [clang][dataflow] Restructure loops to call widen on back edges

2022-08-11 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua added inline comments. Comment at: clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp:180 + assert(Block->pred_size() == 2); + BackEdge = Pred; +} ymandel wrote: > Might it be worth simply returning the backedge when you

[PATCH] D131646: [clang][dataflow] Restructure loops to call widen on back edges

2022-08-11 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua updated this revision to Diff 451861. li.zhe.hua marked 2 inline comments as done. li.zhe.hua added a comment. Address comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131646/new/ https://reviews.llvm.org/D131646 Files:

[clang] 6e19e6c - [clang][X86] Add RDPRU predefined macro tests for znver2/znver3 targets

2022-08-11 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2022-08-11T15:48:39+01:00 New Revision: 6e19e6ce36e44554ac9fbf8b2780de05e922c849 URL: https://github.com/llvm/llvm-project/commit/6e19e6ce36e44554ac9fbf8b2780de05e922c849 DIFF: https://github.com/llvm/llvm-project/commit/6e19e6ce36e44554ac9fbf8b2780de05e922c849.diff

[PATCH] D131683: Diagnosing the Future Keywords

2022-08-11 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. I believe you need tests here desperately. I also believe the `define` logic that you have here isn't going to be sufficient for the C future flags thanks to it getting some C keywords. Comment at: clang/include/clang/Basic/TokenKinds.def:387 //

[PATCH] D131678: hicpp-signed-bitwise - Return location of the operand (and not of the operator beginning)

2022-08-11 Thread Carlos Galvez via Phabricator via cfe-commits
carlosgalvezp added a comment. On the other hand, if the `0xFF` becomes `0xFFu`, then Clang performs an integer promotion to `unsigned int` instead of `int`, and that's why clang-tidy no longer complains. I'm not sure that's correct behavior, however: If int can represent the entire range

[PATCH] D131683: "Diagnosing the Future Keywords"

2022-08-11 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added inline comments. Comment at: clang/include/clang/Basic/TokenKinds.def:395 CXX11_KEYWORD(noexcept , 0) CXX11_KEYWORD(nullptr , 0) +CXX11_KEYWORD(static_assert , KEYMSCOMPAT|KEYC23) nullptr is now in C23, right?

[PATCH] D131678: hicpp-signed-bitwise - Return location of the operand (and not of the operator beginning)

2022-08-11 Thread Carlos Galvez via Phabricator via cfe-commits
carlosgalvezp added a comment. Hi @vladimir.plyashkun ! I looked at the screenshot in the link you posted. What is the type of `value`? Consider that if `value` is an `uint8_t`, as per the integer promotion rules, it will be promoted to (signed) `int` before running the bitwise operation.

[PATCH] D131683: "Diagnosing the Future Keywords"

2022-08-11 Thread Muhammad Usman Shahid via Phabricator via cfe-commits
Codesbyusman created this revision. Herald added a project: All. Codesbyusman requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D131683 Files:

[PATCH] D131469: [Clang] change default storing path of `-ftime-trace`

2022-08-11 Thread dongjunduo via Phabricator via cfe-commits
dongjunduo updated this revision to Diff 451857. dongjunduo added a comment. format code Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131469/new/ https://reviews.llvm.org/D131469 Files: clang/lib/Driver/Driver.cpp

[PATCH] D130181: [clang-tidy] Add readability-use-early-exits check

2022-08-11 Thread Nathan James via Phabricator via cfe-commits
njames93 updated this revision to Diff 451856. njames93 added a comment. Refactor some of the impl. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130181/new/ https://reviews.llvm.org/D130181 Files:

[PATCH] D131678: hicpp-signed-bitwise - Return location of the operand (and not of the operator beginning)

2022-08-11 Thread Nathan James via Phabricator via cfe-commits
njames93 added inline comments. Comment at: clang-tools-extra/clang-tidy/hicpp/SignedBitwiseCheck.cpp:100 "%select{binary|unary}0 bitwise operator") - << IsUnary << SignedOperand->getSourceRange(); + << IsUnary << Location; } Seems

[PATCH] D131623: [clang-tidy] Improve modernize-use-emplace check

2022-08-11 Thread Joey Watts via Phabricator via cfe-commits
joeywatts updated this revision to Diff 451850. joeywatts added a comment. Update commit title/message Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131623/new/ https://reviews.llvm.org/D131623 Files:

[PATCH] D111283: [clang] template / auto deduction deduces common sugar

2022-08-11 Thread David Rector via Phabricator via cfe-commits
davrec added a comment. This part of the description is confusing: > We take two types, X and Y, which we wish to unify as input. > These types must have the same (qualified or unqualified) canonical > type. > > We dive down fast through top-level type sugar nodes, to the > underlying canonical

[PATCH] D131623: [clang-tidy] Improve modernize-use-emplace check

2022-08-11 Thread Joey Watts via Phabricator via cfe-commits
joeywatts created this revision. Herald added a subscriber: carlosgalvezp. Herald added a project: All. joeywatts updated this revision to Diff 451689. joeywatts added a comment. Eugene.Zelenko retitled this revision from "(wip) improve modernize-use-emplace check" to "[clang-tidy][wip] improve

[PATCH] D131553: [analyzer] exploded-graph-rewriter: Fix python3 string encoding issues

2022-08-11 Thread Balázs Benics via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. steakhal marked an inline comment as done. Closed by commit rG5e876c54f2d7: [analyzer] exploded-graph-rewriter: Fix python3 string encoding issues (authored by steakhal). Changed prior to commit:

[clang] 5e876c5 - [analyzer] exploded-graph-rewriter: Fix python3 string encoding issues

2022-08-11 Thread Balazs Benics via cfe-commits
Author: Balazs Benics Date: 2022-08-11T16:07:52+02:00 New Revision: 5e876c54f2d70195dd1bde827e908825aab2f4fb URL: https://github.com/llvm/llvm-project/commit/5e876c54f2d70195dd1bde827e908825aab2f4fb DIFF: https://github.com/llvm/llvm-project/commit/5e876c54f2d70195dd1bde827e908825aab2f4fb.diff

[PATCH] D131678: hicpp-signed-bitwise - Return location of the operand (and not of the operator beginning)

2022-08-11 Thread Vladimir Plyashkun via Phabricator via cfe-commits
vladimir.plyashkun created this revision. vladimir.plyashkun added reviewers: JonasToth, steveire, njames93. vladimir.plyashkun added a project: clang-tools-extra. Herald added a subscriber: carlosgalvezp. Herald added a project: All. vladimir.plyashkun requested review of this revision. Herald

[PATCH] D124434: [Clang][Test] Run tests in C++14 mode explicitly.

2022-08-11 Thread Jun Zhang via Phabricator via cfe-commits
junaire abandoned this revision. junaire added a comment. Herald added a subscriber: bzcheeseman. Prefer https://reviews.llvm.org/D131464 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124434/new/ https://reviews.llvm.org/D124434

[PATCH] D131469: [Clang] change default storing path of `-ftime-trace`

2022-08-11 Thread dongjunduo via Phabricator via cfe-commits
dongjunduo added a comment. In D131469#3715929 , @jamieschmeiser wrote: > You should not have debugging information in code that is up for review. If > this is debugging information that you plan to leave in for future purposes > (which I doubt is

[PATCH] D131657: Remove redundant condition check, NFC

2022-08-11 Thread Jun Zhang via Phabricator via cfe-commits
junaire added a comment. In D131657#3715976 , @erichkeane wrote: > LGTM! Let us know if you need this committed for you. Thanks! But I already have commit access :^) Closed in efc75a2baedc7405193e3e0f5ea9aaa881783cec

[PATCH] D131479: Handle explicitly defaulted consteval special members.

2022-08-11 Thread Utkarsh Saxena via Phabricator via cfe-commits
usaxena95 updated this revision to Diff 451839. usaxena95 marked 3 inline comments as done. usaxena95 added a comment. Removed regex matching for diagnostics. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131479/new/

[PATCH] D131469: [Clang] change default storing path of `-ftime-trace`

2022-08-11 Thread dongjunduo via Phabricator via cfe-commits
dongjunduo updated this revision to Diff 451838. dongjunduo added a comment. fix stringRef bug Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131469/new/ https://reviews.llvm.org/D131469 Files: clang/lib/Driver/Driver.cpp

[PATCH] D129160: libclang.so: Make SONAME the same as LLVM version

2022-08-11 Thread Isuru Fernando via Phabricator via cfe-commits
isuruf added a comment. As a downstream packager of libclang, I really like the SONAME not changing in libclang. It makes it possible for us to package things like qt that depend on libclang, but not have to rebuild qt for every major revision of LLVM. It's not clear to me what the reason for

[clang] efc75a2 - Remove redundant condition check, NFC

2022-08-11 Thread Jun Zhang via cfe-commits
Author: Jun Zhang Date: 2022-08-11T21:47:19+08:00 New Revision: efc75a2baedc7405193e3e0f5ea9aaa881783cec URL: https://github.com/llvm/llvm-project/commit/efc75a2baedc7405193e3e0f5ea9aaa881783cec DIFF: https://github.com/llvm/llvm-project/commit/efc75a2baedc7405193e3e0f5ea9aaa881783cec.diff

[PATCH] D131528: [Clang] Restrict non fixed enum to a value outside the range of the enumeration values warning to context requiring a constant expression

2022-08-11 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In D131528#3715217 , @mstorsjo wrote: > There are still some cases that were broken by D131307 > , that aren't fixed by this patch. Building > https://martin.st/temp/qt-enum.cpp with `clang

[PATCH] D131665: [CMake] Support passing arguments to build tool (bootstrap).

2022-08-11 Thread Russell Gallop via Phabricator via cfe-commits
russell.gallop added a comment. Noting related review: https://reviews.llvm.org/D115815 which added this variable to support this for other "external projects". Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131665/new/

<    1   2   3   >