When a function is declared with a parameter with namespace qualified type and without a name, the type would be incorrectly classified as parameter name. This bug can be manifested with the following input files.
align_func_params = true
// test.cpp
void test_fun(std::size_t a,
std::size_t /* b */);
The attached is the patch to fix the problem.
The C++ posted above has problem due to formatting issue. Here is the correctly formatted code.
My previous patch contains a bug. In addition, it couldn't handle the cases with reference and pointer types. Here is a new patch to fix the problem.
Diff:
Patch applied in commit 860378c4ba6aa482.
Thanks.