Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] [Codan] multiple instances of same quick fix class

Hello,

Does Codan infrastructure allow to have several fixes from the same class for one marker? Consider a situation like misspelled method name:

class X {
public:
    void methodA();
    void methodB();
} x;

void foo() {
    x.methodC(); // here we'd have a problem marker by ProblemBindingChecker
}

In this situation, expected fixes are "create method", but also "change to `methodA`" and "change to `methodB`". The two last fix proposals are instances of one quick fix class. Can one fix generate several proposals with different names?

There are many situations like this: invalid name, invalid overload, ambiguous lookup, etc. JDT handles this neatly.

Best regards,
-- Tomasz Wesołowski


Back to the top