Query module AV Rule 107

name
Function declared in block
description
Functions should always be declared at file scope. It is confusing to declare a function at block scope, and the visibility of the function is not what would be expected.
kind
problem
problem.severity
warning
precision
high
id
cpp/function-in-block
tags
maintainability readability external/jsf

Imports

cpp

Provides classes and predicates for working with C/C++/ObjC/ObjC++ code.