#include "absl/flags/internal/commandlineflag.h"
#include <cassert>
#include "absl/base/internal/raw_logging.h"
#include "absl/base/optimization.h"
#include "absl/flags/config.h"
#include "absl/flags/usage_config.h"
#include "absl/strings/str_cat.h"
#include "absl/synchronization/mutex.h"
Go to the source code of this file.
Namespaces | |
namespace | absl |
namespace | absl::flags_internal |
Defines | |
#define | CHANGED_FOR_TYPE(T) |
#define | DONT_VALIDATE(T) if (flag.IsOfType<T>()) return false; |
#define | HANDLE_V1_BUILTIN_TYPE(t) |
#define | STORE_ATOMIC(T) |
Functions | |
bool | absl::flags_internal::ChangedDirectly (CommandLineFlag *flag, const void *a, const void *b) |
absl::Mutex * | absl::flags_internal::InitFlagIfNecessary (CommandLineFlag *flag) LOCK_RETURNED(flag->locks->primary_mu) |
static bool | absl::flags_internal::TryParseLocked (CommandLineFlag *flag, void *dst, absl::string_view value, std::string *err) |
void | absl::flags_internal::UpdateCopy (CommandLineFlag *flag, absl::Mutex *primary_lock) EXCLUSIVE_LOCKS_REQUIRED(primary_lock) |
void | absl::flags_internal::UpdateModifiedBit (CommandLineFlag *flag) |
bool | absl::flags_internal::Validate (CommandLineFlag *, const void *) |
Variables | |
const char | absl::flags_internal::kStrippedFlagHelp [] = "\001\002\003\004 (unknown) \004\003\002\001" |
#define CHANGED_FOR_TYPE | ( | T | ) |
#define DONT_VALIDATE | ( | T | ) | if (flag.IsOfType<T>()) return false; |
#define HANDLE_V1_BUILTIN_TYPE | ( | t | ) |
if (IsOfType<t>()) { \
return #t; \
}
#define STORE_ATOMIC | ( | T | ) |
else if (flag->IsOfType<T>()) { \ StoreAtomic(flag, flag->cur, sizeof(T)); \ }