forked from qt-creator/qt-creator
Clang: Show all tokens of a getter as output argument
f(x.get()); -> x.get() should be shown as a output argument Task-number: QTCREATORBUG-18591 Change-Id: I99f5637660bcd0a889338ebfa6737d79de226f87 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -565,3 +565,17 @@ void g(OtherOperator o, int var)
|
||||
{
|
||||
o(var);
|
||||
}
|
||||
|
||||
void NonConstPointerArgument(int &argument);
|
||||
|
||||
struct PointerGetterClass
|
||||
{
|
||||
int &getter();
|
||||
};
|
||||
|
||||
void f32()
|
||||
{
|
||||
PointerGetterClass x;
|
||||
|
||||
NonConstPointerArgument(x.getter());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user