-WmsgFob: Message Format for Batch Mode

Group

MESSAGES

Scope

Function

Syntax
  -WmsgFob<string> 
  
Arguments

<string>: format string (see below).

Default
  -WmsgFob"%"%f%e%"(%l): %K %d: %m\n" 
  
Defines

None

Pragmas

None

Description

This option modifies the default message format in batch 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:\Freescale\
%f Path and name X:\Freescale\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
  -WmsgFob"%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 (-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

-WmsgFoi: Message Format for Interactive Mode