-WmsgFoi: Message Format for Interactive Mode

Group

MESSAGES

Scope

Function

Syntax
  -WmsgFoi<string> 
  
Arguments

<string>: format string (See below.)

Default
  -WmsgFoi"\\n>> in \"%f%e\", line %l, col >>%c, pos %o\n%s\n%K %d: %m\n" 
  
Defines

None

Pragmas

None

Description

This option modifies the default message format in interactive mode. The following table lists supported formats (assuming that the source file is X:\Freescale\mysourcefile.cpph):

Table 1. Message Format Specifiers
Format Description Example
%s Source Extract  
%p Path X:\sources\
%f Path and name X:\sources\mysourcefile
%n filename mysourcefile
%e Extension .cpph
%N File (8 chars) mysource
%E Extension (3 chars) .cpp
%l Line 3
%c Column 47
%o Pos 1234
%K Uppercase kind ERROR
%k Lowercase kind error
%d Number C1815
%m Message text
%% Percent %
\n New line  
%" A " if the filename, if the path or the extension contains a space.  
%' A ' if the filename, the path or the extension contains a space  
Example

-WmsgFoi"%f%e(%l): %k %d: %m\n"

Produces a message in the following format:

  X:\C.C(3): information C2901: Unrolling loop

  
See also

ERRORFILE: Error Filename Specification

-WmsgFb (-WmsgFbv, -WmsgFbm): Set Message File Format for Batch Mode

-WmsgFi (-WmsgFiv, -WmsgFim): Set Message Format for Interactive Mode

-WmsgFonp: Message Format for No Position Information

-WmsgFob: Message Format for Batch Mode