-
Notifications
You must be signed in to change notification settings - Fork 755
Fix accidental use of function meant to remove() a file.
#8154
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
Fix accidental use of function meant to remove() a file.
#8154
Conversation
874b485 to
ddd946c
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.
clang-tidy made some suggestions
ddd946c to
8e518a8
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
|
Could you switch to std::filesystem::remove and remove the need for the waiver? |
8e518a8 to
13110a2
Compare
|
yep. Done. |
|
clang-tidy review says "All clean, LGTM! 👍" |
* `std::remove` is an `<algorithm>` * `remove()` is meant to remove a file (defined in `<stdio.h>`). Use `std::filsystem::remove()` instead. Signed-off-by: Henner Zeller <h.zeller@acm.org>
13110a2 to
c99d457
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
|
In #8158 , I am also removing the other uses of |
Follow-up change to The-OpenROAD-Project#8154 : use modern `std::filesystem::remove()` instead of old-school `remove()` from stdio.h Signed-off-by: Henner Zeller <h.zeller@acm.org>
std::removeis an<algorithm>remove()is meant to remove a file, declared in<stdio.h>(not<cstdio>, interestingly).