From 22ee058d65ff5120a35c483cb414923c647a124c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 19 Sep 2011 09:45:53 +0200 Subject: Rename error.?xx to diagnostics.?xx --- odb/diagnostics.hxx | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 odb/diagnostics.hxx (limited to 'odb/diagnostics.hxx') diff --git a/odb/diagnostics.hxx b/odb/diagnostics.hxx new file mode 100644 index 0000000..6f417cb --- /dev/null +++ b/odb/diagnostics.hxx @@ -0,0 +1,56 @@ +// file : odb/diagnostics.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v3; see accompanying LICENSE file + +#ifndef ODB_DIAGNOSTICS_HXX +#define ODB_DIAGNOSTICS_HXX + +#include + +#include +#include + +#include + +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); + +std::ostream& +error (location_t); + +std::ostream& +warn (location_t); + +std::ostream& +info (location_t); + +std::ostream& +error (); + +std::ostream& +warn (); + +std::ostream& +info (); + +// 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 -- cgit v1.1