From f663b1602d2675b1ab91d76dd739070d34e01291 Mon Sep 17 00:00:00 2001 From: "kenton@google.com" Date: Wed, 15 Apr 2009 19:50:54 +0000 Subject: Adds a flag to protoc called --error_format which specifies what convention to use when printing errors. Default is GCC, but Microsoft Visual Studio is another option. This allows errors to be clickable in the MSVS error log. --- src/google/protobuf/compiler/command_line_interface.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/google/protobuf/compiler/command_line_interface.h') diff --git a/src/google/protobuf/compiler/command_line_interface.h b/src/google/protobuf/compiler/command_line_interface.h index 86eeba53..ec658636 100644 --- a/src/google/protobuf/compiler/command_line_interface.h +++ b/src/google/protobuf/compiler/command_line_interface.h @@ -210,6 +210,13 @@ class LIBPROTOC_EXPORT CommandLineInterface { Mode mode_; + enum ErrorFormat { + ERROR_FORMAT_GCC, // GCC error output format (default). + ERROR_FORMAT_MSVS // Visual Studio output (--error_format=msvs). + }; + + ErrorFormat error_format_; + vector > proto_path_; // Search path for proto files. vector input_files_; // Names of the input proto files. -- cgit v1.2.3