| 52 | static const CWE CWE_ONE_DEFINITION_RULE(758U); |
| 53 | |
| 54 | static const char * getFunctionTypeName(FunctionType type) |
| 55 | { |
| 56 | switch (type) { |
| 57 | case FunctionType::eConstructor: |
| 58 | return "constructor"; |
| 59 | case FunctionType::eCopyConstructor: |
| 60 | return "copy constructor"; |
| 61 | case FunctionType::eMoveConstructor: |
| 62 | return "move constructor"; |
| 63 | case FunctionType::eDestructor: |
| 64 | return "destructor"; |
| 65 | case FunctionType::eFunction: |
| 66 | return "function"; |
| 67 | case FunctionType::eOperatorEqual: |
| 68 | return "operator="; |
| 69 | case FunctionType::eLambda: |
| 70 | return "lambda"; |
| 71 | } |
| 72 | return ""; |
| 73 | } |
| 74 | |
| 75 | static bool isVariableCopyNeeded(const Variable &var, FunctionType type) |
| 76 | { |
no outgoing calls
no test coverage detected