CppTools: Tests: Refactor / Clean up cppcompletion_test.cpp
CppTools: Tests: Refactor / Clean up cppcompletion_test.cpp

* Open the files in the cpp editor, so preprocessing will take place
* Remove duplicated code
* Fix coding styles issues

Change-Id: Ic8bffcbc5a4ac5aca76bc55880d33c3b55f0944c
Reviewed-by: Fawzi Mohamed <7388270c57edd0fabd71d8eb0322d66e3c40e57e@digia.com>

farseerri/git_code,colede/qtcreator,richardmg/qtcreator,danimo/qt-creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,richardmg/qtcreator,darksylinc/qt-creator,danimo/qt-creator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,darksylinc/qt-creator,colede/qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,Distrotech/qtcreator,colede/qtcreator,amyvmiwei/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,Distrotech/qtcreator,Distrotech/qtcreator,maui-packages/qt-creator,omniacreator/qtcreator,xianian/qt-creator,omniacreator/qtcreator,colede/qtcreator,richardmg/qtcreator,omniacreator/qtcreator,kuba1/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,farseerri/git_code,darksylinc/qt-creator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,kuba1/qtcreator,amyvmiwei/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,kuba1/qtcreator,kuba1/qtcreator,martyone/sailfish-qtcreator,kuba1/qtcreator,kuba1/qtcreator,darksylinc/qt-creator,farseerri/git_code,danimo/qt-creator,danimo/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,darksylinc/qt-creator,maui-packages/qt-creator,darksylinc/qt-creator,kuba1/qtcreator,farseerri/git_code,omniacreator/qtcreator,xianian/qt-creator,richardmg/qtcreator,kuba1/qtcreator,xianian/qt-creator,danimo/qt-creator,maui-packages/qt-creator,colede/qtcreator,amyvmiwei/qt-creator,maui-packages/qt-creator,richardmg/qtcreator,maui-packages/qt-creator,farseerri/git_code,maui-packages/qt-creator,omniacreator/qtcreator,richardmg/qtcreator,Distrotech/qtcreator,maui-packages/qt-creator,omniacreator/qtcreator,AltarBeastiful/qt-creator,xianian/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,colede/qtcreator,farseerri/git_code,colede/qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,omniacreator/qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,darksylinc/qt-creator,danimo/qt-creator,Distrotech/qtcreator,farseerri/git_code,farseerri/git_code,richardmg/qtcreator