PandA-2024.02
Macros
raw_writer.cpp File Reference

tree node writer. More...

#include "raw_writer.hpp"
#include "custom_map.hpp"
#include "custom_set.hpp"
#include "exceptions.hpp"
#include "ext_tree_node.hpp"
#include "token_interface.hpp"
#include "tree_basic_block.hpp"
#include "tree_node.hpp"
#include "tree_reindex.hpp"
#include <cstddef>
#include <list>
#include <utility>
#include <vector>
Include dependency graph for raw_writer.cpp:

Go to the source code of this file.

Macros

#define WRITE_NFIELD_STRING(os, field_name, field_value)   os << " " << (field_name) << ": \"" << (field_value) << "\""
 Macro which writes on an output stream a named field of string type. More...
 
#define WRITE_NFIELD(os, name, field)   os << " " << (name) << ": " << field
 Macro which writes on an output stream a named field. More...
 
#define WRITE_UFIELD(os, field)   os << " " << field
 Macro which writes on an output stream an unnamed field. More...
 
#define WRITE_UFIELD_STRING(os, field)   os << " \"" << (field) << "\""
 Macro which writes on an output stream an unnamed field. More...
 
#define WRITE_STRGLNGT_IDENTIFIER(os, field)
 Macro which writes on an output stream a string with its length. More...
 
#define WRITE_STRGLNGT_STRING(os, field)
 Macro which writes on an output stream a string with its length. More...
 
#define WRITE_SRCP(os, include_name, line_number, column_number)
 Macro which writes on an output stream the srcp fields. More...
 

Detailed Description

tree node writer.

This class exploiting the visitor design pattern write a tree node according to the raw format.

Author
Fabrizio Ferrandi fabri.nosp@m.zio..nosp@m.ferra.nosp@m.ndi@.nosp@m.polim.nosp@m.i.it
Marco Lattuada lattu.nosp@m.ada@.nosp@m.elet..nosp@m.poli.nosp@m.mi.it $Revision$ $Date$ Last modified by $Author$

Definition in file raw_writer.cpp.

Macro Definition Documentation

◆ WRITE_NFIELD

#define WRITE_NFIELD (   os,
  name,
  field 
)    os << " " << (name) << ": " << field

Macro which writes on an output stream a named field.

Definition at line 69 of file raw_writer.cpp.

Referenced by raw_writer::write_when_not_null_point_to().

◆ WRITE_NFIELD_STRING

#define WRITE_NFIELD_STRING (   os,
  field_name,
  field_value 
)    os << " " << (field_name) << ": \"" << (field_value) << "\""

Macro which writes on an output stream a named field of string type.

Definition at line 64 of file raw_writer.cpp.

Referenced by raw_writer::write_when_not_null_point_to().

◆ WRITE_SRCP

#define WRITE_SRCP (   os,
  include_name,
  line_number,
  column_number 
)
Value:
os << " " \
<< "srcp: \"" << (include_name) << "\":" << (line_number) << ":" << column_number

Macro which writes on an output stream the srcp fields.

Definition at line 98 of file raw_writer.cpp.

Referenced by raw_writer::write_when_not_null_point_to().

◆ WRITE_STRGLNGT_IDENTIFIER

#define WRITE_STRGLNGT_IDENTIFIER (   os,
  field 
)
Value:
os << " " \
<< "strg: \"" << (field) << "\" lngt: " << (field).size()

Macro which writes on an output stream a string with its length.

IDENTIFIER_NODE case

Definition at line 84 of file raw_writer.cpp.

Referenced by raw_writer::write_when_not_null_point_to().

◆ WRITE_STRGLNGT_STRING

#define WRITE_STRGLNGT_STRING (   os,
  field 
)
Value:
((os) << " " \
<< "strg: \"" << (field) << "\" lngt: " << (field).size() + 1)

Macro which writes on an output stream a string with its length.

STRING_CST case

Definition at line 91 of file raw_writer.cpp.

Referenced by raw_writer::write_when_not_null_point_to().

◆ WRITE_UFIELD

#define WRITE_UFIELD (   os,
  field 
)    os << " " << field

Macro which writes on an output stream an unnamed field.

Definition at line 74 of file raw_writer.cpp.

Referenced by raw_writer::write_when_not_null_point_to().

◆ WRITE_UFIELD_STRING

#define WRITE_UFIELD_STRING (   os,
  field 
)    os << " \"" << (field) << "\""

Macro which writes on an output stream an unnamed field.

Definition at line 79 of file raw_writer.cpp.

Referenced by raw_writer::write_when_not_null_point_to().


Generated on Mon Feb 12 2024 13:03:33 for PandA-2024.02 by doxygen 1.8.13