-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 formats listed in the following table are supported (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, path, or extension contains a space.  
%' A ' if the filename, path, or extension contains a space  
Example
  -WmsgFoi"%f%e(%l): %k %d: %m\n" 
  

Produces a message in following format:

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

See also

ERRORFILE: Error filename Specification

-WmsgFb (-WmsgFbi, -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