Namespaces | Macros | Functions | Variables
commandlineflag.cc File Reference
#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"
Include dependency graph for commandlineflag.cc:

Go to the source code of this file.

Namespaces

 absl
 
 absl::flags_internal
 

Macros

#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::Mutexabsl::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"
 

Macro Definition Documentation

#define CHANGED_FOR_TYPE (   T)
Value:
if (flag->IsOfType<T>()) { \
return *reinterpret_cast<const T*>(a) != *reinterpret_cast<const T*>(b); \
}
uint64_t b
Definition: layout_test.cc:50
#define DONT_VALIDATE (   T)    if (flag.IsOfType<T>()) return false;
#define HANDLE_V1_BUILTIN_TYPE (   t)
Value:
if (IsOfType<t>()) { \
return #t; \
}
#define STORE_ATOMIC (   T)
Value:
else if (flag->IsOfType<T>()) { \
StoreAtomic(flag, flag->cur, sizeof(T)); \
}


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:19:59