diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-22 15:58:08 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-24 17:02:47 +0300 |
commit | 823026b58211a4166de06ac243d978dcb9930271 (patch) | |
tree | 97b43039cb769f8bee410e8536f9f945f2825153 /odb/diagnostics.hxx | |
parent | b56b9c6796d8853758f0f5967488260d61b788e2 (diff) |
Turn odb repository into muti-package repository
Also remove the autoconf/make-based build system.
Diffstat (limited to 'odb/diagnostics.hxx')
-rw-r--r-- | odb/diagnostics.hxx | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/odb/diagnostics.hxx b/odb/diagnostics.hxx deleted file mode 100644 index 46f2272..0000000 --- a/odb/diagnostics.hxx +++ /dev/null @@ -1,96 +0,0 @@ -// file : odb/diagnostics.hxx -// license : GNU GPL v3; see accompanying LICENSE file - -#ifndef ODB_DIAGNOSTICS_HXX -#define ODB_DIAGNOSTICS_HXX - -#include <odb/gcc-fwd.hxx> - -#include <string> -#include <cstddef> -#include <iostream> - -#include <libcutl/fs/path.hxx> - -#include <odb/location.hxx> - -using std::endl; - -std::ostream& -error (cutl::fs::path const&, std::size_t line, std::size_t clmn); - -std::ostream& -warn (cutl::fs::path const&, std::size_t line, std::size_t clmn); - -std::ostream& -info (cutl::fs::path const&, std::size_t line, std::size_t clmn); - -inline std::ostream& -error (location const& l) -{ - return error (l.file, l.line, l.column); -} - -inline std::ostream& -warn (location const&l) -{ - return warn (l.file, l.line, l.column); -} - -inline std::ostream& -info (location const&l) -{ - return info (l.file, l.line, l.column); -} - -std::ostream& -error (location_t); - -std::ostream& -warn (location_t); - -std::ostream& -info (location_t); - -// -// -class cxx_lexer; - -std::ostream& -error (cxx_lexer&); - -std::ostream& -warn (cxx_lexer&); - -std::ostream& -info (cxx_lexer&); - -// Location as a string in the "<file>:<line>:<column>" format. -// -std::string -location_string (cutl::fs::path const&, - std::size_t line, - std::size_t clmn, - bool leaf = false); - -inline std::string -location_string (location const& l, bool leaf = false) -{ - return location_string (l.file, l.line, l.column, leaf); -} - -std::string -location_string (location_t, bool leaf = false); - -// location_t macro wrappers. -// -cutl::fs::path -location_file (location_t); - -std::size_t -location_line (location_t); - -std::size_t -location_column (location_t); - -#endif // ODB_DIAGNOSTICS_HXX |