[clang-format] Treats &/&& as reference when followed by ',' or ')'
Ran into an issue where function declarations inside function scopes or uses of sizeof inside a function would treat the && in 'sizeof(Type &&)' as a binary operator. Attempt to fix this by assuming reference when followed by ',' or ')'. Also adds tests for these. Also hit an edge case in another test that treated "and" the same as "&&" since it parses as C++. Changed the "and" to "also" so it is no longer a keyword. Fixes #58923. Differential Revision: https://reviews.llvm.org/D137755
Loading
Please sign in to comment