Skip to content
  • Nikolai Kosjar's avatar
    Clang: Remember selected function signature hint · b4e2ab36
    Nikolai Kosjar authored
    
    
    ...when typing more arguments:
    
        struct Foo {};
        void f(int, int);
        void f(Foo, Foo);
        void f(char, char);
    
        void c()
        {
            f( // 1. Trigger completion with Ctrl+Space
               // 2. Chose item "f(Foo, Foo)"
               // 3. Type: Foo(),
               // OK, signature hint "f(Foo, Foo)" is displayed again
        }
    
    FunctionHintProposalWidget and IFunctionHintProposalModel are
    instantiated for each calculation, so remember the selected hint in the
    CodeAssist. Keep the latest 20 entries.
    
    Task-number: QTCREATORBUG-11688
    Change-Id: I579fc6d8a35dd8fa398e4b3170ddc05a85252d1a
    Reviewed-by: default avatarTim Jenssen <tim.jenssen@qt.io>
    b4e2ab36