Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: rnicholl on November 27, 2019, 07:36:51 pm

Title: Bug: Code completion incorrectly interprets arguments as part of signature
Post by: rnicholl on November 27, 2019, 07:36:51 pm
The code completion plugin is incorrectly interpreting argument names as part of the symbol:

e.g.

Code: [Select]
class A
{
  void write(std::byte const * foo, size_type bar);
};
does not match:

Code: [Select]
void A::write(std::byte const * fizz, size_type buz)
{

}

But instead provides two different symbols in the symbol browser. This behaviour is wrong, the argument names are not part of the function signature. It's perfectly legal to omit them from the declaration entirely.