Use fullpath in #include directives, add missing STL headers

This commit is contained in:
Soonho Kong 2013-09-13 03:35:29 -07:00
parent e992ded245
commit 5c3866cd71
71 changed files with 128 additions and 79 deletions

View file

@ -5,6 +5,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <deque> #include <deque>
#include <limits>
#include <utility>
#include <vector>
#include "util/flet.h" #include "util/flet.h"
#include "kernel/normalizer.h" #include "kernel/normalizer.h"
#include "kernel/context.h" #include "kernel/context.h"

View file

@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <vector>
#include "frontends/lean/elaborator_exception.h" #include "frontends/lean/elaborator_exception.h"
#include "frontends/lean/elaborator.h" #include "frontends/lean/elaborator.h"

View file

@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <vector>
#include "kernel/kernel_exception.h" #include "kernel/kernel_exception.h"
#include "library/state.h" #include "library/state.h"
#include "frontends/lean/elaborator.h" #include "frontends/lean/elaborator.h"

View file

@ -6,6 +6,10 @@ Author: Leonardo de Moura
*/ */
#include <atomic> #include <atomic>
#include <unordered_set> #include <unordered_set>
#include <vector>
#include <utility>
#include <functional>
#include "util/map.h" #include "util/map.h"
#include "util/sstream.h" #include "util/sstream.h"
#include "util/exception.h" #include "util/exception.h"

View file

@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <algorithm>
#include "util/name.h" #include "util/name.h"
#include "util/list.h" #include "util/list.h"
#include "util/sexpr/format.h" #include "util/sexpr/format.h"

View file

@ -4,7 +4,17 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#ifdef LEAN_USE_READLINE
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <readline/readline.h>
#include <readline/history.h>
#endif
#include <unordered_map> #include <unordered_map>
#include <utility>
#include <string>
#include <vector>
#include "util/scoped_map.h" #include "util/scoped_map.h"
#include "util/exception.h" #include "util/exception.h"
#include "util/sstream.h" #include "util/sstream.h"
@ -27,13 +37,6 @@ Author: Leonardo de Moura
#include "frontends/lean/scanner.h" #include "frontends/lean/scanner.h"
#include "frontends/lean/notation.h" #include "frontends/lean/notation.h"
#include "frontends/lean/pp.h" #include "frontends/lean/pp.h"
#ifdef LEAN_USE_READLINE
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <readline/readline.h>
#include <readline/history.h>
#endif
#ifndef LEAN_DEFAULT_PARSER_SHOW_ERRORS #ifndef LEAN_DEFAULT_PARSER_SHOW_ERRORS
#define LEAN_DEFAULT_PARSER_SHOW_ERRORS true #define LEAN_DEFAULT_PARSER_SHOW_ERRORS true

View file

@ -6,6 +6,8 @@ Author: Leonardo de Moura
*/ */
#include <limits> #include <limits>
#include <memory> #include <memory>
#include <utility>
#include <vector>
#include "util/scoped_map.h" #include "util/scoped_map.h"
#include "util/exception.h" #include "util/exception.h"
#include "util/scoped_set.h" #include "util/scoped_set.h"

View file

@ -7,6 +7,7 @@ Author: Leonardo de Moura
#pragma once #pragma once
#include <iostream> #include <iostream>
#include <vector> #include <vector>
#include <string>
#include "util/name.h" #include "util/name.h"
#include "util/list.h" #include "util/list.h"
#include "util/numerics/mpq.h" #include "util/numerics/mpq.h"

View file

@ -9,6 +9,7 @@ Author: Leonardo de Moura
#include <gmp.h> #include <gmp.h>
#include <mpfr.h> #include <mpfr.h>
#include <utility> #include <utility>
#include <algorithm>
#include "util/trace.h" #include "util/trace.h"
#include "util/numerics/mpz.h" #include "util/numerics/mpz.h"
#include "interval/interval.h" #include "interval/interval.h"

View file

@ -5,9 +5,10 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <algorithm> #include <algorithm>
#include "abstract.h" #include <utility>
#include "free_vars.h" #include "kernel/abstract.h"
#include "replace.h" #include "kernel/free_vars.h"
#include "kernel/replace.h"
namespace lean { namespace lean {
expr abstract(expr const & e, unsigned n, expr const * s) { expr abstract(expr const & e, unsigned n, expr const * s) {

View file

@ -5,7 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include "expr.h" #include <utility>
#include "kernel/expr.h"
namespace lean { namespace lean {
/** /**

View file

@ -4,9 +4,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include "builtin.h" #include "kernel/builtin.h"
#include "environment.h" #include "kernel/environment.h"
#include "abstract.h" #include "kernel/abstract.h"
#ifndef LEAN_DEFAULT_LEVEL_SEPARATION #ifndef LEAN_DEFAULT_LEVEL_SEPARATION
#define LEAN_DEFAULT_LEVEL_SEPARATION 512 #define LEAN_DEFAULT_LEVEL_SEPARATION 512

View file

@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include "expr.h" #include "kernel/expr.h"
namespace lean { namespace lean {
/** /**

View file

@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <utility>
#include "util/exception.h" #include "util/exception.h"
#include "kernel/context.h" #include "kernel/context.h"

View file

@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <utility>
#include "util/list.h" #include "util/list.h"
#include "kernel/expr.h" #include "kernel/expr.h"

View file

@ -7,9 +7,9 @@ Author: Leonardo de Moura
#pragma once #pragma once
#include <iostream> #include <iostream>
#include <memory> #include <memory>
#include "context.h" #include "kernel/context.h"
#include "object.h" #include "kernel/object.h"
#include "level.h" #include "kernel/level.h"
namespace lean { namespace lean {
/** /**

View file

@ -8,6 +8,7 @@ Author: Leonardo de Moura
#include <iostream> #include <iostream>
#include <limits> #include <limits>
#include <atomic> #include <atomic>
#include <utility>
#include "util/rc.h" #include "util/rc.h"
#include "util/name.h" #include "util/name.h"
#include "util/hash.h" #include "util/hash.h"

View file

@ -6,7 +6,7 @@ Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <unordered_map> #include <unordered_map>
#include "expr.h" #include "kernel/expr.h"
namespace lean { namespace lean {

View file

@ -6,6 +6,7 @@ Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <unordered_set> #include <unordered_set>
#include <utility>
#include "util/hash.h" #include "util/hash.h"
#include "kernel/expr.h" #include "kernel/expr.h"

View file

@ -5,8 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include "expr.h" #include "kernel/expr.h"
#include "expr_sets.h" #include "kernel/expr_sets.h"
namespace lean { namespace lean {
template<typename F> template<typename F>

View file

@ -5,9 +5,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <algorithm> #include <algorithm>
#include "free_vars.h" #include "kernel/free_vars.h"
#include "expr_sets.h" #include "kernel/expr_sets.h"
#include "replace.h" #include "kernel/replace.h"
namespace lean { namespace lean {

View file

@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include "expr.h" #include "kernel/expr.h"
namespace lean { namespace lean {
/** /**
\brief Return true iff the given expression has free variables. \brief Return true iff the given expression has free variables.

View file

@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include "expr.h" #include "kernel/expr.h"
namespace lean { namespace lean {
/** /**

View file

@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <vector>
#include "util/exception.h" #include "util/exception.h"
#include "kernel/context.h" #include "kernel/context.h"
#include "kernel/environment.h" #include "kernel/environment.h"

View file

@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <algorithm> #include <algorithm>
#include <limits>
#include "util/scoped_map.h" #include "util/scoped_map.h"
#include "util/list.h" #include "util/list.h"
#include "util/flet.h" #include "util/flet.h"

View file

@ -6,9 +6,9 @@ Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <memory> #include <memory>
#include "expr.h" #include "kernel/expr.h"
#include "environment.h" #include "kernel/environment.h"
#include "context.h" #include "kernel/context.h"
namespace lean { namespace lean {
class environment; class environment;

View file

@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <algorithm>
#include "util/rc.h" #include "util/rc.h"
#include "kernel/expr.h" #include "kernel/expr.h"
/* /*

View file

@ -4,8 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include "occurs.h" #include "kernel/occurs.h"
#include "for_each.h" #include "kernel/for_each.h"
namespace lean { namespace lean {
template<typename F> template<typename F>

View file

@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include "context.h" #include "kernel/context.h"
namespace lean { namespace lean {
/** \brief Return true iff \c n occurs in \c m */ /** \brief Return true iff \c n occurs in \c m */

View file

@ -6,8 +6,8 @@ Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <memory> #include <memory>
#include "expr.h" #include "kernel/expr.h"
#include "context.h" #include "kernel/context.h"
namespace lean { namespace lean {
class environment; class environment;

View file

@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include "expr.h" #include "kernel/expr.h"
namespace lean { namespace lean {
// Some value subclasses that capture common implementation patterns. // Some value subclasses that capture common implementation patterns.

View file

@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <utility>
#include "util/hash.h" #include "util/hash.h"
#include "kernel/expr.h" #include "kernel/expr.h"

View file

@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <vector>
#include "library/kernel_exception_formatter.h" #include "library/kernel_exception_formatter.h"
namespace lean { namespace lean {

View file

@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <algorithm> #include <algorithm>
#include <utility>
#include "util/exception.h" #include "util/exception.h"
#include "library/printer.h" #include "library/printer.h"
#include "library/metavar.h" #include "library/metavar.h"

View file

@ -6,6 +6,7 @@ Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <iostream> #include <iostream>
#include <utility>
#include "kernel/expr.h" #include "kernel/expr.h"
#include "kernel/context.h" #include "kernel/context.h"

View file

@ -1,3 +1,5 @@
#include <string>
using std::cout; using std::cout;
using std::endl; using std::endl;

View file

@ -7,7 +7,7 @@ Author: Leonardo de Moura
#pragma once #pragma once
#include <algorithm> #include <algorithm>
#include <cstring> #include <cstring>
#include "debug.h" #include "util/debug.h"
namespace lean { namespace lean {
/** /**

View file

@ -4,18 +4,17 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include "debug.h"
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <set> #include <set>
#include <string> #include <string>
#include <memory> #include <memory>
#include <cstdlib> #include <cstdlib>
#ifndef _WINDOWS #ifndef _WINDOWS
// Support for pid // Support for pid
#include<unistd.h> #include<unistd.h>
#endif #endif
#include "util/debug.h"
namespace lean { namespace lean {
static volatile bool g_has_violations = false; static volatile bool g_has_violations = false;

View file

@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include "escaped.h" #include "util/escaped.h"
namespace lean { namespace lean {

View file

@ -5,8 +5,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <sstream> #include <sstream>
#include "exception.h" #include <string>
#include "sstream.h" #include "util/exception.h"
#include "util/sstream.h"
namespace lean { namespace lean {

View file

@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include "debug.h" #include "util/debug.h"
namespace lean { namespace lean {

View file

@ -7,8 +7,8 @@ Author: Leonardo de Moura
#pragma once #pragma once
#include <iostream> #include <iostream>
#include <iterator> #include <iterator>
#include "rc.h" #include "util/rc.h"
#include "debug.h" #include "util/debug.h"
namespace lean { namespace lean {
/** /**

View file

@ -5,9 +5,10 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include "list.h" #include <utility>
#include "buffer.h" #include "util/list.h"
#include "pair.h" #include "util/buffer.h"
#include "util/pair.h"
namespace lean { namespace lean {
/** /**

View file

@ -8,13 +8,14 @@ Author: Leonardo de Moura
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>
#include "name.h" #include <string>
#include "debug.h" #include "util/name.h"
#include "rc.h" #include "util/debug.h"
#include "buffer.h" #include "util/rc.h"
#include "hash.h" #include "util/buffer.h"
#include "trace.h" #include "util/hash.h"
#include "ascii.h" #include "util/trace.h"
#include "util/ascii.h"
namespace lean { namespace lean {
constexpr char const * anonymous_str = "[anonymous]"; constexpr char const * anonymous_str = "[anonymous]";

View file

@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <string>
#include <iostream> #include <iostream>
namespace lean { namespace lean {

View file

@ -6,7 +6,7 @@ Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <unordered_set> #include <unordered_set>
#include "name.h" #include "util/name.h"
namespace lean { namespace lean {
typedef std::unordered_set<name, name_hash, name_eq> name_set; typedef std::unordered_set<name, name_hash, name_eq> name_set;
} }

View file

@ -4,9 +4,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Soonho Kong Author: Soonho Kong
*/ */
#include <cmath>
#include "util/numerics/numeric_traits.h" #include "util/numerics/numeric_traits.h"
#include "util/numerics/double.h" #include "util/numerics/double.h"
#include <cmath>
namespace lean { namespace lean {

View file

@ -4,9 +4,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Soonho Kong Author: Soonho Kong
*/ */
#include <cmath>
#include "util/numerics/numeric_traits.h" #include "util/numerics/numeric_traits.h"
#include "util/numerics/float.h" #include "util/numerics/float.h"
#include <cmath>
namespace lean { namespace lean {

View file

@ -4,8 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <new>
#include <gmp.h> #include <gmp.h>
#include <new>
#include <cstdlib> #include <cstdlib>
extern "C" void * cxx_malloc(size_t size) { extern "C" void * cxx_malloc(size_t size) {

View file

@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Soonho Kong Author: Soonho Kong
*/ */
#include <cmath> #include <cmath>
#include <string>
#include "util/numerics/mpfp.h" #include "util/numerics/mpfp.h"
namespace lean { namespace lean {

View file

@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <memory> #include <memory>
#include "mpz.h" #include "util/numerics/mpz.h"
namespace lean { namespace lean {

View file

@ -5,8 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <iostream>
#include <gmp.h> #include <gmp.h>
#include <iostream>
#include "util/debug.h" #include "util/debug.h"
#include "util/numerics/numeric_traits.h" #include "util/numerics/numeric_traits.h"

View file

@ -7,7 +7,7 @@ Author: Leonardo de Moura
*/ */
#include <cfenv> #include <cfenv>
#include <cmath> #include <cmath>
#include "numeric_traits.h" #include "util/numerics/numeric_traits.h"
namespace lean { namespace lean {

View file

@ -8,6 +8,7 @@ Author: Leonardo de Moura
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
#include <sstream> #include <sstream>
#include <string>
namespace lean { namespace lean {
/** /**

View file

@ -5,9 +5,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <iostream>
#include <deque> #include <deque>
#include "rc.h" #include <iostream>
#include "util/rc.h"
#ifndef LEAN_PDEQUE_MIN_QUOTA #ifndef LEAN_PDEQUE_MIN_QUOTA
#define LEAN_PDEQUE_MIN_QUOTA 16 #define LEAN_PDEQUE_MIN_QUOTA 16

View file

@ -7,7 +7,7 @@ Author: Leonardo de Moura
#pragma once #pragma once
#include <iostream> #include <iostream>
#include <vector> #include <vector>
#include "rc.h" #include "util/rc.h"
#ifndef LEAN_PVECTOR_MIN_QUOTA #ifndef LEAN_PVECTOR_MIN_QUOTA
#define LEAN_PVECTOR_MIN_QUOTA 16 #define LEAN_PVECTOR_MIN_QUOTA 16

View file

@ -7,9 +7,6 @@ Author: Leonardo de Moura
#pragma once #pragma once
// Goodies for reference counting // Goodies for reference counting
#include "debug.h"
#ifdef LEAN_THREAD_UNSAFE_REF_COUNT #ifdef LEAN_THREAD_UNSAFE_REF_COUNT
#define MK_LEAN_RC() \ #define MK_LEAN_RC() \
private: \ private: \
@ -30,6 +27,7 @@ void inc_ref() { std::atomic_fetch_add_explicit(&m_rc, 1u, std::memory_order_rel
bool dec_ref_core() { lean_assert(get_rc() > 0); return std::atomic_fetch_sub_explicit(&m_rc, 1u, std::memory_order_relaxed) == 1u; } \ bool dec_ref_core() { lean_assert(get_rc() > 0); return std::atomic_fetch_sub_explicit(&m_rc, 1u, std::memory_order_relaxed) == 1u; } \
void dec_ref() { if (dec_ref_core()) dealloc(); } void dec_ref() { if (dec_ref_core()) dealloc(); }
#endif #endif
#include "util/debug.h"
#define LEAN_COPY_REF(T, Arg) \ #define LEAN_COPY_REF(T, Arg) \
if (Arg.m_ptr) \ if (Arg.m_ptr) \

View file

@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <limits> #include <limits>
#include "exception.h" #include "util/exception.h"
namespace lean { namespace lean {
void check_int_overflow(long long n) { void check_int_overflow(long long n) {

View file

@ -8,7 +8,9 @@ Author: Leonardo de Moura
#include <iostream> #include <iostream>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include "debug.h" #include <utility>
#include <functional>
#include "util/debug.h"
#ifndef LEAN_SCOPED_MAP_INITIAL_BUCKET_SIZE #ifndef LEAN_SCOPED_MAP_INITIAL_BUCKET_SIZE
#define LEAN_SCOPED_MAP_INITIAL_BUCKET_SIZE 8 #define LEAN_SCOPED_MAP_INITIAL_BUCKET_SIZE 8

View file

@ -7,7 +7,9 @@ Author: Leonardo de Moura
#pragma once #pragma once
#include <unordered_set> #include <unordered_set>
#include <vector> #include <vector>
#include "debug.h" #include <utility>
#include <functional>
#include "util/debug.h"
#ifndef LEAN_SCOPED_SET_INITIAL_BUCKET_SIZE #ifndef LEAN_SCOPED_SET_INITIAL_BUCKET_SIZE
#define LEAN_SCOPED_SET_INITIAL_BUCKET_SIZE 8 #define LEAN_SCOPED_SET_INITIAL_BUCKET_SIZE 8

View file

@ -5,6 +5,8 @@
Author: Soonho Kong Author: Soonho Kong
*/ */
#include <sstream> #include <sstream>
#include <string>
#include <utility>
#include "util/escaped.h" #include "util/escaped.h"
#include "util/sexpr/sexpr.h" #include "util/sexpr/sexpr.h"
#include "util/sexpr/format.h" #include "util/sexpr/format.h"
@ -365,7 +367,7 @@ format operator+(format const & f1, format const & f2) {
} }
format operator^(format const & f1, format const & f2) { format operator^(format const & f1, format const & f2) {
return format{f1, format(" "), f2}; return format {f1, format(" "), f2};
} }
std::ostream & pretty(std::ostream & out, unsigned w, bool colors, format const & f) { std::ostream & pretty(std::ostream & out, unsigned w, bool colors, format const & f) {

View file

@ -9,6 +9,8 @@ Author: Soonho Kong
#include <iostream> #include <iostream>
#include <numeric> #include <numeric>
#include <sstream> #include <sstream>
#include <utility>
#include <string>
#include "util/pair.h" #include "util/pair.h"
#include "util/debug.h" #include "util/debug.h"
#include "util/numerics/mpz.h" #include "util/numerics/mpz.h"

View file

@ -5,9 +5,10 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <memory> #include <memory>
#include "options.h" #include <string>
#include "option_declarations.h" #include "util/sexpr/options.h"
#include "sexpr_fn.h" #include "util/sexpr/option_declarations.h"
#include "util/sexpr/sexpr_fn.h"
namespace lean { namespace lean {
std::ostream & operator<<(std::ostream & out, option_kind k) { std::ostream & operator<<(std::ostream & out, option_kind k) {

View file

@ -5,6 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include <cstring> #include <cstring>
#include <string>
#include "util/rc.h" #include "util/rc.h"
#include "util/hash.h" #include "util/hash.h"
#include "util/name.h" #include "util/name.h"

View file

@ -6,6 +6,8 @@ Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <iostream> #include <iostream>
#include <string>
#include <algorithm>
namespace lean { namespace lean {
class name; class name;

View file

@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include "sexpr_fn.h" #include "util/sexpr/sexpr_fn.h"
namespace lean { namespace lean {

View file

@ -6,6 +6,7 @@ Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <sstream> #include <sstream>
#include <string>
namespace lean { namespace lean {
/** \brief Wrapper for std::ostringstream */ /** \brief Wrapper for std::ostringstream */

View file

@ -9,4 +9,4 @@ Author: Leonardo de Moura
#ifndef LEAN_DEBUG #ifndef LEAN_DEBUG
#define LEAN_DEBUG #define LEAN_DEBUG
#endif #endif
#include "debug.h" #include "util/debug.h"

View file

@ -5,8 +5,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#pragma once #pragma once
#include <iostream>
#include <time.h> #include <time.h>
#include <string>
#include <iostream>
namespace lean { namespace lean {
/** /**

View file

@ -5,10 +5,10 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#include "trace.h"
#include <set> #include <set>
#include <string> #include <string>
#include <memory> #include <memory>
#include "util/trace.h"
#ifndef LEAN_TRACE_OUT #ifndef LEAN_TRACE_OUT
#define LEAN_TRACE_OUT ".lean_trace" #define LEAN_TRACE_OUT ".lean_trace"

View file

@ -7,8 +7,8 @@ Author: Leonardo de Moura
#pragma once #pragma once
#ifdef LEAN_TRACE #ifdef LEAN_TRACE
#include <fstream>
#include <mutex> #include <mutex>
#include <fstream>
namespace lean { namespace lean {
extern std::ofstream tout; extern std::ofstream tout;
extern std::mutex trace_mutex; extern std::mutex trace_mutex;