Details
- Reviewers
Mordante - Group Reviewers
Restricted Project - Commits
- rG5a4f177c949e: [libc++] Avoid a Microsoft SAL macro.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I didn't look closely at the patch, but no objections against this direction.
The CI fails since you missed some __bounds. I'll review the patch after the CI is green.
The MSAN failure doesn't look like me.
Also looks like there are bugs in clang-format (e.g. nasty_macros.compile.pass.cpp line 81), but if I skip it the linter complains :P
PTAL?
Correct that was main being broken. Please rebase your patch before the next iteration, that should fix these build errors.
libcxx/include/__functional/perfect_forward.h | ||
---|---|---|
34 | I'm not thrilled by the trailing double underscore, this deviates from our coding style. Please make similar changes at other places, having function arguments with a trailing underscore will lead to confusion. If you're having trouble finding good names, leave a comment to the names you need assistance with. | |
libcxx/test/libcxx/nasty_macros.compile.pass.cpp | ||
91 | Format errors aren't hard errors, so feel free to ignore them. |
Rebased, but now I got a strange AIX timeout. Presumably this is also flake or trunk bustage; PTAL?
LGTM modulo some nits, please fix them before landing this patch.
libcxx/include/__functional/perfect_forward.h | ||
---|---|---|
34 | Next time when you address review comments can you mark the comment as done? That makes reviewing easier. | |
37–85 | Minor nit. | |
libcxx/include/__iterator/advance.h | ||
120 | Same for the other comments. | |
libcxx/include/__ranges/iota_view.h | ||
381 | We don't indent nested namespaces. |
libcxx/include/__functional/perfect_forward.h | ||
---|---|---|
59–62 | I am not thrilled by this reformatting. There is a reason why we align things like that. We do it consistently everywhere so that we can grep more easily and change these write-it-three-times if needed. |
libcxx/include/__functional/perfect_forward.h | ||
---|---|---|
34 | I think this also made the indentation inconsistent (2 spaces vs 4 spaces). After the change, there is a mix of the two indentations in the file. |
I'm not thrilled by the trailing double underscore, this deviates from our coding style.
Maybe change __bound_ to __bound_args_ in this file, please also update the template name to _BoundArgs.
Please make similar changes at other places, having function arguments with a trailing underscore will lead to confusion. If you're having trouble finding good names, leave a comment to the names you need assistance with.