Is it OK to use range-based for loops clang/LLVM source code?
And auto variables:
In general?
As loop iterator?
Yaron
Is it OK to use range-based for loops clang/LLVM source code?
And auto variables:
In general?
As loop iterator?
Yaron
No, Clang and LLVM are not (yet) using C++11 features. It's been considered
before, and will likely be reconsidered after the next release.
Currently Clang and LLVM are written in C++98, so none of these constructs
are acceptable.
There are some macros used to apply C++11 features conditionally (override,
rvalue refs, move, etc)