diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-07-03 11:35:18 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-07-05 11:58:10 +0200 |
| commit | 1f3f99bf62df78981c839c95ee98adad649a5ef4 (patch) | |
| tree | 2b380e5ceb25914e4541e5e451ed03ee61ba1cf4 /examples/demos/documentviewer/jsonviewer/jsonviewer.py | |
| parent | 0faa54831af8ef7deedd2b6885ea2b3657179d7b (diff) | |
snippets_translate: Prevent the variable initialization code from triggering for functions
The code trying to change a constructor initialization:
"Foo foo(2);" into "foo = Foo(2)"
also triggered for member function definitions returning pointers
"Foo *Foo:foo()" and many function declarations in headers.
Restrict this by checking for a semicolon and non-presence of some
function qualifiers.
Pick-to: 6.5
Task-number: PYSIDE-1106
Change-Id: I224ac3e7321e57f1c5beecdcdb568a273330a664
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'examples/demos/documentviewer/jsonviewer/jsonviewer.py')
0 files changed, 0 insertions, 0 deletions
