[PATCH] D51650: Implement target_clones multiversioning

2021-11-12 Thread Adrian Kuegel via Phabricator via cfe-commits
akuegel added a comment. Since it is not clear whether the semantic change was intended, I think it makes sense to revert the patch for now. If it is intended, it might be good to mention it in the change description, so that people are warned. Repository: rG LLVM Github Monorepo CHANGES SI

[PATCH] D113743: [RFC][clang][DebugInfo] Allow function-local statics and types to be scoped within a lexical block

2021-11-12 Thread Kristina Bessonova via Phabricator via cfe-commits
krisb created this revision. krisb added reviewers: dblaikie, aprantl, probinson. krisb requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. This is almost a reincarnation of https://reviews.llvm.org/D15977 originally implemented by Amjad Aboud.

[PATCH] D113645: [clangd] Allow Unix config paths on Darwin

2021-11-12 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added a subscriber: sammccall. kadircet added a comment. I got a couple of concerns about the general ideas in the change. Even though the convenience of using ~/.config/clangd/config.yaml seems nice, I think it'll just end up creating confusion in the long run. According to various ma

[PATCH] D113738: [LTO] Allow passing -Os/-Oz as the optimization level

2021-11-12 Thread Florian Hahn via Phabricator via cfe-commits
fhahn added a comment. Could you add tests on the LLVM side for the new options as well? See also D95541 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113738/new/ https://reviews.llvm.org/D113738

[clang-tools-extra] 735e433 - Make minor fixes to docs based on post-commit review of commit 5de69e1

2021-11-12 Thread Salman Javed via cfe-commits
Author: Salman Javed Date: 2021-11-12T22:39:16+13:00 New Revision: 735e4332e2a63e5f0a04f91472fa2403c7d37fe3 URL: https://github.com/llvm/llvm-project/commit/735e4332e2a63e5f0a04f91472fa2403c7d37fe3 DIFF: https://github.com/llvm/llvm-project/commit/735e4332e2a63e5f0a04f91472fa2403c7d37fe3.diff

[clang-tools-extra] d73e27d - Revert "Make minor fixes to docs based on post-commit review of commit 5de69e1"

2021-11-12 Thread Salman Javed via cfe-commits
Author: Salman Javed Date: 2021-11-12T22:42:38+13:00 New Revision: d73e27d91f6ab66aebf7c5381439b727ab256082 URL: https://github.com/llvm/llvm-project/commit/d73e27d91f6ab66aebf7c5381439b727ab256082 DIFF: https://github.com/llvm/llvm-project/commit/d73e27d91f6ab66aebf7c5381439b727ab256082.diff

[PATCH] D112921: [clang] Enable sized deallocation by default in C++14 onwards

2021-11-12 Thread Konrad Wilhelm Kleine via Phabricator via cfe-commits
kwk added a comment. You've disabled sized deallocation in some tests by providing `-fno-sized-deallocation `. I admit I haven't looked at those tests in detail but I would like to understand if those tests would otherwise fail. If they fail, is there work that needs to be done later to make th

[clang-tools-extra] 379935e - Re-land commit 735e433 after fixing buildbot issue

2021-11-12 Thread Salman Javed via cfe-commits
Author: Salman Javed Date: 2021-11-12T22:59:50+13:00 New Revision: 379935e5a460d98cf8fe4585bf6abca3e494f7b3 URL: https://github.com/llvm/llvm-project/commit/379935e5a460d98cf8fe4585bf6abca3e494f7b3 DIFF: https://github.com/llvm/llvm-project/commit/379935e5a460d98cf8fe4585bf6abca3e494f7b3.diff

[clang] bb49346 - Revert "Implement target_clones multiversioning"

2021-11-12 Thread Adrian Kuegel via cfe-commits
Author: Adrian Kuegel Date: 2021-11-12T11:05:58+01:00 New Revision: bb4934601d731465e01e2e22c80ce2dbe687d73f URL: https://github.com/llvm/llvm-project/commit/bb4934601d731465e01e2e22c80ce2dbe687d73f DIFF: https://github.com/llvm/llvm-project/commit/bb4934601d731465e01e2e22c80ce2dbe687d73f.diff

[PATCH] D113676: WIP: [clang][lex] Fix search path usage remark with modules

2021-11-12 Thread Alex Hoppen via Phabricator via cfe-commits
ahoppen added a comment. LGTM overall. I’ve got a few questions/remarks inline. Comment at: clang/lib/Lex/HeaderSearch.cpp:94 + // Module map parsing initiated by header search. + if (HS.CurrentSearchPathIdx != ~0U) +HS.ModuleToSearchDirIdx[M] = HS.CurrentSear

[PATCH] D110155: [OpenCL] Allow optional __generic in __remove_address_space utility

2021-11-12 Thread Justas Janickas via Phabricator via cfe-commits
Topotuna updated this revision to Diff 386773. Topotuna added a comment. Herald added a subscriber: Naghasan. Run line `-triple` is now set explicitly. Test moved from `CodeGenOpenCLCXX` directory to `SemaOpenCLCXX` CHANGES SINCE LAST ACTION https://reviews.llvm.org/D110155/new/ https://revi

[clang] 806329d - [analyzer][solver] Iterate to a fixpoint during symbol simplification with constants

2021-11-12 Thread Gabor Marton via cfe-commits
Author: Gabor Marton Date: 2021-11-12T11:44:49+01:00 New Revision: 806329da07006b3b95b5164a2a7c8b3be0aac8de URL: https://github.com/llvm/llvm-project/commit/806329da07006b3b95b5164a2a7c8b3be0aac8de DIFF: https://github.com/llvm/llvm-project/commit/806329da07006b3b95b5164a2a7c8b3be0aac8de.diff

[PATCH] D106823: [analyzer][solver] Iterate to a fixpoint during symbol simplification with constants

2021-11-12 Thread Gabor Marton via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG806329da0700: [analyzer][solver] Iterate to a fixpoint during symbol simplification with… (authored by martong). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org

[clang] 01c9700 - [analyzer][solver] Remove reference to RangedConstraintManager

2021-11-12 Thread Gabor Marton via cfe-commits
Author: Gabor Marton Date: 2021-11-12T11:44:49+01:00 New Revision: 01c9700aaad39339414d77da7fc910a435303016 URL: https://github.com/llvm/llvm-project/commit/01c9700aaad39339414d77da7fc910a435303016 DIFF: https://github.com/llvm/llvm-project/commit/01c9700aaad39339414d77da7fc910a435303016.diff

[PATCH] D113261: [analyzer][solver] Remove reference to RangedConstraintManager

2021-11-12 Thread Gabor Marton via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG01c9700aaad3: [analyzer][solver] Remove reference to RangedConstraintManager (authored by martong). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113261/new/

[clang-tools-extra] 9089a1d - [clang-tidy] Re-apply 0076957 with fix for failing ASan tests

2021-11-12 Thread Salman Javed via cfe-commits
Author: Salman Javed Date: 2021-11-13T00:01:12+13:00 New Revision: 9089a1dff030dbcf48f2bdae6d2d80e7ddfca25a URL: https://github.com/llvm/llvm-project/commit/9089a1dff030dbcf48f2bdae6d2d80e7ddfca25a DIFF: https://github.com/llvm/llvm-project/commit/9089a1dff030dbcf48f2bdae6d2d80e7ddfca25a.diff

[clang] 269baa7 - [clang] NFC: Remove benign condition

2021-11-12 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2021-11-12T12:13:12+01:00 New Revision: 269baa7bfcf8e42b576ff29a56b8d56c1e7d39eb URL: https://github.com/llvm/llvm-project/commit/269baa7bfcf8e42b576ff29a56b8d56c1e7d39eb DIFF: https://github.com/llvm/llvm-project/commit/269baa7bfcf8e42b576ff29a56b8d56c1e7d39eb.diff L

[clang] c57ca33 - [clang] NFC: Use range-based for loop

2021-11-12 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2021-11-12T12:13:12+01:00 New Revision: c57ca335474704cabeafcd8421600c3c7ccc4484 URL: https://github.com/llvm/llvm-project/commit/c57ca335474704cabeafcd8421600c3c7ccc4484 DIFF: https://github.com/llvm/llvm-project/commit/c57ca335474704cabeafcd8421600c3c7ccc4484.diff L

[PATCH] D113749: [Clang] Fix nesting of discarded an immediate context.

2021-11-12 Thread Corentin Jabot via Phabricator via cfe-commits
cor3ntin created this revision. cor3ntin requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. In C++23, discarded statements and if consteval statements can nest arbitrarily. To support that, we keep track of whether the parent of the current ev

[PATCH] D113749: [Clang] Fix nesting of discarded an immediate context.

2021-11-12 Thread Corentin Jabot via Phabricator via cfe-commits
cor3ntin updated this revision to Diff 386783. cor3ntin added a comment. Fix commit message Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113749/new/ https://reviews.llvm.org/D113749 Files: clang/include/clang/Sema/Sema.h clang/lib/Sema/SemaEx

[PATCH] D113676: WIP: [clang][lex] Fix search path usage remark with modules

2021-11-12 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added a comment. Thanks for the feedback, I'll try to clean this up a bit. Comment at: clang/lib/Lex/HeaderSearch.cpp:94 + // Module map parsing initiated by header search. + if (HS.CurrentSearchPathIdx != ~0U) +HS.ModuleToSearchDirIdx[M] = HS.Cur

[PATCH] D113752: [Parse] Use empty RecoveryExpr when if/while/do/switch conditions fail to parse

2021-11-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: hokein. Herald added a subscriber: jdoerfert. sammccall requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. This allows the body to be parsed. An special-case that would replace a mis

[PATCH] D103317: [Analyzer][engine][solver] Simplify complex constraints

2021-11-12 Thread Gabor Marton via Phabricator via cfe-commits
martong updated this revision to Diff 386796. martong marked 7 inline comments as done. martong added a comment. - Rebase on top of parent revisions - Address review comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103317/new/ https://reviews

[PATCH] D103317: [Analyzer][engine][solver] Simplify complex constraints

2021-11-12 Thread Gabor Marton via Phabricator via cfe-commits
martong added inline comments. Comment at: clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:1155-1156 -// TODO: Support SymbolCast. Support IntSymExpr when/if we actually -// start producing them. ASDenysPetrov wrote: > ASDenysPetrov wrote: > > vsa

[PATCH] D113752: [Parse] Use empty RecoveryExpr when if/while/do/switch conditions fail to parse

2021-11-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 386797. sammccall added a comment. More conservative in changes to ActOnIfStmt Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113752/new/ https://reviews.llvm.org/D113752 Files: clang/include/clang/Parse/Pa

[PATCH] D113753: [Analyzer][Core] Better simplification in SimpleSValBuilder::evalBinOpNN

2021-11-12 Thread Gabor Marton via Phabricator via cfe-commits
martong created this revision. martong added reviewers: steakhal, ASDenysPetrov, NoQ, Szelethus. Herald added subscribers: manas, gamesh411, dkrupp, donat.nagy, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware, xazax.hun, whisperity. martong requested review of this revision. Hera

[PATCH] D113754: [Analyzer][Core] Simplify IntSym in SValBuilder

2021-11-12 Thread Gabor Marton via Phabricator via cfe-commits
martong created this revision. martong added reviewers: steakhal, ASDenysPetrov, NoQ, Szelethus. Herald added subscribers: manas, gamesh411, dkrupp, donat.nagy, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware, xazax.hun, whisperity. martong requested review of this revision. Hera

[PATCH] D113641: [llvm] Add a SFINAE template parameter to DenseMapInfo

2021-11-12 Thread Chris Lattner via Phabricator via cfe-commits
lattner accepted this revision. lattner added a comment. Herald added a subscriber: sdasgup3. Nice, I'm very excited about this - this will allow a lot of cleanups. Thank you for doing this! Comment at: llvm/include/llvm/ADT/Hashing.h:59 namespace llvm { -template struct De

[PATCH] D113641: [llvm] Add a SFINAE template parameter to DenseMapInfo

2021-11-12 Thread River Riddle via Phabricator via cfe-commits
rriddle added inline comments. Comment at: llvm/include/llvm/ADT/Hashing.h:59 namespace llvm { -template struct DenseMapInfo; lattner wrote: > Is there a way to keep the forward declarations references here instead of > #include? DenseMapInfo.h pulls in a t

[PATCH] D113641: [llvm] Add a SFINAE template parameter to DenseMapInfo

2021-11-12 Thread Chris Lattner via Phabricator via cfe-commits
lattner added a comment. Oh, are you concerned about staging this in? If you want to stage it (add the includes now, remove them later or something), that is totally fine with me. Maybe I don't understand the impact correctly. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D113641: [llvm] Add a SFINAE template parameter to DenseMapInfo

2021-11-12 Thread Chris Lattner via Phabricator via cfe-commits
lattner added a comment. I think a few void's probably won't hurt anyone? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113641/new/ https://reviews.llvm.org/D113641 ___ cfe-commits mailing list cfe-commi

[PATCH] D103317: [Analyzer][Core] Make SValBuilder to better simplify svals with 3 symbols in the tree

2021-11-12 Thread Gabor Marton via Phabricator via cfe-commits
martong updated this revision to Diff 386806. martong edited the summary of this revision. martong added a comment. - Update in comments: `Unknown` -> `Undef` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103317/new/ https://reviews.llvm.org/D10331

[PATCH] D51650: Implement target_clones multiversioning

2021-11-12 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D51650#3126569 , @akuegel wrote: > Since it is not clear whether the semantic change was intended, I think it > makes sense to revert the patch for now. If it is intended, it might be good > to mention it in the change d

[clang-tools-extra] 7d668ae - [clangd] Mark macros from preamble for code completion

2021-11-12 Thread Kadir Cetinkaya via cfe-commits
Author: Kadir Cetinkaya Date: 2021-11-12T14:01:14+01:00 New Revision: 7d668ae38d2d54ebd5eca5f66a8cf353c3526dc3 URL: https://github.com/llvm/llvm-project/commit/7d668ae38d2d54ebd5eca5f66a8cf353c3526dc3 DIFF: https://github.com/llvm/llvm-project/commit/7d668ae38d2d54ebd5eca5f66a8cf353c3526dc3.dif

[PATCH] D113555: [clangd] Mark macros from preamble for code completion

2021-11-12 Thread Kadir Cetinkaya via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. kadircet marked an inline comment as done. Closed by commit rG7d668ae38d2d: [clangd] Mark macros from preamble for code completion (authored by kadircet). Changed prior to commit: https://reviews.llvm.org/D113555?vs=38610

[clang] ab6ef58 - [clang] NFC: Format a loop in CompilerInstance

2021-11-12 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2021-11-12T14:16:06+01:00 New Revision: ab6ef5872763fd84e714c30467a49ad41d81bafc URL: https://github.com/llvm/llvm-project/commit/ab6ef5872763fd84e714c30467a49ad41d81bafc DIFF: https://github.com/llvm/llvm-project/commit/ab6ef5872763fd84e714c30467a49ad41d81bafc.diff L

[PATCH] D113761: [clang][modules] NFC: Factor out path-based submodule lookup

2021-11-12 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 created this revision. jansvoboda11 added reviewers: Bigcheese, dexonsmith, vsapsai. jansvoboda11 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. This is a prep patch for Dxx that factors out the path-based submodule looku

[PATCH] D113489: [AArch64][SVE] Instcombine SVE LD1/ST1 to stock LLVM IR

2021-11-12 Thread Matt Devereau via Phabricator via cfe-commits
MattDevereau marked 9 inline comments as done. MattDevereau added inline comments. Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:732 + Type *VecTyPtr = II.getType()->getPointerTo(); + IRBuilder<> Builder(II.getContext()); + Builder.SetInsertPoint(&II); ---

[PATCH] D110216: [clang] retain type sugar in auto / template argument deduction

2021-11-12 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added a comment. Obviously the error message was just extended by the as-written type. Could have just adapted the expected results instead of reverting... Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D110216/new/ https://reviews.llvm

[PATCH] D103395: PR45879: Keep evaluated expression in LValue object

2021-11-12 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff updated this revision to Diff 386823. sepavloff added a comment. Update the patch - Use more careful check for LHS expression, - Make a bit more precise LHS expression tracking, - Add comments, - Add the test from discussion. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST A

[PATCH] D103395: PR45879: Keep evaluated expression in LValue object

2021-11-12 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff added a comment. In D103395#3105677 , @tambre wrote: > In D103395#3105668 , @sepavloff > wrote: > >> Strange, I see that it cannot be compiled neither by gcc nor by clang: >> https://godbolt.org/z/1dY9

[PATCH] D111434: [PowerPC] PPC backend optimization on conditional trap intrustions

2021-11-12 Thread Amy Kwan via Phabricator via cfe-commits
amyk added inline comments. Comment at: llvm/lib/Target/PowerPC/PPCMIPeephole.cpp:1018 +unsigned Opcode2 = LiMI2->getOpcode(); +bool isOperand2Immeidate = MI.getOperand(2).isImm(); +// We can only do the optimization for the "reg + reg" form. -

[clang-tools-extra] ebda5e1 - [clangd] Fix use-after-free in test

2021-11-12 Thread Kadir Cetinkaya via cfe-commits
Author: Kadir Cetinkaya Date: 2021-11-12T14:50:23+01:00 New Revision: ebda5e1e521f4e7e47ccddb51a6a1d0d586b4265 URL: https://github.com/llvm/llvm-project/commit/ebda5e1e521f4e7e47ccddb51a6a1d0d586b4265 DIFF: https://github.com/llvm/llvm-project/commit/ebda5e1e521f4e7e47ccddb51a6a1d0d586b4265.dif

[PATCH] D113754: [Analyzer][Core] Simplify IntSym in SValBuilder

2021-11-12 Thread Balázs Benics via Phabricator via cfe-commits
steakhal accepted this revision. steakhal added a comment. This revision is now accepted and ready to land. Great stuff. Have you checked the coverage? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113754/new/ https://reviews.llvm.org/D113754

[PATCH] D113765: [clangd] Fix function-arg-placeholder suppression with macros.

2021-11-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: kadircet. Herald added subscribers: usaxena95, arphaman. sammccall requested review of this revision. Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. While here, unhide function-a

[PATCH] D113753: [Analyzer][Core] Better simplification in SimpleSValBuilder::evalBinOpNN

2021-11-12 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added inline comments. Comment at: clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:378 + SVal simplifiedLhs = simplifySVal(state, lhs); + SVal simplifiedRhs = simplifySVal(state, rhs); + if (auto simplifiedLhsAsNonLoc = simplifiedLhs.getAs()) It s

[PATCH] D103317: [Analyzer][Core] Make SValBuilder to better simplify svals with 3 symbols in the tree

2021-11-12 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added a comment. To me at least, the patch looks good. Please post some comparative measurements to demonstrate it won't introduce runtime regression. Comment at: clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:1144 + :

[PATCH] D113765: [clangd] Fix function-arg-placeholder suppression with macros.

2021-11-12 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang-tools-extra/clangd/CodeComplete.cpp:476 Completion.Kind == CompletionItemKind::Method || Completion.Kind == CompletionItemKind::Constructor) { // If there is a potential template argument list, drop snippe

[clang] 388e811 - [OpenCL] Constructor address space test adjusted for C++ for OpenCL 2021

2021-11-12 Thread Justas Janickas via cfe-commits
Author: Justas Janickas Date: 2021-11-12T14:31:50Z New Revision: 388e8110db6f7b4ad9d655a70780f8698c4b9fd1 URL: https://github.com/llvm/llvm-project/commit/388e8110db6f7b4ad9d655a70780f8698c4b9fd1 DIFF: https://github.com/llvm/llvm-project/commit/388e8110db6f7b4ad9d655a70780f8698c4b9fd1.diff LO

[PATCH] D110184: [OpenCL] Constructor address space test adjusted for C++ for OpenCL 2021

2021-11-12 Thread Justas Janickas 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 rG388e8110db6f: [OpenCL] Constructor address space test adjusted for C++ for OpenCL 2021 (authored by Topotuna). Herald added a subscriber: Naghasan.

[PATCH] D111434: [PowerPC] PPC backend optimization on conditional trap intrustions

2021-11-12 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai accepted this revision. nemanjai added a comment. This revision is now accepted and ready to land. LGTM. There are some very minor nits that can be addressed on the commit. Comment at: llvm/lib/Target/PowerPC/PPCMIPeephole.cpp:1018 +unsigned Opcode2 = LiMI2->ge

[PATCH] D110927: [analyzer] Access stored value of a constant array through a pointer to another type

2021-11-12 Thread Denys Petrov via Phabricator via cfe-commits
ASDenysPetrov added inline comments. Comment at: clang/test/Analysis/initialization.cpp:295-299 +void glob_cast_opposite_sign1() { + auto *ptr = (unsigned int *)glob_arr2; + auto x1 = ptr[0]; // no-warning + auto x2 = ptr[1]; // expected-warning{{garbage or undefined}} +}

[PATCH] D113775: [clang][modules] Umbrella with missing submodule: unify implicit & explicit

2021-11-12 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 created this revision. jansvoboda11 added reviewers: Bigcheese, dexonsmith, vsapsai. jansvoboda11 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Submodules not covered by existing umbrella header are being imported as textual

[PATCH] D113775: [clang][modules] Umbrella with missing submodule: unify implicit & explicit

2021-11-12 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 386847. jansvoboda11 added a comment. Re-run CI Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113775/new/ https://reviews.llvm.org/D113775 Files: clang/include/clang/Frontend/CompilerInstance.h clang/

[PATCH] D110927: [analyzer] Access stored value of a constant array through a pointer to another type

2021-11-12 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added inline comments. Comment at: clang/test/Analysis/initialization.cpp:295-299 +void glob_cast_opposite_sign1() { + auto *ptr = (unsigned int *)glob_arr2; + auto x1 = ptr[0]; // no-warning + auto x2 = ptr[1]; // expected-warning{{garbage or undefined}} +} -

[PATCH] D113189: [clang] Inclusive language: change instances of blacklist/whitelist to allowlist/ignorelist

2021-11-12 Thread Zarko Todorovski via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG05f34ffa2169: [clang] Inclusive language: change instances of blacklist/whitelist to… (authored by ZarkoCA). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D11

[clang] 05f34ff - [clang] Inclusive language: change instances of blacklist/whitelist to allowlist/ignorelist

2021-11-12 Thread Zarko Todorovski via cfe-commits
Author: Zarko Todorovski Date: 2021-11-12T15:46:16Z New Revision: 05f34ffa216975f132fa1bd4cbf8424053a19147 URL: https://github.com/llvm/llvm-project/commit/05f34ffa216975f132fa1bd4cbf8424053a19147 DIFF: https://github.com/llvm/llvm-project/commit/05f34ffa216975f132fa1bd4cbf8424053a19147.diff L

[PATCH] D110216: [clang] retain type sugar in auto / template argument deduction

2021-11-12 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added a subscriber: ldionne. mizvekov added a comment. Exactly what Aaron said :-) Though might be a complication here if libcxx tests this with both ToT and stable clang, so could be perhaps this needs to be changed in a way that works in both. I will check this much later today, hav

[PATCH] D113676: WIP: [clang][lex] Fix search path usage remark with modules

2021-11-12 Thread Alex Hoppen via Phabricator via cfe-commits
ahoppen added inline comments. Comment at: clang/lib/Lex/HeaderSearch.cpp:94 + // Module map parsing initiated by header search. + if (HS.CurrentSearchPathIdx != ~0U) +HS.ModuleToSearchDirIdx[M] = HS.CurrentSearchPathIdx; jansvoboda11 wrote: > a

[PATCH] D113776: [Clang][SVE] Properly enable/disable dependant SVE target features based upon +(no)sve.* options

2021-11-12 Thread Bradley Smith via Phabricator via cfe-commits
bsmith created this revision. bsmith added reviewers: paulwalker-arm, peterwaller-arm, sdesmalen. Herald added subscribers: psnobl, tschuett. Herald added a reviewer: efriedma. bsmith requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits, cfe-

[PATCH] D113691: Comment AST: Recognize function-like objects via return type (NFC)

2021-11-12 Thread Dmitri Gribenko via Phabricator via cfe-commits
gribozavr2 accepted this revision. gribozavr2 added a comment. This revision is now accepted and ready to land. Nice, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113691/new/ https://reviews.llvm.org/D113691 __

[PATCH] D51650: Implement target_clones multiversioning

2021-11-12 Thread Daniel Kiss via Phabricator via cfe-commits
danielkiss added inline comments. Comment at: clang/lib/Sema/SemaDeclAttr.cpp:3290-3296 + // Ensure we don't combine these with themselves, since that causes some + // confusing behavior. + if (const auto *Other = D->getAttr()) { +S.Diag(AL.getLoc(), diag::err_disallowed_d

[PATCH] D113676: WIP: [clang][lex] Fix search path usage remark with modules

2021-11-12 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added inline comments. Comment at: clang/lib/Lex/HeaderSearch.cpp:94 + // Module map parsing initiated by header search. + if (HS.CurrentSearchPathIdx != ~0U) +HS.ModuleToSearchDirIdx[M] = HS.CurrentSearchPathIdx; ahoppen wrote: > j

[PATCH] D113575: Add `isInitCapture` and `forEachLambdaCapture` matchers.

2021-11-12 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel accepted this revision. ymandel added inline comments. This revision is now accepted and ready to land. Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:4235 + for (const auto &Capture : Node.captures()) { +if (Finder->isTraversalIgnoringImplicitNodes() && C

[PATCH] D112921: [clang] Enable sized deallocation by default in C++14 onwards

2021-11-12 Thread Mark de Wever via Phabricator via cfe-commits
Mordante added a comment. In D112921#3126492 , @zixuan-wu wrote: > Is this going to be reviewed again or committed? This patch still requires approval by the libc++ group. The last build failed for multiple libc++ CI jobs, these should be fixed. (I haven

[PATCH] D113690: Comment AST: Find out if function is variadic in DeclInfo::fill

2021-11-12 Thread Dmitri Gribenko via Phabricator via cfe-commits
gribozavr2 added a comment. Thank you for the cleanup! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113690/new/ https://reviews.llvm.org/D113690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[PATCH] D103511: [clang-tidy] Special member functions check should allow sole dtors by default

2021-11-12 Thread Balázs Benics via Phabricator via cfe-commits
steakhal abandoned this revision. steakhal added a comment. Herald added a subscriber: carlosgalvezp. I forgot to abandon this earlier. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103511/new/ https://reviews.llvm.org/D103511

[PATCH] D113776: [Clang][SVE] Properly enable/disable dependant SVE target features based upon +(no)sve.* options

2021-11-12 Thread Thorsten via Phabricator via cfe-commits
tschuett added inline comments. Comment at: clang/lib/Driver/ToolChains/Arch/AArch64.cpp:66 +typedef enum { Unset, True, False } OptState; +bool isUnset(OptState State) { return State == OptState::Unset; } This is almost an enum class. ``` enum class OptState {

[PATCH] D113148: Add new clang-tidy check for string_view(nullptr)

2021-11-12 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel added a comment. This looks really good. An impressive effort! Just a few changes. Also, please ping Alex to get his opinion on the high level issue. Comment at: clang-tools-extra/clang-tidy/bugprone/StringviewNullptrCheck.cpp:62 + hasSourceExpression(StringV

[PATCH] D113779: [Clang] Add mfp16, mfp16fml and mdotprod flags for ARM target features.

2021-11-12 Thread Florian Hahn via Phabricator via cfe-commits
fhahn created this revision. fhahn added reviewers: aemerson, ab, dmgreen, SjoerdMeijer, scanon. Herald added subscribers: dang, kristof.beyls. fhahn requested review of this revision. Herald added a project: clang. This patch adds support for `-m[no]fpf16`, ` `-m[no]fpf16fml` and `-m[no]dotprod`

[PATCH] D112921: [clang] Enable sized deallocation by default in C++14 onwards

2021-11-12 Thread John McCall via Phabricator via cfe-commits
rjmccall requested changes to this revision. rjmccall added a comment. This revision now requires changes to proceed. Yeah, I think this either needs deployment restriction on Apple platforms or it needs the thunk / weak-linking approach from the original patch when the target OS isn't recent en

[PATCH] D113765: [clangd] Fix function-arg-placeholder suppression with macros.

2021-11-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 386873. sammccall marked 2 inline comments as done. sammccall added a comment. Address review comments. While here, condense some long comments that repeated the code and seemed confusing. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D113765: [clangd] Fix function-arg-placeholder suppression with macros.

2021-11-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/CodeComplete.cpp:517 +Completion.Kind == CompletionItemKind::Method || +Completion.Kind == CompletionItemKind::Text /*Macro*/) { // Functions snippets can be of 2 types:

[PATCH] D112921: [clang] Enable sized deallocation by default in C++14 onwards

2021-11-12 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. Let's not bring back the weak function thunk approach. That approach caused problems described in my commit, D8467 , which is why the code was removed. The next steps are to sort out right defaults for Apple and understand the libc++ test fa

[clang-tools-extra] 4fb62e1 - [clangd] Mark completions as plain-text when there's no snippet part

2021-11-12 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2021-11-12T18:44:20+01:00 New Revision: 4fb62e138398263dbefaa499c712929562bdf3bd URL: https://github.com/llvm/llvm-project/commit/4fb62e138398263dbefaa499c712929562bdf3bd DIFF: https://github.com/llvm/llvm-project/commit/4fb62e138398263dbefaa499c712929562bdf3bd.diff LO

[PATCH] D112921: [clang] Enable sized deallocation by default in C++14 onwards

2021-11-12 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. In D112921#3127767 , @rnk wrote: > Let's not bring back the weak function thunk approach. That approach caused > problems described in my commit, D8467 , > which is why the code was removed. The

[PATCH] D113707: [clang] Make -masm=intel affect inline asm style

2021-11-12 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Thanks for pointing out built-in headers, that's a great point. I started adding .att_syntax lines where needed, but the I realized that that doens't work: it's too late for things taking memory, since %0 replacement is done with asm writer setting before getting to read

[PATCH] D112024: [clang] diagnose_as attribute for Fortify diagnosing like builtins.

2021-11-12 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv accepted this revision. george.burgess.iv added a comment. This revision is now accepted and ready to land. LGTM % 2 nits. Please feel free to commit after it LGT @aaron.ballman too. :) Thanks again! Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.t

[PATCH] D113738: [LTO] Allow passing -Os/-Oz as the optimization level

2021-11-12 Thread Arthur Eubanks via Phabricator via cfe-commits
aeubanks updated this revision to Diff 386882. aeubanks added a comment. add more tests Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113738/new/ https://reviews.llvm.org/D113738 Files: clang/lib/CodeGen/BackendUtil.cpp lld/COFF/Config.h lld

[PATCH] D112024: [clang] diagnose_as attribute for Fortify diagnosing like builtins.

2021-11-12 Thread Michael Benfield via Phabricator via cfe-commits
mbenfield added inline comments. Comment at: clang/test/Sema/attr-diagnose-as-builtin.c:62 + +#ifdef __cplusplus +template george.burgess.iv wrote: > nit: can we also add a non-templated overload check in here? > > if the diag isn't beautiful, that's fine IMO.

[PATCH] D113738: [LTO] Allow passing -Os/-Oz as the optimization level

2021-11-12 Thread Peter Collingbourne via Phabricator via cfe-commits
pcc added a comment. Please see D63976 where we rejected a similar change in favor of just letting this be controllable at compile time. To the extent that the pass pipeline is affected by the size optimization level, I think we should change the passes so that

[PATCH] D110216: [clang] retain type sugar in auto / template argument deduction

2021-11-12 Thread Louis Dionne via Phabricator via cfe-commits
ldionne added a comment. In D110216#3127530 , @mizvekov wrote: > Exactly what Aaron said :-) > > Though might be a complication here if libcxx tests this with both ToT and > stable clang, so could be perhaps this needs to be changed in a way that > work

[PATCH] D113148: Add new clang-tidy check for string_view(nullptr)

2021-11-12 Thread CJ Johnson via Phabricator via cfe-commits
CJ-Johnson marked 5 inline comments as done. CJ-Johnson added inline comments. Comment at: clang-tools-extra/clang-tidy/bugprone/StringviewNullptrCheck.cpp:75 + compoundLiteralExpr(has(StringViewConstructingFromNullExpr)), + changeTo(node("null_argument_expr"), cat(""))

[PATCH] D110216: [clang] retain type sugar in auto / template argument deduction

2021-11-12 Thread Louis Dionne via Phabricator via cfe-commits
ldionne added a comment. I think this should do it: diff --git a/libcxx/test/std/utilities/any/any.nonmembers/any.cast/const_correctness.fail.cpp b/libcxx/test/std/utilities/any/any.nonmembers/any.cast/const_correctness.verify.cpp similarity index 81% rename from libcxx/test/std/utiliti

[PATCH] D113148: Add new clang-tidy check for string_view(nullptr)

2021-11-12 Thread CJ Johnson via Phabricator via cfe-commits
CJ-Johnson updated this revision to Diff 386904. CJ-Johnson marked 3 inline comments as done. CJ-Johnson added a comment. Address review comments from Yitzie Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113148/new/ https://reviews.llvm.org/D113148

[PATCH] D112921: [clang] Enable sized deallocation by default in C++14 onwards

2021-11-12 Thread Louis Dionne via Phabricator via cfe-commits
ldionne requested changes to this revision. ldionne added a comment. Regarding the back-deployment target for Apple, I believe the first OSes where `libc++.dylib` had sized deallocation are `macOS 10.12`, `iOS 10.0`, `watchOS 3.0`, and `tvOS 10.0`. We should be able to enable reliance on sized

[clang] 46a68c8 - Sema: const-qualify ParsedAttr::iterator::operator*()

2021-11-12 Thread Duncan P. N. Exon Smith via cfe-commits
Author: Duncan P. N. Exon Smith Date: 2021-11-12T11:47:16-08:00 New Revision: 46a68c85bfc99f0bc651e5096a641d5d4051e99d URL: https://github.com/llvm/llvm-project/commit/46a68c85bfc99f0bc651e5096a641d5d4051e99d DIFF: https://github.com/llvm/llvm-project/commit/46a68c85bfc99f0bc651e5096a641d5d4051

[PATCH] D109557: Adds a BlockIndent option to AlignAfterOpenBracket

2021-11-12 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. In D109557#3066854 , @csmulhern wrote: > In D109557#3063681 , > @MyDeveloperDay wrote: > >> Personally I'm not convinced there wouldn't be people who want this for >> function

[PATCH] D113636: format_arg attribute does not support nullable instancetype return type

2021-11-12 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak accepted this revision. ahatanak 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/D113636/new/ https://reviews.llvm.org/D113636 ___

[clang] 4e7df1e - Comment AST: Find out if function is variadic in DeclInfo::fill

2021-11-12 Thread Aaron Puchert via cfe-commits
Author: Aaron Puchert Date: 2021-11-12T21:10:56+01:00 New Revision: 4e7df1ef7b679953c1501177539166876c4cbda4 URL: https://github.com/llvm/llvm-project/commit/4e7df1ef7b679953c1501177539166876c4cbda4 DIFF: https://github.com/llvm/llvm-project/commit/4e7df1ef7b679953c1501177539166876c4cbda4.diff

[clang] 3010883 - Comment AST: Recognize function-like objects via return type (NFC)

2021-11-12 Thread Aaron Puchert via cfe-commits
Author: Aaron Puchert Date: 2021-11-12T21:11:11+01:00 New Revision: 3010883fc296619def051e0a2f97d40fb15960d7 URL: https://github.com/llvm/llvm-project/commit/3010883fc296619def051e0a2f97d40fb15960d7 DIFF: https://github.com/llvm/llvm-project/commit/3010883fc296619def051e0a2f97d40fb15960d7.diff

[clang] 59b1e98 - Comment Sema: Make most of CommentSema private (NFC)

2021-11-12 Thread Aaron Puchert via cfe-commits
Author: Aaron Puchert Date: 2021-11-12T21:11:52+01:00 New Revision: 59b1e98137e961a61ffaeb609b6790999c461bec URL: https://github.com/llvm/llvm-project/commit/59b1e98137e961a61ffaeb609b6790999c461bec DIFF: https://github.com/llvm/llvm-project/commit/59b1e98137e961a61ffaeb609b6790999c461bec.diff

[PATCH] D113690: Comment AST: Find out if function is variadic in DeclInfo::fill

2021-11-12 Thread Aaron Puchert 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 rG4e7df1ef7b67: Comment AST: Find out if function is variadic in DeclInfo::fill (authored by aaronpuchert). Changed prior to commit: https://reviews

[PATCH] D113691: Comment AST: Recognize function-like objects via return type (NFC)

2021-11-12 Thread Aaron Puchert 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 rG3010883fc296: Comment AST: Recognize function-like objects via return type (NFC) (authored by aaronpuchert). Changed prior to commit: https://revi

[PATCH] D113793: Comment Sema: Run checks only when appropriate (NFC)

2021-11-12 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert created this revision. aaronpuchert added a reviewer: gribozavr2. aaronpuchert requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Instead of checking within the checks whether they apply, we check before calling them. This allows

[PATCH] D113794: Comment Sema: Use Name from CommandInfo for HeaderDoc diagnostics (NFC)

2021-11-12 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert created this revision. aaronpuchert added a reviewer: gribozavr2. aaronpuchert requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. We don't have to figure out the name, we can just fetch it from the metadata table. Also there is no

[PATCH] D113795: Comment Sema: Eliminate or factor out DeclInfo inspection (NFC)

2021-11-12 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert created this revision. aaronpuchert added a reviewer: gribozavr2. aaronpuchert requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. We make all predicates expect an already inspected DeclInfo, and introduce a function to run such a

[PATCH] D113793: Comment Sema: Run checks only when appropriate (NFC)

2021-11-12 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added a comment. Forget to run `clang-format`, will do this when I have to update or land. Comment at: clang/lib/AST/CommentSema.cpp:628 -void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) { - const CommandInfo *Info = Traits.getCommandInf

[PATCH] D113707: [clang] Make -masm=intel affect inline asm style

2021-11-12 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. One alternative would be to control this setting with a pragma stack, like we do for warnings, struct packing, etc. Something like: // foo.h #pragma clang asm_dialect push "att" static inline ... foo { asm("..."); } #pragma clang asm_dialect pop The pragma really wo

[PATCH] D113645: [clangd] Allow Unix config paths on Darwin

2021-11-12 Thread Keith Smiley via Phabricator via cfe-commits
keith added a comment. In D113645#3126652 , @kadircet wrote: > I got a couple of concerns about the general ideas in the change. Even though > the convenience of using ~/.config/clangd/config.yaml seems nice, I think > it'll just end up creating confusi

  1   2   >