summaryrefslogtreecommitdiff
path: root/odb/diagnostics.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-19 09:45:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-19 09:45:53 +0200
commit22ee058d65ff5120a35c483cb414923c647a124c (patch)
tree8543e7d9b979fe2efe831b131c3a02b819bf8abf /odb/diagnostics.hxx
parent6c231f46e8b15bb7497aa5e8e7efa19ce73c7df1 (diff)
Rename error.?xx to diagnostics.?xx
Diffstat (limited to 'odb/diagnostics.hxx')
-rw-r--r--odb/diagnostics.hxx56
1 files changed, 56 insertions, 0 deletions
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 <boris@codesynthesis.com>
+// 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 <odb/gcc-fwd.hxx>
+
+#include <cstddef>
+#include <iostream>
+
+#include <cutl/fs/path.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);
+
+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