-
Notifications
You must be signed in to change notification settings - Fork 31
Fix typos in repo #556
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?
Fix typos in repo #556
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #556 +/- ##
=======================================
Coverage 75.94% 75.94%
=======================================
Files 9 9
Lines 3646 3646
=======================================
Hits 2769 2769
Misses 877 877
🚀 New features to boost your workflow:
|
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.
clang-tidy made some suggestions
@@ -606,10 +606,12 @@ | |||
Deps.push_back(Data + Dyn.d_un.d_val); | |||
break; | |||
case ELF::DT_RPATH: | |||
SplitPaths(Data + Dyn.d_un.d_val, RPath, utils::kAllowNonExistant, Cpp::utils::platform::kEnvDelim, false); | |||
SplitPaths(Data + Dyn.d_un.d_val, RPath, utils::kAllowNonExistent, |
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.
warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
SplitPaths(Data + Dyn.d_un.d_val, RPath, utils::kAllowNonExistent,
^
break; | ||
case ELF::DT_RUNPATH: | ||
SplitPaths(Data + Dyn.d_un.d_val, RunPath, utils::kAllowNonExistant, Cpp::utils::platform::kEnvDelim, false); | ||
SplitPaths(Data + Dyn.d_un.d_val, RunPath, utils::kAllowNonExistent, |
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.
warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
SplitPaths(Data + Dyn.d_un.d_val, RunPath, utils::kAllowNonExistent,
^
Paths.push_back(Split.first); | ||
else if (Verbose) | ||
LogNonExistantDirectory(Split.first); | ||
LogNonExistentDirectory(Split.first); |
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.
warning: do not use 'else' after 'return' [llvm-else-after-return]
LogNonExistentDirectory(Split.first); | |
} if (Mode == kAllowNonExistent) | |
Paths.push_back(Split.first); | |
else if (Verbose) | |
LogNonExistentDirectory(Split.first); |
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.
That's probably a good warning to fix.
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.
I tried applying this suggestion, and it broke the ci jobs (also caused another lot of review comments). Reverted.
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.
LGTM! Looks like mistakes I would do.
Could you check why codecov is complaining?
Looks like the patch coverage is bad, but project converge between main and this PR is the same.
I am approving this. But please check and cross-check that no tests fail.
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.
clang-tidy made some suggestions
} | ||
return false; | ||
} else if (Mode == kAllowNonExistant) | ||
} else if (Mode == kAllowNonExistent) | ||
Paths.push_back(Split.first); | ||
else if (Verbose) |
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.
warning: do not use 'else' after 'return' [llvm-else-after-return]
else if (Verbose) | |
} if (Mode == kAllowNonExistent) | |
Paths.push_back(Split.first); | |
else if (Verbose) |
@@ -311,10 +314,10 @@ | |||
if (!PathStr.empty()) { |
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.
warning: expected unqualified-id [clang-diagnostic-error]
if (!PathStr.empty()) {
^
@@ -331,7 +334,7 @@ | |||
|
|||
llvm::SmallVector<llvm::StringRef, 10> Paths; | |||
if (Delim && *Delim) | |||
SplitPaths(PathStr, Paths, kAllowNonExistant, Delim, HOpts.Verbose); | |||
SplitPaths(PathStr, Paths, kAllowNonExistent, Delim, HOpts.Verbose); |
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.
warning: use of undeclared identifier 'kAllowNonExistent'; did you mean 'utils::kAllowNonExistent'? [clang-diagnostic-error]
SplitPaths(PathStr, Paths, kAllowNonExistent, Delim, HOpts.Verbose); | |
SplitPaths(PathStr, Paths, utils::kAllowNonExistent, Delim, HOpts.Verbose); |
Additional context
lib/Interpreter/Paths.h:64: 'utils::kAllowNonExistent' declared here
kAllowNonExistent ///< Add all paths whether they exist or not
^
@vgvassilev Is it ok for me merge this PR in, despite #556 (comment) not being done, given the objective of this PR was just to fix typos? |
Description
Please include a summary of changes, motivation and context for this PR.
There was many typos in CppInterOp including in the names of variables and functions in the code. This PR fixes these typos.
A similar PR fixing typos in xeus-cpp is here compiler-research/xeus-cpp#285
Fixes # (issue)
Type of change
Please tick all options which are relevant.
Testing
Please describe the test(s) that you added and ran to verify your changes.
Checklist