[PATCH] D103958: [WIP] Support MustControl conditional control attribute

2021-06-10 Thread Marco Elver via Phabricator via cfe-commits
melver updated this revision to Diff 351229. melver added a comment. As promised, some cleanups, docs, and updated test for the current version (no other major changes yet). While the identical-writes test is quite contrived, the currently failing switch test is a more realistic example. The exam

[PATCH] D104052: [clang] Fix CallExpr dependence bit may not respecting all its arguments.

2021-06-10 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. hokein requested review of this revision. Herald added a project: clang. Before this patch, the dependence of CallExpr was only computed in the constructor, the dependence bits might not reflect truth -- some arguments might be not

[PATCH] D103021: [clang-tidy] performance-unnecessary-copy-initialization: Search whole function body for variable initializations.

2021-06-10 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel added inline comments. Comment at: clang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp:98-101 auto Matches = match(findAll(declStmt(has(varDecl(equalsNode(&InitializingVar .bind("declStmt")), +Body

[PATCH] D103495: [static initializers] Emit global_ctors and global_dtors in reverse order when init_array is not used.

2021-06-10 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. lgtm CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103495/new/ https://reviews.llvm.org/D103495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[PATCH] D103131: support debug info for alias variable

2021-06-10 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. Any idea if the GDB test suite covers this functionality? I'd hope so, but maybe it doesn't. But yeah, at the moment I don't have any great reason to avoid the imported declaration form - so happy to go with that. Repository: rG LLVM Github Monorepo CHANGES SINCE

[PATCH] D103958: [WIP] Support MustControl conditional control attribute

2021-06-10 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. > Defining the value used to establish a control dependency, e.g. the load > later writes depend on (kernel only defines writes to be ctrl-dependently > ordered). `[[mustcontrol]]` also has this problem. At the LLVM IR level, if just want to split the load from the co

[PATCH] D103930: [clang][HeaderSearch] Fix implicit module when using header maps

2021-06-10 Thread Andrew Gallagher via Phabricator via cfe-commits
andrewjcg added a comment. Hmm, I can't repro the module test failures locally. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103930/new/ https://reviews.llvm.org/D103930 ___ cfe-commits mailing list cfe

[PATCH] D102186: [clang][c++20] Fix false warning for unused private fields when a class has only defaulted comparison operators.

2021-06-10 Thread Alexandru Octavian Buțiu via Phabricator via cfe-commits
predator5047 added a comment. ping Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D102186/new/ https://reviews.llvm.org/D102186 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

[PATCH] D104044: [clang-format] Fix the issue of no empty line after namespace

2021-06-10 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. In D104044#2810909 , @darwin wrote: > Sorry, I may need some help here. It shows "Context not available.", how do I > correct it? There are multiple ways: https://llvm.org/docs/Phabricator.html#requesting-a-review-vi

[PATCH] D90238: [clang-format] Added ReferenceAlignmentStyle option - (Update to D31635)

2021-06-10 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. I think this would be a nice addition, and in the past I would have used it. I really like the option `Pointer`. If this will be pursued I will be happy to review it. Comment at: clang/unittests/Format/FormatTest.cpp:895 + verifyFormat("in

[PATCH] D101868: [clang-format] Adds a formatter for aligning arrays of structs

2021-06-10 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks accepted this revision. HazardyKnusperkeks added a comment. In D101868#2810452 , @feg208 wrote: > If I can get someone to submit this on my behalf I think we can call it a day. Please post the name and email for the commit. And if no o

[PATCH] D103678: [Format] Fix incorrect pointer/reference detection

2021-06-10 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks accepted this revision. HazardyKnusperkeks added a comment. Do you need some one to commit this? If yes please state name and email, some one will chime in to commit it. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103678/new/ https://reviews.llvm.org/D103678 _

[PATCH] D102706: [clang-format] Add new LambdaBodyIndentation option

2021-06-10 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. In D102706#2787550 , @HazardyKnusperkeks wrote: > LGTM, but please wait for more responses. No one objected, so I declare it ready to commit. Do you need some one to do it? If yes please post name and email for the c

[PATCH] D103888: [ADT] Remove APInt/APSInt toString() std::string variants

2021-06-10 Thread David Blaikie via Phabricator via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. Sounds OK. I wouldn't mind the places that can use op<< to use that - not sure preserving the explicit radix argument is super high value. (I think people would generally assume that's th

[PATCH] D91950: [clang-format] Add BreakBeforeInlineASMColon configuration

2021-06-10 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. Then we can push it, do you need some one to do that? If yes please post name and email. Comment at: clang/unittests/Format/FormatTest.cpp:18475 +)", +Style); } I think the pre merge lint means this line. Please fix that an

[PATCH] D99840: [clang-format] Correctly attach enum braces with ShortEnums disabled

2021-06-10 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks accepted this revision. HazardyKnusperkeks added a comment. In D99840#2718959 , @curdeius wrote: > LGTM. I also consider it a bug. LLVM should not be affected as it uses > `AllowShortEnumsOnASingleLine: true` whereas this problem arises

[PATCH] D101868: [clang-format] Adds a formatter for aligning arrays of structs

2021-06-10 Thread Fred Grim via Phabricator via cfe-commits
feg208 added a comment. In D101868#2811290 , @HazardyKnusperkeks wrote: > In D101868#2810452 , @feg208 wrote: > >> If I can get someone to submit this on my behalf I think we can call it a >> day. > > Please pos

[clang] 1d3873d - Move variable only used inside an assert into the assert.

2021-06-10 Thread Sterling Augustine via cfe-commits
Author: Sterling Augustine Date: 2021-06-10T13:14:45-07:00 New Revision: 1d3873d41eca67e974bafbaa91866581bcc0d973 URL: https://github.com/llvm/llvm-project/commit/1d3873d41eca67e974bafbaa91866581bcc0d973 DIFF: https://github.com/llvm/llvm-project/commit/1d3873d41eca67e974bafbaa91866581bcc0d973.

[PATCH] D103958: [WIP] Support MustControl conditional control attribute

2021-06-10 Thread Marco Elver via Phabricator via cfe-commits
melver added a comment. In D103958#2811246 , @efriedma wrote: >> Defining the value used to establish a control dependency, e.g. the load >> later writes depend on (kernel only defines writes to be ctrl-dependently >> ordered). > > `[[mustcontrol]]` als

[PATCH] D103928: [IR] make -warn-frame-size into a module attr

2021-06-10 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added inline comments. Comment at: clang/test/Frontend/Wframe-larger-than.c:2 +// RUN: %clang -Wframe-larger-than=42 -v -E - < /dev/null 2>&1 | FileCheck %s +// Check that we pass -Wframe-larger-than through to cc1. +// CHECK: cc1 {{.*}} -fwa

[PATCH] D103928: [IR] make -warn-frame-size into a module attr

2021-06-10 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers updated this revision to Diff 351250. nickdesaulniers marked an inline comment as done. nickdesaulniers added a comment. - move driver test from clang/test/Frontend/ to clang/test/Driver/, update comment, clarify TODOs Repository: rG LLVM Github Monorepo CHANGES SINCE LAST AC

[PATCH] D104056: [clangd][nfc] Show more information in logs when compiler instance prepare fails

2021-06-10 Thread Aleksandr Platonov via Phabricator via cfe-commits
ArcsinX created this revision. ArcsinX added reviewers: sammccall, kadircet. Herald added subscribers: usaxena95, arphaman. ArcsinX requested review of this revision. Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. Without this patch clangd

[PATCH] D104058: ThinLTO: Fix inline assembly references to static functions with CFI

2021-06-10 Thread Sami Tolvanen via Phabricator via cfe-commits
samitolvanen created this revision. Herald added subscribers: ormris, steven_wu, hiraditya, inglorion. samitolvanen requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits, cfe-commits. Create an internal alias with the original name for static

[PATCH] D104058: ThinLTO: Fix inline assembly references to static functions with CFI

2021-06-10 Thread Sami Tolvanen via Phabricator via cfe-commits
samitolvanen added reviewers: nickdesaulniers, pcc, tejohnson, kees, eugenis. samitolvanen added inline comments. Comment at: llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp:79 + GlobalValue::InternalLinkage, Name, F, &ExportM); + appendToCompil

[clang] 667fbcd - [clang] NRVO: Improvements and handling of more cases.

2021-06-10 Thread Matheus Izvekov via cfe-commits
Author: Matheus Izvekov Date: 2021-06-10T23:02:51+02:00 New Revision: 667fbcdd0b2ee5e78f5ce9789b862e3bbca94644 URL: https://github.com/llvm/llvm-project/commit/667fbcdd0b2ee5e78f5ce9789b862e3bbca94644 DIFF: https://github.com/llvm/llvm-project/commit/667fbcdd0b2ee5e78f5ce9789b862e3bbca94644.dif

[PATCH] D99696: [clang] NRVO: Improvements and handling of more cases.

2021-06-10 Thread Matheus Izvekov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG667fbcdd0b2e: [clang] NRVO: Improvements and handling of more cases. (authored by mizvekov). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99696/new/ https:

[PATCH] D99005: [clang] Implement P2266 Simpler implicit move

2021-06-10 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov updated this revision to Diff 351274. mizvekov added a comment. rerun pipeline. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99005/new/ https://reviews.llvm.org/D99005 Files: clang/include/clang/Sema/Sema.h clang/lib/Sema/SemaCorouti

[PATCH] D99005: [clang] Implement P2266 Simpler implicit move

2021-06-10 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone accepted this revision. Quuxplusone added a comment. This revision is now accepted and ready to land. IMHO we should just land this already. (It's been sitting without major update since mid-April.) It is intended to affect only `-std=c++2b` mode, and implements a paper (full disclo

[PATCH] D99005: [clang] Implement P2266 Simpler implicit move

2021-06-10 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added a comment. Actually we can land it now. @rsmith gave me the go ahead in private. The windows pipeline passes. The latest debian build failure is some random fortran thing, so we are good. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org

[clang] cbd0054 - [clang] Implement P2266 Simpler implicit move

2021-06-10 Thread Matheus Izvekov via cfe-commits
Author: Matheus Izvekov Date: 2021-06-11T00:56:06+02:00 New Revision: cbd0054b9eb17ec48f0702e3828209646c8f5ebd URL: https://github.com/llvm/llvm-project/commit/cbd0054b9eb17ec48f0702e3828209646c8f5ebd DIFF: https://github.com/llvm/llvm-project/commit/cbd0054b9eb17ec48f0702e3828209646c8f5ebd.dif

[PATCH] D99005: [clang] Implement P2266 Simpler implicit move

2021-06-10 Thread Matheus Izvekov 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 rGcbd0054b9eb1: [clang] Implement P2266 Simpler implicit move (authored by mizvekov). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D104071: [AST] Include the TranslationUnitDecl when traversing with TraversalScope

2021-06-10 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added reviewers: hokein, chh, srhines. Herald added subscribers: usaxena95, kadircet, arphaman. sammccall requested review of this revision. Herald added projects: clang, clang-tools-extra. Herald added a subscriber: cfe-commits. Given `int foo, bar;`, Tr

[PATCH] D104071: [AST] Include the TranslationUnitDecl when traversing with TraversalScope

2021-06-10 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. This includes both the traversal change and the clangd changes to adapt to it, since there ended up being few. I chickened out of the idea of changing the behavior of TranslationUnitDecl::decls(), for a couple of reasons: - having it apply to RecursiveASTVisitor only

[clang] fc018eb - [IR] make -warn-frame-size into a module attr

2021-06-10 Thread Nick Desaulniers via cfe-commits
Author: Nick Desaulniers Date: 2021-06-10T16:15:27-07:00 New Revision: fc018ebb608ee0c1239b405460e49f1835ab6175 URL: https://github.com/llvm/llvm-project/commit/fc018ebb608ee0c1239b405460e49f1835ab6175 DIFF: https://github.com/llvm/llvm-project/commit/fc018ebb608ee0c1239b405460e49f1835ab6175.di

[PATCH] D103928: [IR] make -warn-frame-size into a module attr

2021-06-10 Thread Nick Desaulniers 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 rGfc018ebb608e: [IR] make -warn-frame-size into a module attr (authored by nickdesaulniers). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[PATCH] D103495: [static initializers] Emit global_ctors and global_dtors in reverse order when .ctors/.dtors are used.

2021-06-10 Thread Wolfgang Pieb 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 rG5a1589fc6d11: [static initializers] Emit global_ctors and global_dtors in reverse order when . (authored by wolfgangp). Repository: rG LLVM Github

[PATCH] D104076: [clang-cl][sanitizer] Add -fsanitize-address-use-after-return to clang.

2021-06-10 Thread Kevin Athey via Phabricator via cfe-commits
kda created this revision. Herald added subscribers: ormris, dexonsmith, dang, hiraditya. kda requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits, cfe-commits. Also: - add driver test (fsanitize-use-after-return.c) - add basic IR test (asa

[PATCH] D103131: support debug info for alias variable

2021-06-10 Thread kamlesh kumar via Phabricator via cfe-commits
kamleshbhalui added a comment. In D103131#2811220 , @dblaikie wrote: > Any idea if the GDB test suite covers this functionality? I'd hope so, but > maybe it doesn't. > > But yeah, at the moment I don't have any great reason to avoid the imported > decla

[PATCH] D101139: Create install targets for scan-build-py.

2021-06-10 Thread Daniel via Phabricator via cfe-commits
isthismyaccount commandeered this revision. isthismyaccount edited reviewers, added: aabbaabb; removed: isthismyaccount. isthismyaccount added a comment. Grabbing this revision. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101139/new/ https://reviews.llvm.org/D101139 _

[PATCH] D101139: Create install targets for scan-build-py.

2021-06-10 Thread Daniel via Phabricator via cfe-commits
isthismyaccount updated this revision to Diff 351308. isthismyaccount added a comment. Rebased to hopefully resolve merge issues. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101139/new/ https://reviews.llvm.org/D101139 Files: clang/cmake/caches/Fuchsia-stage2.cmake clang/tools/CM

[PATCH] D104076: [clang-cl][sanitizer] Add -fsanitize-address-use-after-return to clang.

2021-06-10 Thread Kevin Athey via Phabricator via cfe-commits
kda updated this revision to Diff 351316. kda added a comment. - Change default parameters from Invalid to Never. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D104076/new/ https://reviews.llvm.org/D104076 Files: clang/include/clang/Basic/CodeGen

[PATCH] D104082: [CodeGen] Don't create a fake FunctionDecl when generating block/block_byref copy/dispose helper functions

2021-06-10 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak created this revision. ahatanak added reviewers: rjmccall, aprantl, vsk. ahatanak added a project: clang. ahatanak requested review of this revision. These fake functions were causing clang to crash when https://reviews.llvm.org/D98799 made some changes. The line number information is n

[PATCH] D104082: [CodeGen] Don't create a fake FunctionDecl when generating block/block_byref copy/dispose helper functions

2021-06-10 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. Also, is it okay to emit the `linkageName`, but not the `name` for the helper functions? It seems okay to me, but I'm not sure. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D104082/new/ https://reviews.llvm.org/D104082 _

[PATCH] D98799: [UniqueLinkageName] Use consistent checks when mangling symbo linkage name and debug linkage name.

2021-06-10 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. Here is the patch that removes the fake FunctionDecls: https://reviews.llvm.org/D104082 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D98799/new/ https://reviews.llvm.org/D98799 ___

[PATCH] D104085: [compiler-rt][hwasan] Setup hwasan thread handling on Fuchsia

2021-06-10 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan created this revision. leonardchan added reviewers: phosek, mcgrathr. leonardchan added a project: Sanitizers. Herald added subscribers: jfb, mgorny, dberris. leonardchan requested review of this revision. Herald added a subscriber: Sanitizers. This patch splits up hwasan thread creati

[PATCH] D99696: [clang] NRVO: Improvements and handling of more cases.

2021-06-10 Thread Stella Stamenova via Phabricator via cfe-commits
stella.stamenova added a comment. It looks like this caused a couple of failures on the Windows LLDB bot due to crashes in clang: https://lab.llvm.org/buildbot/#/builders/83/builds/7142 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99696/new/ htt

[PATCH] D104088: Add clang frontend flags for MIP

2021-06-10 Thread Ellis Hoag via Phabricator via cfe-commits
ellis created this revision. Herald added subscribers: dang, phosek, mgorny, emaste. Herald added a reviewer: alexshap. Herald added a reviewer: rupprecht. Herald added a reviewer: jhenderson. ellis requested review of this revision. Herald added subscribers: llvm-commits, cfe-commits, MaskRay. Her

[PATCH] D104085: [compiler-rt][hwasan] Setup hwasan thread handling on Fuchsia

2021-06-10 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added a comment. The non-fuchsia stuff can be split up in a separate patch when ready, but I'll keep it here for now until we're set on the thread handling. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D104085/new/ https://reviews.llvm

[PATCH] D95425: Implementation of global.get/set for reftypes in LLVM IR

2021-06-10 Thread Paulo Matos via Phabricator via cfe-commits
pmatos added a comment. In D95425#2810027 , @DavidSpickett wrote: > Also affecting riscv-v (riscvv?) so I've reverted the change. > > https://lab.llvm.org/buildbot/#/builders/67/builds/3087 Apologies for the breakages and thanks for reverting. I will tak

[PATCH] D99696: [clang] NRVO: Improvements and handling of more cases.

2021-06-10 Thread Arthur Eubanks via Phabricator via cfe-commits
aeubanks added a comment. Crashes on a stage 2 build on Windows: ../rel/bin/clang-cl /nologo /showIncludes /Foobj/llvm/lib/MC/MCParser/MCParser.MasmParser.obj /c ../../llvm/lib/MC/MCParser/MasmParser.cpp -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT

[clang] db26615 - Revert "[clang] Implement P2266 Simpler implicit move"

2021-06-10 Thread Arthur Eubanks via cfe-commits
Author: Arthur Eubanks Date: 2021-06-10T19:54:50-07:00 New Revision: db26615aa6a165483e6540b3f6ed684a0cbe06df URL: https://github.com/llvm/llvm-project/commit/db26615aa6a165483e6540b3f6ed684a0cbe06df DIFF: https://github.com/llvm/llvm-project/commit/db26615aa6a165483e6540b3f6ed684a0cbe06df.diff

[clang] 85ca7e4 - Revert "[clang] NRVO: Improvements and handling of more cases."

2021-06-10 Thread Arthur Eubanks via cfe-commits
Author: Arthur Eubanks Date: 2021-06-10T20:37:01-07:00 New Revision: 85ca7e424fd050582026a299906c9e8397043c52 URL: https://github.com/llvm/llvm-project/commit/85ca7e424fd050582026a299906c9e8397043c52 DIFF: https://github.com/llvm/llvm-project/commit/85ca7e424fd050582026a299906c9e8397043c52.diff

[clang] 081ae5f - [RISCV] Remove extra assignment of intrinsic ID in ManualCodegen. NFC

2021-06-10 Thread Craig Topper via cfe-commits
Author: Craig Topper Date: 2021-06-10T20:46:34-07:00 New Revision: 081ae5fe1aa3ead6d9da75747d3698f09ff89cb9 URL: https://github.com/llvm/llvm-project/commit/081ae5fe1aa3ead6d9da75747d3698f09ff89cb9 DIFF: https://github.com/llvm/llvm-project/commit/081ae5fe1aa3ead6d9da75747d3698f09ff89cb9.diff

[PATCH] D104044: [clang-format] Fix the issue of no empty line after namespace

2021-06-10 Thread Darwin Xu via Phabricator via cfe-commits
darwin added a comment. In D104044#2811268 , @HazardyKnusperkeks wrote: > In D104044#2810909 , @darwin wrote: > >> Sorry, I may need some help here. It shows "Context not available.", how do >> I correct it? > >

[PATCH] D103595: [clang] Correct MarkFunctionReferenced for local class

2021-06-10 Thread Fütő Gergely via Phabricator via cfe-commits
futogergely added a comment. ping Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103595/new/ https://reviews.llvm.org/D103595 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[PATCH] D104076: [clang-cl][sanitizer] Add -fsanitize-address-use-after-return to clang.

2021-06-10 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka accepted this revision. vitalybuka added a comment. This revision is now accepted and ready to land. LGTM with some nits and if you extract FunctionStackPoisoner::initializeCallbacks into a separate patch Comment at: clang/test/CodeGen/asan-use-after-return.cpp:3 +/

[PATCH] D103938: Diagnose -Wunused-value in constant evaluation context

2021-06-10 Thread Yuanfang Chen via Phabricator via cfe-commits
ychen updated this revision to Diff 351343. ychen added a comment. - Add `DiagIfReachable` and use it in `Sema::DiagnoseUnusedExprResult`. - Update tests. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103938/new/ https://reviews.llvm.org/D103938 F

[PATCH] D103938: Diagnose -Wunused-value in constant evaluation context

2021-06-10 Thread Yuanfang Chen via Phabricator via cfe-commits
ychen added a comment. In D103938#2806885 , @rsmith wrote: > This will diagnose unused values in unreachable code in constant-evaluated > contexts; that doesn't seem quite right. For example, in: > > void f() { > new double[false ? (1, 2) : 3][fals

[PATCH] D103605: [analyzer] Introduce a new interface for tracking

2021-06-10 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Ok this is amazing, no more comments!! Comment at: clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h:210 + ///much. + virtual Result track(KnownS

[PATCH] D103618: [analyzer] Change FindLastStoreBRVisitor to use Tracker

2021-06-10 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Got it, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103618/new/ https://reviews.llvm.org/D103618 __

[PATCH] D103644: [analyzer] Refactor StoreSiteFinder and extract DefaultStoreHandler

2021-06-10 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp:2047 + +// TODO: get rid of it. +const DeclStmt *DS = nullptr; WDYM? Also maybe downscope it? Comment at: clang/lib/StaticAnalyzer/Core/BugRep

[PATCH] D103677: [analyzer] Extract ControlDependencyHandler

2021-06-10 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Great! Comment at: clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp:2114 &getParentTracker(), InputNode); - Result.FoundSomethingToTrack = true; + return

[PATCH] D103902: [analyzer] Extract NilReceiverHandler

2021-06-10 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. I'm loving it! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103902/new/ https://reviews.llvm.org/D103902 ___

[PATCH] D103914: [analyzer] Extract ArrayIndexHandler

2021-06-10 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Nice and clean, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103914/new/ https://reviews.llvm.org/D103914 __

[PATCH] D103917: [analyzer] Extract InterestingLValueHandler

2021-06-10 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added inline comments. This revision is now accepted and ready to land. Comment at: clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp:2156 -class DefaultExpressionHandler final : public ExpressionHandler { +// TODO: extract it into more handl

<    1   2