From 8e761289a2446367267c6c0d9a26e734f0f78306 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 16 Dec 2020 20:29:05 +0300 Subject: Get rid of legacy build systems and rename cutl/ to libcutl/ --- cutl/compiler/code-stream.hxx | 152 -------- cutl/compiler/code-stream.txx | 93 ----- cutl/compiler/context.cxx | 53 --- cutl/compiler/context.hxx | 136 ------- cutl/compiler/context.txx | 87 ----- cutl/compiler/cxx-indenter.cxx | 48 --- cutl/compiler/cxx-indenter.hxx | 170 --------- cutl/compiler/cxx-indenter.ixx | 68 ---- cutl/compiler/cxx-indenter.txx | 816 ----------------------------------------- cutl/compiler/sloc-counter.hxx | 77 ---- cutl/compiler/sloc-counter.txx | 223 ----------- cutl/compiler/traversal.hxx | 170 --------- cutl/compiler/traversal.txx | 143 -------- cutl/compiler/type-id.hxx | 47 --- cutl/compiler/type-id.ixx | 43 --- cutl/compiler/type-id.txx | 16 - cutl/compiler/type-info.cxx | 29 -- cutl/compiler/type-info.hxx | 110 ------ cutl/compiler/type-info.ixx | 94 ----- 19 files changed, 2575 deletions(-) delete mode 100644 cutl/compiler/code-stream.hxx delete mode 100644 cutl/compiler/code-stream.txx delete mode 100644 cutl/compiler/context.cxx delete mode 100644 cutl/compiler/context.hxx delete mode 100644 cutl/compiler/context.txx delete mode 100644 cutl/compiler/cxx-indenter.cxx delete mode 100644 cutl/compiler/cxx-indenter.hxx delete mode 100644 cutl/compiler/cxx-indenter.ixx delete mode 100644 cutl/compiler/cxx-indenter.txx delete mode 100644 cutl/compiler/sloc-counter.hxx delete mode 100644 cutl/compiler/sloc-counter.txx delete mode 100644 cutl/compiler/traversal.hxx delete mode 100644 cutl/compiler/traversal.txx delete mode 100644 cutl/compiler/type-id.hxx delete mode 100644 cutl/compiler/type-id.ixx delete mode 100644 cutl/compiler/type-id.txx delete mode 100644 cutl/compiler/type-info.cxx delete mode 100644 cutl/compiler/type-info.hxx delete mode 100644 cutl/compiler/type-info.ixx (limited to 'cutl/compiler') diff --git a/cutl/compiler/code-stream.hxx b/cutl/compiler/code-stream.hxx deleted file mode 100644 index deeca47..0000000 --- a/cutl/compiler/code-stream.hxx +++ /dev/null @@ -1,152 +0,0 @@ -// file : cutl/compiler/code-stream.hxx -// license : MIT; see accompanying LICENSE file - -#ifndef CUTL_COMPILER_CODE_STREAM_HXX -#define CUTL_COMPILER_CODE_STREAM_HXX - -#include - -#include - -namespace cutl -{ - namespace compiler - { - // - // - template - class code_stream - { - public: - code_stream () {} - - virtual - ~code_stream (); - - public: - virtual void - put (C) = 0; - - // Unbuffer flushes internal formatting buffers (if any). - // Note that unbuffer is not exactly flushing since it can - // result in formatting errors and in general can not be - // called at arbitrary points. Natural use case would be - // to call unbuffer at the end of the stream when no more - // data is expected. - // - virtual void - unbuffer () = 0; - - private: - code_stream (code_stream const&); - - code_stream& - operator= (code_stream const&); - }; - - // - // - template - class from_streambuf_adapter: public code_stream - { - public: - typedef typename std::basic_streambuf::traits_type traits_type; - typedef typename std::basic_streambuf::int_type int_type; - - class eof: exception {}; - class sync: exception {}; - - public: - from_streambuf_adapter (std::basic_streambuf& stream) - : stream_ (stream) - { - } - - private: - from_streambuf_adapter (from_streambuf_adapter const&); - - from_streambuf_adapter& - operator= (from_streambuf_adapter const&); - - public: - virtual void - put (C c); - - virtual void - unbuffer (); - - private: - std::basic_streambuf& stream_; - }; - - // - // - template - class to_streambuf_adapter: public std::basic_streambuf - { - public: - typedef typename std::basic_streambuf::traits_type traits_type; - typedef typename std::basic_streambuf::int_type int_type; - - public: - to_streambuf_adapter (code_stream& stream) - : stream_ (stream) - { - } - - private: - to_streambuf_adapter (to_streambuf_adapter const&); - - to_streambuf_adapter& - operator= (to_streambuf_adapter const&); - - public: - virtual int_type - overflow (int_type i); - - // Does nothing since calling unbuffer here would be dangerous. - // See the note in code_stream. - // - virtual int - sync (); - - private: - code_stream& stream_; - }; - - // - // - template