robust-services-core
robust-services-core copied to clipboard
Enhance >check
Extend the Warning enum to support any of the following:
- [ ] use of
typedef(for conversion tousingtype alias) - [ ] data member has
setfunction but class writes directly to the member - [ ] packing an
enuminto a field that cannot hold +/- the largest absolute value of an enumerator (need to resolveClassData.width_to a constant) - [ ] assigning the result of
newto a stack or member pointer instead of a smart pointer - [ ] redefining an inherited default argument
- [ ]
#includeonly required because of inlines in header (would need to modifyGetUsagesto track symbols that only appeared in inlines) - [ ] function returns a value that is never used
- [ ] byte-sized non-
charfield that is displayed as a character instead of numerically (might be detected by checking for invocations ofostream::operator<<inFunction.WasCalled) - [ ] member omitted by
Displayfunction - [ ] default argument specified by definition rather than declaration (default needs to be seen by the compiler at the point of usage, so the definition would probably have to be in a header to have any effect)
And the following, which are only for formatting:
- [ ]
usingstatement not sorted in alphabetical order - [ ] single rule (
//---...) not used between function definitions in same class - [ ] double rule (
//===...) not used between function definitions in different classes