It updates two error messages under performOperation
in the file llvm-ar.cpp. Furthermore, it also updates
tests that print out these error msgs:
llvm/test/Object/ar-create.test and
llvm/test/tools/llvm-ar/print.test.
Depends on D80838
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/tools/llvm-ar/llvm-ar.cpp | ||
---|---|---|
663–664 | I'm guessing this was done by the linter as part of its formatting? It's a valid change, but it shouldn't be part of this diff. Depending on how people who contribute to llvm-ar (e.g. @MaskRay) feel, we can either commit the formatting changes separately or just undo them (and ignore any lint warnings about them). | |
1032–1041 | Ditto here. |
Seems reasonable to me, but could you clarify why you are making the change? What is the latest "preferred style" you mean here?
@jhenderson There were two types of error messages being thrown before: error loading ... and unable to load ... So the idea is to make the error messages consistent (instead of having 2 different formats). Furthermore, since unable to load ... was updated more recently and is the preferred style going forward (as per @smeenai ), we should change the former to match the new message.
As we discussed in https://bugs.llvm.org/show_bug.cgi?id=40244, some of the error messages here were still inconsistent, and this makes them consistent (with the style that was decided on in D67038).
LGTM, with the formatting changes undone, and the test changes rebased once the new tests from D80838 are moved out.
llvm/tools/llvm-ar/llvm-ar.cpp | ||
---|---|---|
663–664 | My personal take: if you are making changes in the immediate area (e.g. within a couple of lines), then it's okay to make the formatting change, either as part of, or in addition to the current patch, but that doesn't apply here, so I think this and the other formatting change below should be reverted. |
Rebase again on D80838: splitting the directory and permission cases into separate files.
I'm guessing this was done by the linter as part of its formatting? It's a valid change, but it shouldn't be part of this diff.
Depending on how people who contribute to llvm-ar (e.g. @MaskRay) feel, we can either commit the formatting changes separately or just undo them (and ignore any lint warnings about them).