Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
Qt Creator 2.3.0-beta, Qt Creator 2.6.0, Qt Creator 3.6.0-beta1
-
None
Description
Consider the following code:
enum MyEnum { val1, val2 // comment }; class MyClass { public: void doSomething(MyEnum) {} }; int main() { MyClass myclass // comment ; myclass.doSomething(val2); return 0; }
Place the caret on any of the comments, the object/value that appears last in the line is highlighted (see screenshot).
This only happens when there is no separator (',', ';') between the symbol and the comment.