Boost logo

Boost Docs :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2006-02-01 12:43:24


The current errors quickbook prints aren't parsable by most IDE
environments since they don't look like GCC or MSVC error messages.
Which means that navigating to the errors is a bit cumbersome. So minor
"improvement" I changed the messages to match how GCC prints errors. So
I can double click on the error line and go straight to the error. OK To
commit?

Index: tools/quickbook/detail/quickbook.cpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/quickbook/detail/quickbook.cpp,v
retrieving revision 1.24
diff -u -r1.24 quickbook.cpp
--- tools/quickbook/detail/quickbook.cpp 19 Jan 2006 17:44:07 -0000 1.24
+++ tools/quickbook/detail/quickbook.cpp 1 Feb 2006 17:32:17 -0000
@@ -116,10 +116,9 @@
          if (!info.full)
          {
              file_position const pos = info.stop.get_position();
- cerr
- << "Syntax error at \"" << pos.file
- << "\" line " << pos.line
- << ", column " << pos.column << ".\n";
+ std::cerr
+ << pos.file << ":" << pos.line << ": error: "
+ << "Syntax Error near column " << pos.column << ".\n";
              return 1;
          }

Index: tools/quickbook/detail/actions.cpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/quickbook/detail/actions.cpp,v
retrieving revision 1.30
diff -u -r1.30 actions.cpp
--- tools/quickbook/detail/actions.cpp 28 Dec 2005 20:42:09 -0000 1.30
+++ tools/quickbook/detail/actions.cpp 1 Feb 2006 17:31:40 -0000
@@ -24,9 +24,8 @@
      {
          boost::spirit::file_position const pos = first.get_position();
          std::cerr
- << "Syntax Error at \"" << pos.file
- << "\" line " << pos.line
- << ", column " << pos.column << ".\n";
+ << pos.file << ":" << pos.line << ": error: "
+ << "Syntax Error near column " << pos.column << ".\n";
      }

      void phrase_action::operator()(iterator const& first, iterator
const& last) const

--grafik


Boost-Docs list run by mbergal at meta-comm.com