CodeCompass
CodeCompass copied to clipboard
CppAstNode astType usage should be something better
The astType of a CppAstNode can be "usage". We use this for several reference types like function call, inheritance, etc. Instead of "usage" we should introduce "call", "inheritance", etc. Not to mention that we also have an astType for virtual function call, and the variable usages are also "read" or "write".
There is also a TypeLocation which should be eliminated. We should use the manner of usage instead, like ParameterTypeLoc, GlobalTypeLoc, etc.
A caught exception object is currently considered a local variable. A new type location type should be introduced on this:
try { ... }
catch (const MyType&) { ... }