diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:11 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:11 +0100 |
commit | 4538829ab86b5a1cd4e845e7eab165029c9d6d46 (patch) | |
tree | bbadf39aed0610c8f8f7b41fefff47773b8ac205 /libcutl/cutl/compiler/sloc-counter.hxx | |
parent | 23d41842168ac1a1580111b9c5c73500ceee3d57 (diff) | |
parent | aad5ad9bf0c02aa4e79bc6b7d6c934612fff4026 (diff) |
Update upstream source from tag 'upstream/4.2.0'
Update to upstream version '4.2.0'
with Debian dir 1b38df7bbcf313223de3c50107ac0255090fe647
Diffstat (limited to 'libcutl/cutl/compiler/sloc-counter.hxx')
-rw-r--r-- | libcutl/cutl/compiler/sloc-counter.hxx | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/libcutl/cutl/compiler/sloc-counter.hxx b/libcutl/cutl/compiler/sloc-counter.hxx deleted file mode 100644 index cbcdede..0000000 --- a/libcutl/cutl/compiler/sloc-counter.hxx +++ /dev/null @@ -1,78 +0,0 @@ -// file : cutl/compiler/sloc-counter.hxx -// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC -// license : MIT; see accompanying LICENSE file - -#ifndef CUTL_COMPILER_SLOC_COUNTER_HXX -#define CUTL_COMPILER_SLOC_COUNTER_HXX - -#include <cstddef> // std::size_t - -#include <cutl/compiler/code-stream.hxx> - -namespace cutl -{ - namespace compiler - { - template <typename C> - class sloc_counter: public code_stream<C> - { - public: - sloc_counter (code_stream<C>& 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<C>& 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 <cutl/compiler/sloc-counter.txx> - -#endif // CUTL_COMPILER_SLOC_COUNTER_HXX |