[PATCH] D101755: Thread safety analysis: Eliminate parameter from intersectAndWarn (NFC)

2021-05-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101755/new/ https://reviews.llvm.org/D101755

[PATCH] D101682: [Driver] Fix `ToolChain::getCompilerRTPath()` to return the correct path on Apple platforms.

2021-05-04 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman accepted this revision. arphaman added a comment. This revision is now accepted and ready to land. LGTM, the only suggestion I have is below. Comment at: clang/lib/Driver/ToolChain.cpp:408 default: return getOS(); } It might be cleaner to

[PATCH] D101030: [OpenMP] Overhaul `declare target` handling

2021-05-04 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert updated this revision to Diff 342765. jdoerfert marked 4 inline comments as done. jdoerfert added a comment. Remove const cast, clang-format Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101030/new/ https://reviews.llvm.org/D101030

[PATCH] D101030: [OpenMP] Overhaul `declare target` handling

2021-05-04 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert updated this revision to Diff 342764. jdoerfert added a comment. Use mutateType, add test for static variable in function with allocate directive Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101030/new/ https://reviews.llvm.org/D101030

[PATCH] D101640: [clang][patch] Add support for option -fextend-arguments={32,64}: widen integer arguments to int64 in unprototyped function calls

2021-05-04 Thread Melanie Blower via Phabricator via cfe-commits
mibintc updated this revision to Diff 342750. mibintc added a comment. Responded to suggestions from @jansvoboda11 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101640/new/ https://reviews.llvm.org/D101640 Files:

[PATCH] D101776: Work around an unfortunate macro in the Windows SDK

2021-05-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Thank you for the fix! I've committed on your behalf in 54bff1522fc863329894d875d54c2fe4cd1b4f3f CHANGES SINCE LAST ACTION

[clang] 54bff15 - Rename a template parameter that conflicted with a common macro; NFC

2021-05-04 Thread Aaron Ballman via cfe-commits
Author: Zachary Henkel Date: 2021-05-04T11:19:54-04:00 New Revision: 54bff1522fc863329894d875d54c2fe4cd1b4f3f URL: https://github.com/llvm/llvm-project/commit/54bff1522fc863329894d875d54c2fe4cd1b4f3f DIFF:

[PATCH] D101776: Work around an unfortunate macro in the Windows SDK

2021-05-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101776/new/ https://reviews.llvm.org/D101776 ___ cfe-commits mailing

[PATCH] D101030: [OpenMP] Overhaul `declare target` handling

2021-05-04 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added inline comments. Comment at: clang/lib/CodeGen/CGDecl.cpp:2618 +void CodeGenModule::EmitOMPAllocateDecl(const OMPAllocateDecl *D) { + for (Expr *E : const_cast(D)->varlists()) { +auto *DE = cast(E); ABataev wrote: > jdoerfert wrote: > >

[PATCH] D83660: [analyzer] Fix a crash for dereferencing an empty llvm::Optional variable in SMTConstraintManager.h.

2021-05-04 Thread Balázs Benics via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGd882750f1105: [analyzer] Fix a crash for dereferencing an empty llvm::Optional variable in… (authored by OikawaKirie, committed by steakhal). Changed prior to commit:

[clang] d882750 - [analyzer] Fix a crash for dereferencing an empty llvm::Optional variable in SMTConstraintManager.h.

2021-05-04 Thread Balazs Benics via cfe-commits
Author: Ella Ma Date: 2021-05-04T16:50:21+02:00 New Revision: d882750f1105b20d892545e7ebd96f82166dcb53 URL: https://github.com/llvm/llvm-project/commit/d882750f1105b20d892545e7ebd96f82166dcb53 DIFF: https://github.com/llvm/llvm-project/commit/d882750f1105b20d892545e7ebd96f82166dcb53.diff LOG:

[PATCH] D101785: [clangd][ObjC] Highlight Objc Ivar refs

2021-05-04 Thread David Goldman via Phabricator via cfe-commits
dgoldman updated this revision to Diff 342734. dgoldman added a comment. Fix test broken on non-macOS Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101785/new/ https://reviews.llvm.org/D101785 Files: clang-tools-extra/clangd/FindTarget.cpp

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

2021-05-04 Thread Andy Wingo via Phabricator via cfe-commits
wingo added inline comments. Comment at: clang/lib/Basic/Targets/WebAssembly.h:150 : WebAssemblyTargetInfo(T, Opts) { -resetDataLayout("e-m:e-p:32:32-i64:64-n32:64-S128"); +resetDataLayout("e-m:e-p:32:32-i64:64-n32:64-S128-ni:1"); } This change

[PATCH] D100482: [PowerPC] Provide MMA builtins for compatibility

2021-05-04 Thread Ahsan Saghir via Phabricator via cfe-commits
saghir updated this revision to Diff 342732. saghir added a comment. Addressed review comments to add _mma_ version of the built-ins as aliases to the existing _vsx_ versions. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100482/new/

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

2021-05-04 Thread Paulo Matos via Phabricator via cfe-commits
pmatos updated this revision to Diff 342729. pmatos added a comment. Removed extraneous changes to previous patches Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95425/new/ https://reviews.llvm.org/D95425 Files:

[PATCH] D101696: [Matrix] Implement C-style explicit type conversions in CXX for matrix types

2021-05-04 Thread Florian Hahn via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGdb210bc69bb5: [Matrix] Implement C-style explicit type conversions in CXX for matrix types (authored by SaurabhJha, committed by fhahn). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang] db210bc - [Matrix] Implement C-style explicit type conversions in CXX for matrix types

2021-05-04 Thread Florian Hahn via cfe-commits
Author: Saurabh Jha Date: 2021-05-04T15:27:57+01:00 New Revision: db210bc69bb50979fb843b68fcb71a9c905e971b URL: https://github.com/llvm/llvm-project/commit/db210bc69bb50979fb843b68fcb71a9c905e971b DIFF: https://github.com/llvm/llvm-project/commit/db210bc69bb50979fb843b68fcb71a9c905e971b.diff

[PATCH] D101832: [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist=

2021-05-04 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Thanks! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101832/new/ https://reviews.llvm.org/D101832 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D101832: [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist=

2021-05-04 Thread Hans Wennborg via Phabricator via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. lgtm Comment at: clang/include/clang/Driver/Options.td:1524 + Alias, + HelpText<"Deprecated, use -fsanitize-coverage-ignorelist= instead">; def

[PATCH] D101608: [WebAssembly] Support for WebAssembly globals in LLVM IR

2021-05-04 Thread Andy Wingo via Phabricator via cfe-commits
wingo updated this revision to Diff 342719. wingo added a comment. Rebase on main Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101608/new/ https://reviews.llvm.org/D101608 Files: clang/lib/Basic/Targets/WebAssembly.h

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

2021-05-04 Thread Paulo Matos via Phabricator via cfe-commits
pmatos updated this revision to Diff 342718. pmatos added a comment. Fix broken merge of table ins reordering commit Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95425/new/ https://reviews.llvm.org/D95425 Files:

[PATCH] D101776: Work around an unfortunate macro in the Windows SDK

2021-05-04 Thread Zachary Henkel via Phabricator via cfe-commits
zahen added a comment. In D101776#2736003 , @aaron.ballman wrote: >> Once accepted I'll need someone to commit the change on my behalf. > > Thanks for mentioning this up front! What email address and name would you > like to have used for attribution

[PATCH] D101776: Work around an unfortunate macro in the Windows SDK

2021-05-04 Thread Zachary Henkel via Phabricator via cfe-commits
zahen updated this revision to Diff 342715. zahen added a comment. Updated the macro based on Aaron's suggestion. clang-formatted the function. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101776/new/ https://reviews.llvm.org/D101776 Files: clang/include/clang/Analysis/CFG.h

[PATCH] D101052: [OpenCL] Allow pipe as a valid identifier prior to OpenCL 2.0

2021-05-04 Thread Anastasia Stulova 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 rG64911eec75bb: [OpenCL] Allow pipe as a valid identifier prior to OpenCL 2.0. (authored by Anastasia). Herald added a subscriber: ldrumm. Herald

[clang] 64911ee - [OpenCL] Allow pipe as a valid identifier prior to OpenCL 2.0.

2021-05-04 Thread Anastasia Stulova via cfe-commits
Author: Anastasia Stulova Date: 2021-05-04T14:30:42+01:00 New Revision: 64911eec75bb0c54e40665a2c3f744f046c66a59 URL: https://github.com/llvm/llvm-project/commit/64911eec75bb0c54e40665a2c3f744f046c66a59 DIFF:

[PATCH] D101640: [clang][patch] Add support for option -fextend-arguments={32,64}: widen integer arguments to int64 in unprototyped function calls

2021-05-04 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added a comment. Nice, that looks better. I think we can optimize it a tad by introducing an enum with two cases and store that in `LangOptions` instead of a 32-bit number. Comment at: clang/include/clang/Basic/LangOptions.def:417

[PATCH] D101790: [clang-tidy] Aliasing: Add support for passing the variable into a function by reference.

2021-05-04 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware added a comment. In D101790#2734937 , @NoQ wrote: > +Adam, the original author of bugprone-redundant-branch-condition. Adam, do > you have any thoughts regarding the tests regressed by this patch? Are they > something we should

[clang] 0089583 - [clang][cli][docs] Clarify marshalling infrastructure documentation

2021-05-04 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2021-05-04T15:16:32+02:00 New Revision: 00895831ab23f4de2713a6ad529ba48773d067c1 URL: https://github.com/llvm/llvm-project/commit/00895831ab23f4de2713a6ad529ba48773d067c1 DIFF: https://github.com/llvm/llvm-project/commit/00895831ab23f4de2713a6ad529ba48773d067c1.diff

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

2021-05-04 Thread Paulo Matos via Phabricator via cfe-commits
pmatos updated this revision to Diff 342712. pmatos added a comment. Fix patch set... again! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95425/new/ https://reviews.llvm.org/D95425 Files: clang/lib/Basic/Targets/WebAssembly.cpp

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

2021-05-04 Thread Paulo Matos via Phabricator via cfe-commits
pmatos updated this revision to Diff 342708. pmatos added a comment. Herald added a project: clang. Herald added a subscriber: cfe-commits. Fix patch submitted to phab... Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95425/new/

[PATCH] D101766: [TableGen] [Clang] Clean up Options.td and add asserts

2021-05-04 Thread Paul C. Anagnostopoulos via Phabricator via cfe-commits
Paul-C-Anagnostopoulos added inline comments. Comment at: clang/include/clang/Driver/Options.td:1089 + LangOpts<"DoubleSquareBracketAttributes">, + Default, PosFlag, NegFlag, jansvoboda11 wrote: > Paul-C-Anagnostopoulos wrote: > > jansvoboda11 wrote: > > >

[clang] d0e3a15 - [clang][cli] NFC: Remove confusing `EmptyKPM` variable

2021-05-04 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2021-05-04T14:27:57+02:00 New Revision: d0e3a15e36830d0fe6049eb0543f0af5a2e1ad12 URL: https://github.com/llvm/llvm-project/commit/d0e3a15e36830d0fe6049eb0543f0af5a2e1ad12 DIFF: https://github.com/llvm/llvm-project/commit/d0e3a15e36830d0fe6049eb0543f0af5a2e1ad12.diff

[PATCH] D96033: [clang-repl] Land initial infrastructure for incremental parsing

2021-05-04 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor added a comment. (Obviously this should still wait on Richard & John as I think they still have unaddressed objections) CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96033/new/ https://reviews.llvm.org/D96033 ___ cfe-commits

[PATCH] D96033: [clang-repl] Land initial infrastructure for incremental parsing

2021-05-04 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor accepted this revision. teemperor added a comment. This revision is now accepted and ready to land. I believe everything I pointed out so far has been resolved. I still have one more nit about the unit test though (just to not make it fail on some Windows setups). FWIW, given that

[PATCH] D101776: Work around an unfortunate macro in the Windows SDK

2021-05-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. > Once accepted I'll need someone to commit the change on my behalf. Thanks for mentioning this up front! What email address and name would you like to have used for attribution on the commit? Comment at:

[PATCH] D101630: [HIP] Fix device-only compilation

2021-05-04 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added inline comments. Comment at: clang/include/clang/Driver/Options.td:977 NegFlag>; +defm hip_bundle_device_output : BoolFOption<"hip-bundle-device-output", EmptyKPM, DefaultTrue, + PosFlag, The TableGen marshalling infrastructure

[PATCH] D101766: [TableGen] [Clang] Clean up Options.td and add asserts

2021-05-04 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added inline comments. Comment at: clang/include/clang/Driver/Options.td:1089 + LangOpts<"DoubleSquareBracketAttributes">, + Default, PosFlag, NegFlag, Paul-C-Anagnostopoulos wrote: > jansvoboda11 wrote: > > Were you planning to refactor this

[PATCH] D101766: [TableGen] [Clang] Clean up Options.td and add asserts

2021-05-04 Thread Paul C. Anagnostopoulos via Phabricator via cfe-commits
Paul-C-Anagnostopoulos added inline comments. Comment at: clang/include/clang/Driver/Options.td:1089 + LangOpts<"DoubleSquareBracketAttributes">, + Default, PosFlag, NegFlag, jansvoboda11 wrote: > Were you planning to refactor this too? You can't use the

[PATCH] D100934: [clang][modules] Build inferred modules

2021-05-04 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added a comment. In D100934#2733857 , @dexonsmith wrote: > Given that there are four different things being done in this commit, it > sounds naively like it should be four separate commits. If the logic is too > intertwined to land each

[PATCH] D101140: [WebAssembly][CodeGen] IR support for WebAssembly local variables

2021-05-04 Thread Andy Wingo via Phabricator via cfe-commits
wingo updated this revision to Diff 342698. wingo added a comment. Herald added a project: clang. Herald added a subscriber: cfe-commits. Fix clang datalayout expectations Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101140/new/

[PATCH] D101259: [clang-tidy] Fix cppcoreguidelines-pro-type-vararg false positives with __builtin_ms_va_list

2021-05-04 Thread Georgy Komarov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGc2e9baf2e8da: [clang-tidy] Fix cppcoreguidelines-pro-type-vararg false positives with… (authored by jubnzv). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang-tools-extra] c2e9baf - [clang-tidy] Fix cppcoreguidelines-pro-type-vararg false positives with __builtin_ms_va_list

2021-05-04 Thread Georgy Komarov via cfe-commits
Author: Georgy Komarov Date: 2021-05-04T13:49:20+03:00 New Revision: c2e9baf2e8dafe92f57fe4171d4b6a5f50d5999e URL: https://github.com/llvm/llvm-project/commit/c2e9baf2e8dafe92f57fe4171d4b6a5f50d5999e DIFF:

[PATCH] D101516: Introduce clangd-server-monitor tool

2021-05-04 Thread Kirill Bobyrev 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 rG34593ae9982a: Introduce clangd-server-monitor tool (authored by kbobyrev). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang-tools-extra] 34593ae - Introduce clangd-server-monitor tool

2021-05-04 Thread Kirill Bobyrev via cfe-commits
Author: Kirill Bobyrev Date: 2021-05-04T12:48:21+02:00 New Revision: 34593ae9982ad267639893ed4ce41242f9493056 URL: https://github.com/llvm/llvm-project/commit/34593ae9982ad267639893ed4ce41242f9493056 DIFF:

[PATCH] D101516: Introduce clangd-server-monitor tool

2021-05-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 342693. kbobyrev added a comment. Remove leftover --with-monitor from the lit test. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101516/new/ https://reviews.llvm.org/D101516 Files:

[PATCH] D101516: Introduce clangd-server-monitor tool

2021-05-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 342692. kbobyrev marked 3 inline comments as done. kbobyrev added a comment. Resolve post-LGTM comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101516/new/ https://reviews.llvm.org/D101516 Files:

[PATCH] D101516: Introduce clangd-server-monitor tool

2021-05-04 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet accepted this revision. kadircet added a comment. This revision is now accepted and ready to land. thanks, let's ship it! Comment at: clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp:15 +#include "llvm/Support/CommandLine.h" +#include

[PATCH] D100778: [clang-format] Prevent extraneous space insertion in bitshift operators

2021-05-04 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG8fa56f7ededc: [clang-format] Prevent extraneous space insertion in bitshift operators (authored by penagos, committed by krasimir). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang] 8fa56f7 - [clang-format] Prevent extraneous space insertion in bitshift operators

2021-05-04 Thread Krasimir Georgiev via cfe-commits
Author: Luis Penagos Date: 2021-05-04T12:28:49+02:00 New Revision: 8fa56f7ededcbe28cbbb810b5d261b72ab0d8035 URL: https://github.com/llvm/llvm-project/commit/8fa56f7ededcbe28cbbb810b5d261b72ab0d8035 DIFF: https://github.com/llvm/llvm-project/commit/8fa56f7ededcbe28cbbb810b5d261b72ab0d8035.diff

[PATCH] D101516: Introduce clangd-server-monitor tool

2021-05-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 342689. kbobyrev added a comment. Remove (now) unused Python JSON import. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101516/new/ https://reviews.llvm.org/D101516 Files:

[PATCH] D101516: Introduce clangd-server-monitor tool

2021-05-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 342688. kbobyrev marked 2 inline comments as done. kbobyrev added a comment. Address review comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101516/new/ https://reviews.llvm.org/D101516 Files:

[PATCH] D101743: [clangd] Fix hover crash on broken code

2021-05-04 Thread Kadir Cetinkaya via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGf800ac830941: [clangd] Fix hover crash on broken code (authored by kadircet). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang-tools-extra] f800ac8 - [clangd] Fix hover crash on broken code

2021-05-04 Thread Kadir Cetinkaya via cfe-commits
Author: Kadir Cetinkaya Date: 2021-05-04T11:42:31+02:00 New Revision: f800ac8309417b78c084f2eabfd54d43a66b64a2 URL: https://github.com/llvm/llvm-project/commit/f800ac8309417b78c084f2eabfd54d43a66b64a2 DIFF:

[PATCH] D100778: [clang-format] Prevent extraneous space insertion in bitshift operators

2021-05-04 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. @penagos, I'll submit this for you. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100778/new/ https://reviews.llvm.org/D100778 ___ cfe-commits mailing list

[PATCH] D93095: Introduce -Wreserved-identifier

2021-05-04 Thread serge 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 rGb83b23275b74: Introduce -Wreserved-identifier (authored by serge-sans-paille). Herald added a project: clang. Changed prior to commit:

[clang] b83b232 - Introduce -Wreserved-identifier

2021-05-04 Thread via cfe-commits
Author: serge-sans-paille Date: 2021-05-04T11:19:01+02:00 New Revision: b83b23275b745287bf9d3d72a93b593119f53f75 URL: https://github.com/llvm/llvm-project/commit/b83b23275b745287bf9d3d72a93b593119f53f75 DIFF:

[PATCH] D101743: [clangd] Fix hover crash on broken code

2021-05-04 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang-tools-extra/clangd/unittests/HoverTests.cpp:2447 +// Setter variable heuristic might fail if the callexpr is broken. +struct X { int Y; void [[^setY]](float) { Y = foo(x); } };)cpp"); + hokein wrote: >

[PATCH] D101743: [clangd] Fix hover crash on broken code

2021-05-04 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 342671. kadircet added a comment. - s/x/undefined Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101743/new/ https://reviews.llvm.org/D101743 Files: clang-tools-extra/clangd/Hover.cpp

[PATCH] D101766: [TableGen] [Clang] Clean up Options.td and add asserts

2021-05-04 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 accepted this revision. jansvoboda11 added a comment. Nice, thank you, Paul! Comment at: clang/include/clang/Driver/Options.td:1089 + LangOpts<"DoubleSquareBracketAttributes">, + Default, PosFlag, NegFlag, Were you planning to refactor this

[PATCH] D100917: [NewPM] Only invalidate modified functions' analyses in CGSCC passes

2021-05-04 Thread Nikita Popov via Phabricator via cfe-commits
nikic added a comment. An unfortunate side-effect of this change is that NewPM uses even more memory. tramp3d-v4 is up 20% in max-rss (https://llvm-compile-time-tracker.com/compare.php?from=4ef1f90e4d564b872e3598ccef45adb740eb0f0d=d14d84af2f5ebb8ae2188ce6884a29a586dc0a40=max-rss) Repository:

[PATCH] D101702: [clang-format] Add more support for C# 8 nullables

2021-05-04 Thread Marek Kurdej via Phabricator via cfe-commits
curdeius accepted this revision. curdeius added a comment. This revision is now accepted and ready to land. LGTM. That's great. Thanks for working on this and for the cleanup. Comment at: clang/lib/Format/FormatTokenLexer.cpp:102 + +// FIXME: Investigate what token type

[PATCH] D101813: [Driver] Move -print-runtime-dir and -print-resource-dir tests

2021-05-04 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added inline comments. Comment at: clang/test/Driver/print-resource-dir.c:1 +// Test if the -print-resource-dir option is accepted without error. +// Allow unspecified output because the value of CLANG_RESOURCE_DIR is unknown. This isn't very useful. You

[PATCH] D101816: [clangd] don't rename if the triggering loc is not actually being renamed.

2021-05-04 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: usaxena95, kadircet, arphaman. hokein requested review of this revision. Herald added subscribers: MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. See context:

[PATCH] D99599: [NewPM] Add an option to dump pass structure

2021-05-04 Thread Eugene Leviant via Phabricator via cfe-commits
evgeny777 added a comment. > I've already run into having to update these two golden file tests twice I think you can just reduce the tests. No need to revert the entire change, unless there is a replacement for it (D101797 is not) Repository: rG LLVM

[PATCH] D96215: [clang-tidy] Aliasing: Add support for lambda captures.

2021-05-04 Thread Nathan James via Phabricator via cfe-commits
njames93 added a comment. In D96215#2550227 , @NoQ wrote: > Umm, looks like we're both missing the elephant in the room: passing a > variable into a function by reference. > > int _reference(int ) { > return x; > } > > void

<    1   2