Hi ,
I Want to apply AIX lint to my source code which all are *.cpp/*.h
>lint test.cpp
lint: 1286-332 File test.cpp must have a .c, .C or .ln extension. It is ignored.
lint: 1286-334 There are no files to process.
I am getting above error.
-Ashok
As far as i know lint is only understanding C-source but not C++-source. Either you wrote a pure C-program using the extension ".cpp", which is perfectly legal as a C++-compiler understands the whole C syntax - in this case rename the source to ".c" - or your source is C++ in nature. In this case lint wont be able to help you i fear.
I hope this helps.
bakunin
Directly rename will give error by C compiler.
I suppose there must be some way.
Or any similar command like 'lint'
My quick research found "FlexeLint for C/C++" from Gimpel Software. Alas it is no free software, but it looks like it might fit your purpose. I have not experience using this tool, though, maybe someone else can filll in here?
I hope this helps.
bakunin