cppclean icon indicating copy to clipboard operation
cppclean copied to clipboard

Issue 89: warning on using namespace in header

Open WimLeflere opened this issue 9 years ago • 2 comments

Added a warning when 'using namespace' is used in a header file. The rest of the file is ignored because the output could be incorrect.

WimLeflere avatar Feb 17 '16 16:02 WimLeflere

@r-e-d, probably has a better idea than me on whether this is a good approach.

myint avatar Feb 18 '16 01:02 myint

This new warning is fine for me. But I'm not sure that we really want to abort parsing the file.

One solution would be to mark the file as used if it contains any using statement to prevent incorrect header unused warning.

r-e-d avatar Feb 18 '16 08:02 r-e-d