-
Notifications
You must be signed in to change notification settings - Fork 511
WIP: For loops #480
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: master
Are you sure you want to change the base?
WIP: For loops #480
Conversation
Some found by clang-tidy. Some of these reduce unnecessary copies or ref-count adjustments.
Do you think you could revisit this PR? The changes all look nice and reasonable to me, modulo some style nits, and it'd be great to merge this. |
Ok, I'll take a peek at this when I get a chance. The description of it worries me, but maybe I'll see my problem easier with fresh eyes. (I didn't remember that I had any outstanding unmerged for loop code, I thought only the Eigen proof of concept was left.) Any hint on what the style nits are? Do you want all loop bodies, etc. bracketed? (I normally do that, so seeing a few not like that was the only style thing that jumped out at me rereading this on my phone, at least.). Should be easy enough for me to bisect which change causes problems since most of those diff hunks look independent. |
If it turns out the "nitpicks" are purely formatting you could use clang-format: |
Oh sorry, I forgot to actually mention. It's just one thing, in a few places you use a reference when iterating then immediately convert it to a pointer and access through that (extraneous) pointer. |
Ah, that was to perform minimum changes. No problem, I can fix that. |
dfb96de
to
3f09eaf
Compare
Pulled out of #460 because it crashed on Windows and consumed all available space on Linux using GCC + sanitizers.