Menu

#158 Code completion fails with the "using Alias = Type" syntax in C++11

Undefined
open
ollydbg
Feature_Request
2016-01-19
2015-04-23
acqn
No
typedef MyType A; // OK, CC recognizes A as MyType

using B = MyType; // Not OK, CC doesn't recognize B as MyType

template <class T>
using C = MyTemplate<T>; // Not OK, CC doesn't recognize C as a template alias

Discussion

  • ollydbg

    ollydbg - 2015-04-24
    • labels: CodeCompletion --> CodeCompletion, C++11
     
  • ollydbg

    ollydbg - 2015-07-10

    jat1's patch is in trunk now, see: Trying to get cctest to work, which fix the first two cases.

     
  • jat1

    jat1 - 2015-08-01

    Hi, I've attached a patch that solves the last case. It also updates the appropriate test file.

     
  • ollydbg

    ollydbg - 2015-08-06
    • assigned_to: ollydbg
     
  • ollydbg

    ollydbg - 2015-08-09

    I have an updated patch, which I think:1, I don't use <vector>, because it causes longer parse time, and hard to debug the algorithm. 2, adjusts some comments.

    You comments are welcome, thanks.

     
  • ollydbg

    ollydbg - 2015-08-09

    This is the patch file.

     
  • jat1

    jat1 - 2015-08-10

    Your changes look good, thanks.

     
    • ollydbg

      ollydbg - 2015-08-10

      Thanks, the patch is in trunk now. (rev10387)

       
  • ollydbg

    ollydbg - 2015-08-10
    • status: open --> fixed
     
  • acqn

    acqn - 2015-09-13

    Sorry to say that this wasn't fully fixed. There remains one problem:

    If you put any keyword eg. "enum", "struct", "class" between "using Alias =" and "Type", CC still fails....

     
  • ollydbg

    ollydbg - 2015-10-06
    • status: fixed --> open
     
  • ollydbg

    ollydbg - 2015-10-06

    I reopen this bug.

     
  • Teodor Petrov

    Teodor Petrov - 2016-01-19
    • Type: Undefined --> Feature_Request
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.