Fix warnings reported by gcc 6.3 related to misleading indentations.#376
Conversation
The files where these warnings were reported have been formatted by CLion using the cppTango CLion code style already in use on the master branch. Added CLion code style settings file based on Allman Braces code style (tango-controls#364).
…o while statements
Fix some full block{} expected issues in conditionally non-compiled code
(Windows specific code for instance) because CLion does not reformat
conditionally non-compiled code.
Fix some "negation operator used in its short form" issues
Reformated some code in conditionally non-compiled code
|
This PR adds a CLion project code style settings file. For the record, Travis CI tests didn't pass the first time for the DEBUG version. It seems Codacy is reporting some false positive issues in devapi_data.cpp. It says some conditions are always true. In this specific case, this is not true, otherwise this would mean all the DeviceData extraction operators are not working when extracting to a vector. |
|
I would ignore some of the braces for instance in this case: if(...) return;// or return some simple valueI usually write this in one line as above. |
The files where these warnings were reported have been formatted by CLion using
the cppTango CLion code style already in use on the master branch.
Added CLion code style settings file based on Allman Braces code style (#364).