Skip to content

Commit

Permalink
Move printf_formatter to goto-programs
Browse files Browse the repository at this point in the history
The only users of this code are in goto-programs, and printf_formatter has no
dependency on ansi-c code.
  • Loading branch information
tautschnig committed Jun 6, 2018
1 parent 2ed63f5 commit cc23b20
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/ansi-c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ SRC = anonymous_member.cpp \
literals/unescape_string.cpp \
padding.cpp \
preprocessor_line.cpp \
printf_formatter.cpp \
type2name.cpp \
# Empty last line

Expand Down
1 change: 1 addition & 0 deletions src/goto-programs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ SRC = adjust_float_expressions.cpp \
osx_fat_reader.cpp \
parameter_assignments.cpp \
pointer_arithmetic.cpp \
printf_formatter.cpp \
property_checker.cpp \
read_bin_goto_object.cpp \
read_goto_binary.cpp \
Expand Down
3 changes: 2 additions & 1 deletion src/goto-programs/goto_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ Author: Daniel Kroening
#include <util/format_expr.h>
#include <util/symbol.h>

#include <ansi-c/printf_formatter.h>
#include <langapi/language_util.h>

#include "printf_formatter.h"

void goto_tracet::output(
const class namespacet &ns,
std::ostream &out) const
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Author: Daniel Kroening, [email protected]
/// \file
/// printf Formatting

#ifndef CPROVER_ANSI_C_PRINTF_FORMATTER_H
#define CPROVER_ANSI_C_PRINTF_FORMATTER_H
#ifndef CPROVER_GOTO_PROGRAMS_PRINTF_FORMATTER_H
#define CPROVER_GOTO_PROGRAMS_PRINTF_FORMATTER_H

#include <util/expr.h>
#include <util/namespace.h>
Expand Down Expand Up @@ -56,4 +56,4 @@ class printf_formattert
const exprt make_type(const exprt &src, const typet &dest);
};

#endif // CPROVER_ANSI_C_PRINTF_FORMATTER_H
#endif // CPROVER_GOTO_PROGRAMS_PRINTF_FORMATTER_H
3 changes: 2 additions & 1 deletion src/goto-programs/xml_goto_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ Author: Daniel Kroening
#include <util/xml_expr.h>
#include <util/symbol.h>

#include <ansi-c/printf_formatter.h>
#include <langapi/language_util.h>

#include "printf_formatter.h"

void convert(
const namespacet &ns,
const goto_tracet &goto_trace,
Expand Down

0 comments on commit cc23b20

Please sign in to comment.