summaryrefslogtreecommitdiffstats
path: root/iwyu_globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'iwyu_globals.h')
-rw-r--r--iwyu_globals.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/iwyu_globals.h b/iwyu_globals.h
index 242cdf6..8066890 100644
--- a/iwyu_globals.h
+++ b/iwyu_globals.h
@@ -24,15 +24,6 @@ struct PrintingPolicy;
namespace include_what_you_use {
-// Exit codes.
-// If invalid args are specified in any form, we return 1,
-// otherwise we return 2 + the number of edits suggested.
-// Of course, this means that IWYU always fails (i.e. never returns 0.)
-// This is intentional, so it can be used with make -k without ever being
-// considered up-to-date.
-static const int EXIT_INVALIDARGS = 1;
-static const int EXIT_SUCCESS_OFFSET = 2;
-
using std::set;
using std::string;
using std::vector;
@@ -98,9 +89,12 @@ struct CommandlineFlags {
PrefixHeaderIncludePolicy prefix_header_include_policy;
bool pch_in_code; // Treat the first seen include as a PCH. No short option.
bool no_comments; // Disable 'why' comments. No short option.
+ bool update_comments; // Force 'why' comments. No short option.
bool no_fwd_decls; // Disable forward declarations.
bool quoted_includes_first; // Place quoted includes first in sort order.
bool cxx17ns; // -C: C++17 nested namespace syntax
+ int exit_code_error; // Exit with this code for iwyu violations.
+ int exit_code_always; // Always exit with this exit code.
};
const CommandlineFlags& GlobalFlags();