BUG: Nested templated detected as operator
Hello!
I recently updated from 3.1
to 3.6.6
and some lines started to get formatted:
// Original
std::unordered_set<std::shared_ptr<Component>> comps;
// Newly formatted
std::unordered_set<std::shared_ptr<Component >> comps;
It seems to be an issue with the flag --pad-oper
now parsing >>
as an operator?
Steps to reproduce
- I can reproduce it with the default config (no .astylerc)
- Write an empty
file.cpp
withstd::unordered_set<std::shared_ptr<Component>> comps;
astyle.exe -p file.cpp
Notes:
- Also happening with
--pad-oper
in config instead of arg - Tested in Windows and Linux astyle 3.6.6
- NOT happening in 3.1