[PATCH] D41537: Optionally add code completion results for arrow instead of dot

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 24 06:28:03 PST 2018


ilya-biryukov added a comment.

I also propose to try correcting in both directions, i.e. here's how completion completion could work with this feature:

  struct X { int foobarbaz; };
  
  void test() {
    X var;
    X* ptr;
    std::unique_ptr<X> uptr;
     
    var->foobar // replace with var.foobarbaz
    ptr.foobar // replace with ptr->foobar
    uptr->get // replace with uptr.get
    uptr.foobar // replace with uptr->foobarbaz
  }


https://reviews.llvm.org/D41537





More information about the cfe-commits mailing list