Clang Code Model with Qt
Hi! After updating
Qt CreatorI have noticed that
Clang Code Modelhas been enabled. It displays some warnings, for example:
warning: '~Test' overrides a destructor but is not marked 'override' warning: default label in switch which covers all enumeration values
Is it better to fix it or disable
Clang Code Model? Have anyone used
Clang Code Model? What's your point? Thanks.
Fix them. Always fix your warnings. As the old saying goes: a warning ignored today is a catastrophic segmentation fault tomorrow.
So you recommend to use
Clang Code Model? Thanks.
If you take a look at the compile output, you'll see the same or similar warnings during the build process. The code model allows you to cleanup your code without having to wait and take an intensive loop at the build output.
Ok. Thank you.