Namespaces | Macros | Functions
abseil-cpp/absl/flags/parse.cc File Reference
#include "absl/flags/parse.h"
#include <stdlib.h>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <iterator>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "absl/base/attributes.h"
#include "absl/base/config.h"
#include "absl/base/const_init.h"
#include "absl/base/thread_annotations.h"
#include "absl/flags/commandlineflag.h"
#include "absl/flags/config.h"
#include "absl/flags/flag.h"
#include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/internal/flag.h"
#include "absl/flags/internal/parse.h"
#include "absl/flags/internal/private_handle_accessor.h"
#include "absl/flags/internal/program_name.h"
#include "absl/flags/internal/usage.h"
#include "absl/flags/reflection.h"
#include "absl/flags/usage.h"
#include "absl/flags/usage_config.h"
#include "absl/strings/ascii.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/strings/strip.h"
#include "absl/synchronization/mutex.h"
Include dependency graph for abseil-cpp/absl/flags/parse.cc:

Go to the source code of this file.

Namespaces

 absl
 
 absl::flags_internal
 

Macros

#define ABSL_FLAGS_INTERNAL_IGNORE_TYPE(T, _)   if (flag.IsOfType<T>()) return;
 

Functions

 ABSL_FLAG (std::vector< std::string >, flagfile, {}, "comma-separated list of files to load flags from") .OnUpdate([]()
 
 ABSL_FLAG (std::vector< std::string >, fromenv, {}, "comma-separated list of flags to set from the environment" " [use 'export FLAGS_flag1=value']") .OnUpdate([]()
 
 ABSL_FLAG (std::vector< std::string >, tryfromenv, {}, "comma-separated list of flags to try to set from the environment if " "present") .OnUpdate([]()
 
 ABSL_FLAG (std::vector< std::string >, undefok, {}, "comma-separated list of flag names that it is okay to specify " "on the command line even if the program does not define a flag " "with that name")
 
std::vector< char * > absl::ParseCommandLine (int argc, char *argv[])
 
std::vector< char * > absl::flags_internal::ParseCommandLineImpl (int argc, char *argv[], ArgvListAction arg_list_act, UsageFlagsAction usage_flag_act, OnUndefinedFlag on_undef_flag)
 
bool absl::flags_internal::WasPresentOnCommandLine (absl::string_view flag_name)
 

Macro Definition Documentation

◆ ABSL_FLAGS_INTERNAL_IGNORE_TYPE

#define ABSL_FLAGS_INTERNAL_IGNORE_TYPE (   T,
 
)    if (flag.IsOfType<T>()) return;

Function Documentation

◆ ABSL_FLAG() [1/4]

ABSL_FLAG ( std::vector< std::string >  ,
flagfile  ,
{}  ,
"comma-separated list of files to load flags from  
)

Definition at line 92 of file abseil-cpp/absl/flags/parse.cc.

◆ ABSL_FLAG() [2/4]

ABSL_FLAG ( std::vector< std::string >  ,
fromenv  ,
{}  ,
"comma-separated list of flags to set from the environment" " "  [use 'export FLAGS_flag1=value'] 
)

Definition at line 107 of file abseil-cpp/absl/flags/parse.cc.

◆ ABSL_FLAG() [3/4]

ABSL_FLAG ( std::vector< std::string >  ,
tryfromenv  ,
{}  ,
"comma-separated list of flags to try to set from the environment if " "present"   
)

Definition at line 123 of file abseil-cpp/absl/flags/parse.cc.

◆ ABSL_FLAG() [4/4]

ABSL_FLAG ( std::vector< std::string >  ,
undefok  ,
{}  ,
"comma-separated list of flag names that it is okay to specify " "on the command line even if the program does not define a flag " "with that name  
)

Variable Documentation

◆ args_

std::vector<std::string> args_
private

Definition at line 168 of file abseil-cpp/absl/flags/parse.cc.

◆ next_arg_

int next_arg_
private

Definition at line 169 of file abseil-cpp/absl/flags/parse.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:25