Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.13.0
-
None
-
-
ed292f3f9b59c23114f27a562a131a145bd67d82 (qt-creator/qt-creator/4.14)
Description
For some time now we have the accentuation for non-const reference parameters, i.e.:
void test(int &i) { ++i; } int main() { int i = 42; test(i); // <-- i is displayed italic here }
It could be useful to extend this to non-const pointers too, i.e.
void test(int *i) { ++(*i); } int main() { int i = 42; test(&i); // <-- i could be displayed italic here }
The reason is, that you can easily spot potential variable changes from within the function at caller side.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-16551 Different highlighting for variable declaration and read/write access
-
- Closed
-