I like it better that way.
#include <unordered_map>
#include <vector>
-struct Context : NonCopyable
+class Context : NonCopyable
{
+public:
Context();
ArgsInfo args_info;
#include "third_party/nonstd/optional.hpp"
struct ArgsInfo;
-struct Context;
+class Context;
class Config;
#ifndef MYNAME
#include "Util.hpp"
struct Confix;
-struct Context;
+class Context;
void compress_stats(const Config& config,
const Util::ProgressReceiver& progress_receiver);
#include <string>
-struct Context;
+class Context;
int execute(const char* const* argv, int fd_out, int fd_err, pid_t* pid);
std::string
};
static struct exit_function* exit_functions;
-static struct Context* context_to_clean_up;
+static class Context* context_to_clean_up;
static void
call_nullary_exit_function(void* context)
#pragma once
-struct Context;
+class Context;
void exitfn_init();
void exitfn_add_nullary(void (*function)());
#include <inttypes.h>
class Config;
-struct Context;
+class Context;
unsigned hash_from_int(int i);
#include <unordered_map>
class Config;
-struct Context;
+class Context;
struct digest;
extern const uint8_t k_manifest_magic[4];
#include <map>
#include <string>
-struct Context;
+class Context;
extern const uint8_t k_result_magic[4];
extern const uint8_t k_result_version;
#include <string>
class Config;
-struct Context;
+class Context;
// Statistics fields in storage order.
enum stats {