This saves a call to stat().
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 11000 Build 11000: arc lint + arc unit
Event Timeline
Comment Actions
Can you add a comment indicating what the first two flags are used for? They aren't very common, so it might help someone in the future understand what's going on.
Also maybe a top-level comment indicating why we're doing things this way instead of the old way.
Don't need to re-upload, lgtm already.
llvm/lib/Support/Windows/Path.inc | ||
---|---|---|
266 | Zach's right that this is likely a tad faster, but it's also a little less clear. How about a comment to make it point out that we're using CreateFileW to mark the file/direction for deletion? |
Zach's right that this is likely a tad faster, but it's also a little less clear. How about a comment to make it point out that we're using CreateFileW to mark the file/direction for deletion?