Page MenuHomePhabricator

Sockke (gehry)
User

Projects

User does not belong to any projects.

User Details

User Since
Apr 20 2021, 1:55 AM (100 w, 5 d)

Recent Activity

Feb 7 2023

Sockke added a comment to D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

@carlosgalvezp Thanks for your review! I committed it myself.

Feb 7 2023, 3:36 AM · Restricted Project, Restricted Project
Sockke committed rGce6de98b80ad: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl (authored by Sockke).
[clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl
Feb 7 2023, 3:35 AM · Restricted Project, Restricted Project
Sockke closed D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.
Feb 7 2023, 3:35 AM · Restricted Project, Restricted Project
Sockke updated the diff for D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

Rebased.

Feb 7 2023, 1:11 AM · Restricted Project, Restricted Project

Jan 16 2023

Sockke added a comment to D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

Hi, Could anyone please review this diff?

Jan 16 2023, 3:38 AM · Restricted Project, Restricted Project

Jan 4 2023

Sockke added a comment to D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

Friendly ping.

Jan 4 2023, 1:45 AM · Restricted Project, Restricted Project

Dec 26 2022

Sockke added a comment to D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

Friendly ping.

Dec 26 2022, 6:36 AM · Restricted Project, Restricted Project

Dec 22 2022

Sockke added a comment to D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

Mark comments.

Dec 22 2022, 10:35 PM · Restricted Project, Restricted Project
Sockke updated the diff for D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

Improved the test file.

Dec 22 2022, 1:50 AM · Restricted Project, Restricted Project

Dec 20 2022

Sockke updated the diff for D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

Added comments

Dec 20 2022, 3:49 AM · Restricted Project, Restricted Project

Dec 19 2022

Sockke added a comment to D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

Friendly ping.

Dec 19 2022, 1:42 AM · Restricted Project, Restricted Project

Dec 2 2022

Sockke added a comment to D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

Friendly ping.

Dec 2 2022, 3:53 AM · Restricted Project, Restricted Project

Nov 29 2022

Sockke updated the diff for D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

Added test in existing init-variables.cpp file.

Nov 29 2022, 4:52 AM · Restricted Project, Restricted Project

Nov 24 2022

Sockke updated the diff for D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.

Added test.

Nov 24 2022, 11:34 PM · Restricted Project, Restricted Project
Sockke requested review of D138655: [clang-tidy] Fix `cppcoreguidelines-init-variables` for invalid vardecl.
Nov 24 2022, 4:19 AM · Restricted Project, Restricted Project

Aug 25 2022

Sockke committed rG2d8e91a5d359: [clang-tidy] Ignore other members in a union if any member of it is initialized… (authored by Sockke).
[clang-tidy] Ignore other members in a union if any member of it is initialized…
Aug 25 2022, 3:49 AM · Restricted Project, Restricted Project
Sockke added a comment to D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

This patch has been around for a long time, I have added the release notes. There are users waiting for this fix and I committed it myself first.
@LegalizeAdulthood I'm looking forward to your follow-up reply.

Aug 25 2022, 3:49 AM · Restricted Project, Restricted Project
Sockke closed D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.
Aug 25 2022, 3:49 AM · Restricted Project, Restricted Project
Sockke updated the diff for D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

Rebased.

Aug 25 2022, 2:38 AM · Restricted Project, Restricted Project

Aug 22 2022

Sockke added a comment to D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

Friendly ping @LegalizeAdulthood.

Aug 22 2022, 5:28 AM · Restricted Project, Restricted Project

Aug 16 2022

Sockke added a comment to D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

Hi, @LegalizeAdulthood, are you okay with the way this has progressed?

Aug 16 2022, 3:42 AM · Restricted Project, Restricted Project

Aug 1 2022

Sockke updated the diff for D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

Rebased.

Aug 1 2022, 11:15 PM · Restricted Project, Restricted Project

Jul 28 2022

Sockke added a comment to D128697: [clang-tidy] Add new check `bugprone-unhandled-exception-at-sto`.

Friendly ping.

Jul 28 2022, 2:39 AM · Restricted Project, Restricted Project
Sockke added a comment to D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

Friendly ping.

Jul 28 2022, 2:39 AM · Restricted Project, Restricted Project

Jul 19 2022

Sockke updated the diff for D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

Added test cases where there is a struct with an anonymous union and another field that does need an initializer.

Jul 19 2022, 5:50 AM · Restricted Project, Restricted Project

Jul 18 2022

Sockke added a comment to D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

Friendly ping.

Jul 18 2022, 4:30 AM · Restricted Project, Restricted Project
Sockke added a comment to D128697: [clang-tidy] Add new check `bugprone-unhandled-exception-at-sto`.

Friendly ping.

Jul 18 2022, 4:30 AM · Restricted Project, Restricted Project

Jul 8 2022

Sockke added a comment to D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

Friendly ping.

Jul 8 2022, 4:13 AM · Restricted Project, Restricted Project
Sockke added a comment to D128697: [clang-tidy] Add new check `bugprone-unhandled-exception-at-sto`.

This whole check seems weird to me. I mean, almost every use of a standard container could throw std::bad_alloc but we don't insist on a local catch for bad_alloc at every possible throwing call site.

Why would we assume that every call site of stoi or stod must have an exception handler immediately around it? It's perfectly acceptable for an application to handle this at an outer scope that can't be detected by clang-tidy.

Jul 8 2022, 4:13 AM · Restricted Project, Restricted Project
Sockke added a comment to D128697: [clang-tidy] Add new check `bugprone-unhandled-exception-at-sto`.

I think will be good idea to make check more generic and allow user-defined list of unsafe functions.

Jul 8 2022, 4:09 AM · Restricted Project, Restricted Project

Jun 29 2022

Sockke updated the diff for D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

Added release notes.

Jun 29 2022, 8:22 PM · Restricted Project, Restricted Project

Jun 28 2022

Sockke updated the diff for D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

rebased.

Jun 28 2022, 1:13 AM · Restricted Project, Restricted Project

Jun 27 2022

Sockke requested review of D128697: [clang-tidy] Add new check `bugprone-unhandled-exception-at-sto`.
Jun 27 2022, 11:14 PM · Restricted Project, Restricted Project

Jun 20 2022

Sockke updated the diff for D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

rebased.

Jun 20 2022, 1:54 AM · Restricted Project, Restricted Project

Jun 8 2022

Sockke updated the diff for D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.

Fix test file.

Jun 8 2022, 8:01 PM · Restricted Project, Restricted Project
Sockke set the repository for D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init to rG LLVM Github Monorepo.
Jun 8 2022, 5:03 AM · Restricted Project, Restricted Project
Sockke requested review of D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init.
Jun 8 2022, 5:03 AM · Restricted Project, Restricted Project

May 29 2022

Sockke committed rG3f3a235aa2e6: [clang-apply-replacements] Added an option to ignore insert conflict. (authored by Sockke).
[clang-apply-replacements] Added an option to ignore insert conflict.
May 29 2022, 10:05 PM · Restricted Project, Restricted Project, Restricted Project
Sockke closed D123924: [clang-apply-replacements] Added an option to ignore insert conflict..
May 29 2022, 10:05 PM · Restricted Project, Restricted Project, Restricted Project
Sockke updated the diff for D123924: [clang-apply-replacements] Added an option to ignore insert conflict..
May 29 2022, 8:28 PM · Restricted Project, Restricted Project, Restricted Project
Sockke committed rGc98b3a8cd985: Fix `performance-unnecessary-value-param` for template specialization (authored by Sockke).
Fix `performance-unnecessary-value-param` for template specialization
May 29 2022, 6:56 PM · Restricted Project, Restricted Project
Sockke closed D116593: Fix `performance-unnecessary-value-param` for template specialization.
May 29 2022, 6:56 PM · Restricted Project, Restricted Project

May 27 2022

Sockke updated the diff for D123924: [clang-apply-replacements] Added an option to ignore insert conflict..

rebased.

May 27 2022, 4:41 AM · Restricted Project, Restricted Project, Restricted Project
Sockke updated the diff for D116593: Fix `performance-unnecessary-value-param` for template specialization.

Rebased and added '-fno-delayed-template-parsing' option for the test file.

May 27 2022, 4:18 AM · Restricted Project, Restricted Project

May 19 2022

Sockke added a comment to D116593: Fix `performance-unnecessary-value-param` for template specialization.

I'm not quite sure why the test case is not passing on Windows, could you please check this problem? Thanks for your assistance. @flx

May 19 2022, 5:09 AM · Restricted Project, Restricted Project
Sockke added a comment to D123924: [clang-apply-replacements] Added an option to ignore insert conflict..

Hi, Could anyone please review this diff?

May 19 2022, 3:10 AM · Restricted Project, Restricted Project, Restricted Project
Sockke updated the diff for D116593: Fix `performance-unnecessary-value-param` for template specialization.

rebased.

May 19 2022, 3:06 AM · Restricted Project, Restricted Project

May 8 2022

Sockke added a comment to D123924: [clang-apply-replacements] Added an option to ignore insert conflict..

Friendly ping.

May 8 2022, 11:33 PM · Restricted Project, Restricted Project, Restricted Project
Sockke added a reviewer for D123924: [clang-apply-replacements] Added an option to ignore insert conflict.: njames93.
May 8 2022, 11:32 PM · Restricted Project, Restricted Project, Restricted Project

Apr 28 2022

Sockke added a comment to D123924: [clang-apply-replacements] Added an option to ignore insert conflict..

Friendly ping.

Apr 28 2022, 7:28 AM · Restricted Project, Restricted Project, Restricted Project

Apr 26 2022

Sockke updated the diff for D123924: [clang-apply-replacements] Added an option to ignore insert conflict..

Rename the function.

Apr 26 2022, 3:24 AM · Restricted Project, Restricted Project, Restricted Project

Apr 18 2022

Sockke updated the diff for D123924: [clang-apply-replacements] Added an option to ignore insert conflict..
Apr 18 2022, 5:04 AM · Restricted Project, Restricted Project, Restricted Project
Sockke added a comment to D123924: [clang-apply-replacements] Added an option to ignore insert conflict..

It stands to reason that there should be no insert conflicts in the YAML generated by clang-tidy except for the header insertion. The two checks that caused the conflict should be fixed in clang-tidy.

Apr 18 2022, 4:43 AM · Restricted Project, Restricted Project, Restricted Project
Sockke updated the diff for D123924: [clang-apply-replacements] Added an option to ignore insert conflict..

Added an option to ignore insert conflict and this option was enabled by default in run-clang-tidy.py.

Apr 18 2022, 4:29 AM · Restricted Project, Restricted Project, Restricted Project
Sockke retitled D123924: [clang-apply-replacements] Added an option to ignore insert conflict. from [clang-apply-replacements] Added support for adjusting conflict offset. to [WIP][clang-apply-replacements] Added support for adjusting conflict offset..
Apr 18 2022, 3:34 AM · Restricted Project, Restricted Project, Restricted Project
Sockke updated the summary of D123924: [clang-apply-replacements] Added an option to ignore insert conflict..
Apr 18 2022, 12:59 AM · Restricted Project, Restricted Project, Restricted Project
Sockke requested review of D123924: [clang-apply-replacements] Added an option to ignore insert conflict..
Apr 18 2022, 12:56 AM · Restricted Project, Restricted Project, Restricted Project

Mar 2 2022

Sockke updated the diff for D116593: Fix `performance-unnecessary-value-param` for template specialization.
Mar 2 2022, 12:47 AM · Restricted Project, Restricted Project
Sockke updated the diff for D116593: Fix `performance-unnecessary-value-param` for template specialization.
Mar 2 2022, 12:29 AM · Restricted Project, Restricted Project

Mar 1 2022

Sockke committed rGba54ebeb5eba: [clang-tidy] Fix `readability-const-return-type` for pure virtual function. (authored by Sockke).
[clang-tidy] Fix `readability-const-return-type` for pure virtual function.
Mar 1 2022, 4:59 AM
Sockke closed D116439: [clang-tidy] Fix `readability-const-return-type` for pure virtual function..
Mar 1 2022, 4:59 AM · Restricted Project
Sockke updated the diff for D116439: [clang-tidy] Fix `readability-const-return-type` for pure virtual function..
Mar 1 2022, 4:51 AM · Restricted Project

Feb 27 2022

Sockke updated the diff for D116593: Fix `performance-unnecessary-value-param` for template specialization.

Added a release note.

Feb 27 2022, 7:49 PM · Restricted Project, Restricted Project
Sockke updated the diff for D116439: [clang-tidy] Fix `readability-const-return-type` for pure virtual function..

Added a release note.

Feb 27 2022, 7:01 PM · Restricted Project

Feb 25 2022

Sockke updated the diff for D116439: [clang-tidy] Fix `readability-const-return-type` for pure virtual function..

Removed the fix for the virtual function.

Feb 25 2022, 3:34 AM · Restricted Project
Sockke updated the diff for D116593: Fix `performance-unnecessary-value-param` for template specialization.

Removed the fix for the template.

Feb 25 2022, 12:17 AM · Restricted Project, Restricted Project

Feb 24 2022

Sockke committed rG6cbf15e9b5ac: [clang-tidy] Fix `readability-non-const-parameter` for parameter referenced by… (authored by Sockke).
[clang-tidy] Fix `readability-non-const-parameter` for parameter referenced by…
Feb 24 2022, 11:06 PM
Sockke closed D117090: [clang-tidy] Fix `readability-non-const-parameter` for parameter referenced by an lvalue.
Feb 24 2022, 11:06 PM · Restricted Project
Sockke updated the diff for D117090: [clang-tidy] Fix `readability-non-const-parameter` for parameter referenced by an lvalue.

rebased.

Feb 24 2022, 6:57 PM · Restricted Project

Feb 23 2022

Sockke added inline comments to D117090: [clang-tidy] Fix `readability-non-const-parameter` for parameter referenced by an lvalue.
Feb 23 2022, 6:56 PM · Restricted Project
Sockke updated the diff for D117090: [clang-tidy] Fix `readability-non-const-parameter` for parameter referenced by an lvalue.

Add a release note and improve test description information.

Feb 23 2022, 2:38 AM · Restricted Project

Jan 20 2022

Sockke added a comment to D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

Do you need someone to commit on your behalf?

Jan 20 2022, 10:36 PM · Restricted Project
Sockke committed rGa7f8aea71485: [clang-tidy] Fix wrong FixIt in performance-move-const-arg (authored by Sockke).
[clang-tidy] Fix wrong FixIt in performance-move-const-arg
Jan 20 2022, 10:31 PM
Sockke closed D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.
Jan 20 2022, 10:31 PM · Restricted Project

Jan 19 2022

Sockke updated the diff for D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

Improve some description.

Jan 19 2022, 6:28 PM · Restricted Project

Jan 17 2022

Sockke accepted D115124: [clang-tidy] Fix `readability-container-size-empty` check for smart pointers.

Thanks for improving this check! I think it looks great and safe enough. It would be better to turn !(*ptr).empty() into !ptr->empty(), but I have no particular opinions at this point. Let's see if @aaron.ballman has any comments.

Jan 17 2022, 11:32 PM · Restricted Project, Restricted Project

Jan 14 2022

Sockke added inline comments to D117090: [clang-tidy] Fix `readability-non-const-parameter` for parameter referenced by an lvalue.
Jan 14 2022, 3:38 AM · Restricted Project
Sockke added a comment to D116593: Fix `performance-unnecessary-value-param` for template specialization.

Friendly ping.

Jan 14 2022, 3:34 AM · Restricted Project, Restricted Project
Sockke added a comment to D116439: [clang-tidy] Fix `readability-const-return-type` for pure virtual function..

Friendly ping. @aaron.ballman

Jan 14 2022, 3:33 AM · Restricted Project
Sockke added a comment to D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

Friendly ping. @aaron.ballman

Jan 14 2022, 3:32 AM · Restricted Project

Jan 12 2022

Sockke requested review of D117090: [clang-tidy] Fix `readability-non-const-parameter` for parameter referenced by an lvalue.
Jan 12 2022, 12:11 AM · Restricted Project

Jan 7 2022

Sockke added inline comments to D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.
Jan 7 2022, 1:21 AM · Restricted Project
Sockke updated the diff for D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

Add some checks for null and comments for codes.

Jan 7 2022, 1:16 AM · Restricted Project

Jan 4 2022

Sockke added a comment to D116593: Fix `performance-unnecessary-value-param` for template specialization.

Thanks for your review!

Jan 4 2022, 7:44 PM · Restricted Project, Restricted Project
Sockke requested review of D116593: Fix `performance-unnecessary-value-param` for template specialization.
Jan 4 2022, 4:29 AM · Restricted Project, Restricted Project

Dec 31 2021

Sockke requested review of D116439: [clang-tidy] Fix `readability-const-return-type` for pure virtual function..
Dec 31 2021, 3:42 AM · Restricted Project

Dec 28 2021

Sockke added inline comments to D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.
Dec 28 2021, 3:48 AM · Restricted Project
Sockke updated the diff for D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

Sorry for the late reply. I made improvements to the patch in response to the questions you raised. @aaron.ballman

Dec 28 2021, 3:41 AM · Restricted Project

Dec 24 2021

Sockke requested changes to D115124: [clang-tidy] Fix `readability-container-size-empty` check for smart pointers.

Could you please add a test case where the smart pointer object is dereferenced before calling size()? E.g. return (*ptr).size() == 0;. I think this change doesn't work on this test case.

Dec 24 2021, 2:05 AM · Restricted Project, Restricted Project
Sockke added a reviewer for D115124: [clang-tidy] Fix `readability-container-size-empty` check for smart pointers: Sockke.
Dec 24 2021, 1:53 AM · Restricted Project, Restricted Project

Dec 9 2021

Sockke added a comment to D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

Kindly ping. @aaron.ballman

Dec 9 2021, 3:38 AM · Restricted Project

Nov 26 2021

Sockke added a comment to D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

This generally looks fine for me, but I'd rather have other people who are more knowledgeable about the standard's intricacies looked at it too.

AFAIK Aaron is busy this week and the next (?) due to C++ Committee meetings, or something like that. And I bet after such meetings everyone would take a few more days off from looking at C++ stuff.

Nov 26 2021, 12:31 AM · Restricted Project
Sockke added a comment to D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

Hi, Could anyone please review this diff? @whisperity, @aaron.ballman

Nov 26 2021, 12:14 AM · Restricted Project

Nov 19 2021

Sockke added a comment to D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

Kindly ping. @whisperity

Nov 19 2021, 3:34 AM · Restricted Project

Nov 5 2021

Sockke added a comment to D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

Kindly ping. @whisperity

Nov 5 2021, 6:36 AM · Restricted Project

Nov 4 2021

Sockke updated subscribers of D113148: Add new clang-tidy check for string_view(nullptr).

This seems to be an existing check. Have you compared it with bugprone-string-constructor?

Thanks for the suggestion! From what I can tell, bugprone-string-constructor check only has warnings and does not provide fixes in most cases. The goal of bugprone-stringview-nullptr is to robustly enumerate the many cases that it cares about and provide fixes. For that reason, I think making it a separate check is best.

Nov 4 2021, 7:43 AM · Restricted Project
Sockke updated the diff for D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

In addition, the splicing logics of "FunctionName" and "ExpectParmTypeName" were improved.

Nov 4 2021, 6:28 AM · Restricted Project
Sockke updated the diff for D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

I improved the logic of judgments needing to report suggesting notes in some cases. And more tests were added here.

Nov 4 2021, 5:03 AM · Restricted Project

Nov 3 2021

Sockke added a comment to D113148: Add new clang-tidy check for string_view(nullptr).

This seems to be an existing check. Have you compared it with bugprone-string-constructor?

Nov 3 2021, 8:04 PM · Restricted Project

Oct 27 2021

Sockke added a comment to D107450: [clang-tidy] Fix wrong FixIt in performance-move-const-arg.

I think this is becoming okay and looks safe enough. I can't really grasp what HasCheckedMoveSet means, and how it synergises with storing CallExprs so maybe a better name should be added. Do you mean AlreadyCheckedMoves? When is it possible that the same CallExpr of std::move will be matched multiple times?

Oct 27 2021, 6:01 AM · Restricted Project