summaryrefslogtreecommitdiff
path: root/odb/error.cxx
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/error.cxx
parent6c231f46e8b15bb7497aa5e8e7efa19ce73c7df1 (diff)
Rename error.?xx to diagnostics.?xx
Diffstat (limited to 'odb/error.cxx')
-rw-r--r--odb/error.cxx105
1 files changed, 0 insertions, 105 deletions
diff --git a/odb/error.cxx b/odb/error.cxx
deleted file mode 100644
index 05a30ca..0000000
--- a/odb/error.cxx
+++ /dev/null
@@ -1,105 +0,0 @@
-// file : odb/error.cxx
-// author : Boris Kolpackov <boris@codesynthesis.com>
-// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
-// license : GNU GPL v3; see accompanying LICENSE file
-
-#include <odb/gcc.hxx>
-#include <odb/error.hxx>
-
-using namespace std;
-
-std::ostream&
-error (cutl::fs::path const& p, size_t line, size_t clmn)
-{
- //@@ We only need to do this if we are still parsing (i.e.,
- // pragma parsing). Is there a way to detect this?
- //
- errorcount++;
-
- cerr << p << ':' << line << ':' << clmn << ": error: ";
- return cerr;
-}
-
-std::ostream&
-warn (cutl::fs::path const& p, size_t line, size_t clmn)
-{
- warningcount++;
-
- cerr << p << ':' << line << ':' << clmn << ": warning: ";
- return cerr;
-}
-
-std::ostream&
-info (cutl::fs::path const& p, size_t line, size_t clmn)
-{
- cerr << p << ':' << line << ':' << clmn << ": info: ";
- return cerr;
-}
-
-std::ostream&
-error (location_t loc)
-{
- errorcount++;
- cerr << LOCATION_FILE (loc) << ':'
- << LOCATION_LINE (loc) << ':'
- << LOCATION_COLUMN (loc) << ':'
- << " error: ";
- return cerr;
-}
-
-std::ostream&
-warn (location_t loc)
-{
- warningcount++;
- cerr << LOCATION_FILE (loc) << ':'
- << LOCATION_LINE (loc) << ':'
- << LOCATION_COLUMN (loc) << ':'
- << " warning: ";
- return cerr;
-}
-
-std::ostream&
-info (location_t loc)
-{
- cerr << LOCATION_FILE (loc) << ':'
- << LOCATION_LINE (loc) << ':'
- << LOCATION_COLUMN (loc) << ':'
- << " info: ";
- return cerr;
-}
-
-std::ostream&
-error ()
-{
- return error (input_location);
-}
-
-std::ostream&
-warn ()
-{
- return warn (input_location);
-}
-
-std::ostream&
-info ()
-{
- return info (input_location);
-}
-
-cutl::fs::path
-location_file (location_t loc)
-{
- return cutl::fs::path (LOCATION_FILE (loc));
-}
-
-size_t
-location_line (location_t loc)
-{
- return LOCATION_LINE (loc);
-}
-
-size_t
-location_column (location_t loc)
-{
- return LOCATION_COLUMN (loc);
-}