-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
util: add internal assignFunctionName()
function
#57916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
util: add internal assignFunctionName()
function
#57916
Conversation
I think it's best to introduce the helper in the other PR, since it is used that way. |
I extracted this so it could be used for other namings (e.g. for some |
I would definitely like adding usages right away. It would otherwise feel weird to me to add a utility function for internal usage only. We could of course split it into two commits in the same PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57916 +/- ##
==========================================
- Coverage 90.27% 90.27% -0.01%
==========================================
Files 630 630
Lines 186112 186145 +33
Branches 36464 36471 +7
==========================================
+ Hits 168013 168042 +29
+ Misses 10981 10970 -11
- Partials 7118 7133 +15
🚀 New features to boost your workflow:
|
fd20019
to
18b89d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be marked as minor since we change the behavior a little bit (although it's not disrupting)?
If we change the semverness of this PR, we should definitely split it in several PRs to simplify work for releasers |
I'm okay with semverness change if needed, but not sure it can be |
83ced41
to
22c521b
Compare
ee4de6c
to
32d29fe
Compare
This comment was marked as outdated.
This comment was marked as outdated.
345b9f0
to
5292de9
Compare
Extracted from: #57901
We have a lot of functions exposed to userspace or mentioned in stack traces that are anonymous or have something inherited like
value
as name; because it's not convenient to define it with name, or because the correct name is already taken by another variable, or because the name comes from aSymbol
, or because of false positives from linter.This helper function will simplify giving such functions a correct name.