How to get PC-Lint to print fully qualified function name in message? -


i'm using pc-lint generate xml file contains warnings generated run.

the process works almost flawlessly, rather annoying exception. can't message format print qualified function name warning found. prints stripped down function name. no namespace, no class name.

here format string use (i've included relevant format info documentation @ end of post):

 -"format=<message> <file>%f</file> <func>%i</func> <line>%l</line> <type>%t</type> <code>%n</code> <desc>%m</desc> </message>" 

so, example, this:

class bar {     void foo(int bar) {     } }; 

the error (lines broken easier reading):

<message>   <file>d:\code\cpptest\cpptest.cpp</file>   <func>foo</func>   <line>3</line>   <type>info</type>   <code>715</code>   <desc>symbol 'bar' (line 2) not referenced</desc> </message> 

as can see, function name written foo , not bar::foo like/expect.

before ask, function escape symbol in -format string, i've tried both %i , %i; both generated same bare bone function name.

does know if there's magical format escape qualified name?


from pc-lint -format documentation:

%f = filename
(note option +ffn, standing "full file names", can used control whether full path names used).
%l = line number
%t = message type (error, warning, etc.)
%n = message number
%m = message text
%c = column number
%c = column number +1
%i = invoking function
%% = percent sign
%(...%) = conditionally include information denoted
... if error occurred within file.
\n = newline
\t = tab
\s = space
\a = alarm (becomes ascii 7)
\q = quote ( "" )
\ = backslash ( '\' )


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -