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/sloc-counter.hxx | 77 ------------------------------------------ 1 file changed, 77 deletions(-) delete mode 100644 cutl/compiler/sloc-counter.hxx (limited to 'cutl/compiler/sloc-counter.hxx') diff --git a/cutl/compiler/sloc-counter.hxx b/cutl/compiler/sloc-counter.hxx deleted file mode 100644 index b536e7f..0000000 --- a/cutl/compiler/sloc-counter.hxx +++ /dev/null @@ -1,77 +0,0 @@ -// file : cutl/compiler/sloc-counter.hxx -// license : MIT; see accompanying LICENSE file - -#ifndef CUTL_COMPILER_SLOC_COUNTER_HXX -#define CUTL_COMPILER_SLOC_COUNTER_HXX - -#include // std::size_t - -#include - -namespace cutl -{ - namespace compiler - { - template - class sloc_counter: public code_stream - { - public: - sloc_counter (code_stream& out); - - std::size_t - count () const - { - return count_; - } - - private: - sloc_counter (sloc_counter const&); - - sloc_counter& - operator= (sloc_counter const&); - - public: - virtual void - put (C); - - virtual void - unbuffer (); - - private: - void - code (C); - - void - c_comment (C); - - void - cxx_comment (C); - - void - char_literal (C); - - void - string_literal (C); - - private: - code_stream& out_; - std::size_t count_; - - C prev_; // Previous character or '\0'. - bool code_counted_; // This code line has already been counted. - - enum construct - { - con_code, - con_c_com, - con_cxx_com, - con_char_lit, - con_string_lit - } construct_; - }; - } -} - -#include - -#endif // CUTL_COMPILER_SLOC_COUNTER_HXX -- cgit v1.1