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

rowbearto

  • Senior Community Member
  • Posts: 1344
  • Hero Points: 100
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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2633
  • Hero Points: 406
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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2633
  • Hero Points: 406
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.