| 1865 | } |
| 1866 | |
| 1867 | static const Function* getEnclosingFunction(const Variable* var) |
| 1868 | { |
| 1869 | if (var->isArgument()) |
| 1870 | return var->scope()->function; |
| 1871 | const Scope* scope = var->scope(); |
| 1872 | while (scope && scope->type != ScopeType::eFunction) { |
| 1873 | scope = scope->nestedIn; |
| 1874 | } |
| 1875 | return scope ? scope->function : nullptr; |
| 1876 | } |
| 1877 | |
| 1878 | void CheckOtherImpl::checkConstPointer() |
| 1879 | { |
no test coverage detected