CBMC
gcc_message_handler.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module:
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
9
#ifndef CPROVER_GOTO_CC_GCC_MESSAGE_HANDLER_H
10
#define CPROVER_GOTO_CC_GCC_MESSAGE_HANDLER_H
11
12
#include <
util/cout_message.h
>
13
14
class
gcc_message_handlert
:
public
console_message_handlert
15
{
16
public
:
17
void
print
(
unsigned
,
const
xmlt
&)
override
18
{
19
}
20
21
void
print
(
unsigned
,
const
jsont
&)
override
22
{
23
}
24
25
// aims to imitate the messages gcc prints
26
void
print
(
unsigned
level,
const
std::string &message)
override
;
27
28
void
print
(
29
unsigned
level,
30
const
std::string &message,
31
const
source_locationt
&location)
override
;
32
33
private
:
35
std::string
string
(
const
messaget::commandt
&c)
const
36
{
37
return
command
(c.
command
);
38
}
39
};
40
41
#endif // CPROVER_GOTO_CC_GCC_MESSAGE_HANDLER_H
messaget::commandt::command
unsigned command
Definition:
message.h:323
jsont
Definition:
json.h:26
gcc_message_handlert::string
std::string string(const messaget::commandt &c) const
feed a command into a string
Definition:
gcc_message_handler.h:35
cout_message.h
gcc_message_handlert
Definition:
gcc_message_handler.h:14
xmlt
Definition:
xml.h:20
source_locationt
Definition:
source_location.h:18
gcc_message_handlert::print
void print(unsigned, const xmlt &) override
Definition:
gcc_message_handler.h:17
console_message_handlert
Definition:
cout_message.h:29
gcc_message_handlert::print
void print(unsigned, const jsont &) override
Definition:
gcc_message_handler.h:21
messaget::commandt
Definition:
message.h:316
console_message_handlert::command
std::string command(unsigned c) const override
Create an ECMA-48 SGR (Select Graphic Rendition) command with given code.
Definition:
cout_message.cpp:71
src
goto-cc
gcc_message_handler.h
Generated by
1.8.17