]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Improve ordering of ArgumentProcessingState members
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 2 May 2020 11:05:18 +0000 (13:05 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 5 May 2020 18:25:58 +0000 (20:25 +0200)
src/argprocessing.cpp

index 85934699e7dbc4912bdfb0881f91b30ebd528209..bb6b835890bae1559b3efa292fb322ddaf5800e6 100644 (file)
@@ -36,6 +36,10 @@ struct ArgumentProcessingState
   bool found_S_opt = false;
   bool found_pch = false;
   bool found_fpch_preprocess = false;
+  bool found_color_diagnostics = false;
+  bool found_directives_only = false;
+  bool found_rewrite_includes = false;
+
   const char* explicit_language = nullptr; // As specified with -x.
   const char* file_language = nullptr;     // As deduced from file extension.
   const char* input_charset = nullptr;
@@ -72,10 +76,6 @@ struct ArgumentProcessingState
   // compiler_only_args contains arguments that should only be passed to the
   // compiler, not the preprocessor.
   Args compiler_only_args;
-
-  bool found_color_diagnostics = false;
-  bool found_directives_only = false;
-  bool found_rewrite_includes = false;
 };
 
 bool