My current project has reached somewhere in the 10's of thousands of lines in code and it seems like my main issue is writing code to fast and for example I write:
if (a += b == c) instead of if(a + b == c) .
I also had a similar issue when initializing a struct example:
struct MyStruct : public Shared
{
int a,b,c;
MyStruct(int a_,int b_,int c_) : a(a),b(b_),c(c_) {}
};
I didnt get a warning for a trying to initialize itself but it caused some -a's mostly! Its getting frustrating I'll push out a few hundred lines or a few functions and my only issue is something as small as that lol. I just wanted to know if there is a flag for this or?