Author Topic: Eval and show return type in mouse-over and preview incorrect C++ for  (Read 1553 times)

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
See attached screenshot and below C++ code example.

When enabling the "Evaluation and show return type" in "mouse-over" and "preview" in a "for" statement, SlickEdit is showing the wrong evaluated type.

When I use a different code browsing tool, cquery, it tells me that the evaluated type of "vecItem" is "int".

It happens with a clean config on my Linux x64, 23.0.1.2, CentOS 7.2. I also observed the issue on Windows x64 SE version 23.0.1.2.

Sample code (place mouse on the "vecItem" in the for loop):

Code: [Select]
#include "stdafx.h"
#include <vector>
#include <iostream>

int main()
{
  std::vector<int> vectorOfInts;
  vectorOfInts.emplace_back(1);
  vectorOfInts.emplace_back(2);
  vectorOfInts.emplace_back(3);
  for (auto vecItem : vectorOfInts)
  {
    std::cout << vecItem << " \n";
  }
  return 0;
}
« Last Edit: March 09, 2019, 10:48:54 PM by rowbearto »

Dennis

  • Senior Community Member
  • Posts: 3960
  • Hero Points: 517
Re: Eval and show return type in mouse-over and preview incorrect C++ for
« Reply #1 on: March 13, 2019, 03:15:06 PM »
I will look into this.

Dennis

  • Senior Community Member
  • Posts: 3960
  • Hero Points: 517
Re: Eval and show return type in mouse-over and preview incorrect C++ for
« Reply #2 on: March 18, 2019, 04:29:36 PM »
Fixed for next hot fix to 23.0.1.