cppclean icon indicating copy to clipboard operation
cppclean copied to clipboard

False warning for "does not need to be #included"

Open ihhub opened this issue 8 years ago • 0 comments

A included file has the same namespace as current file. Included file contains in namespace using namespace which is within the file: file a.h:

namespace A
{
    class T;
}

namespace B
{
    using namespace A;
}

file b.h:

namespace B
{
    void someFunction(A a);
}

a warning does not need to be #included will be rised.

ihhub avatar Sep 21 '17 09:09 ihhub