Functions
flag_test.cc File Reference
#include "absl/flags/flag.h"
#include "gtest/gtest.h"
#include "absl/strings/match.h"
#include "absl/strings/numbers.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_split.h"
Include dependency graph for flag_test.cc:

Go to the source code of this file.

Functions

 ABSL_DECLARE_FLAG (int64_t, mistyped_int_flag)
 ABSL_DECLARE_FLAG (std::vector< std::string >, mistyped_string_flag)
 ABSL_DECLARE_FLAG (bool, test_flag_01)
 ABSL_DECLARE_FLAG (int, test_flag_02)
 ABSL_DECLARE_FLAG (int16_t, test_flag_03)
 ABSL_DECLARE_FLAG (uint16_t, test_flag_04)
 ABSL_DECLARE_FLAG (int32_t, test_flag_05)
 ABSL_DECLARE_FLAG (uint32_t, test_flag_06)
 ABSL_DECLARE_FLAG (int64_t, test_flag_07)
 ABSL_DECLARE_FLAG (uint64_t, test_flag_08)
 ABSL_DECLARE_FLAG (double, test_flag_09)
 ABSL_DECLARE_FLAG (float, test_flag_10)
 ABSL_DECLARE_FLAG (std::string, test_flag_11)
 ABSL_FLAG (bool, test_flag_01, true,"test flag 01")
 ABSL_FLAG (int, test_flag_02, 1234,"test flag 02")
 ABSL_FLAG (int16_t, test_flag_03,-34,"test flag 03")
 ABSL_FLAG (uint16_t, test_flag_04, 189,"test flag 04")
 ABSL_FLAG (int32_t, test_flag_05, 10765,"test flag 05")
 ABSL_FLAG (uint32_t, test_flag_06, 40000,"test flag 06")
 ABSL_FLAG (int64_t, test_flag_07,-1234567,"test flag 07")
 ABSL_FLAG (uint64_t, test_flag_08, 9876543,"test flag 08")
 ABSL_FLAG (double, test_flag_09,-9.876e-50,"test flag 09")
 ABSL_FLAG (float, test_flag_10, 1.234e12f,"test flag 10")
 ABSL_FLAG (std::string, test_flag_11,"","test flag 11")
 ABSL_FLAG (int, test_flag_12, GetDflt1(),"test flag 12")
 ABSL_FLAG (std::string, test_flag_13, absl::StrCat("AAA","BBB"),"test flag 13")
 ABSL_FLAG (bool, test_flag_14, true, absl::StrCat("test ","flag ","14"))
 ABSL_FLAG (int, test_flag_with_cb, 100,"").OnUpdate(TestFlagCB)
 ABSL_FLAG (int, test_flag_with_lambda_cb, 200,"").OnUpdate([]()
 ABSL_FLAG (CustomUDT, test_flag_15, CustomUDT(),"test flag 15")
 ABSL_FLAG (ConversionTestVal, test_flag_16, ConversionTestVal::ViaImplicitConv::kTen,"test flag 16")
 ABSL_FLAG (NonDfltConstructible, ndc_flag1, NonDfltConstructible('1'),"Flag with non default constructible type")
 ABSL_FLAG (NonDfltConstructible, ndc_flag2, 0,"Flag with non default constructible type")
 ABSL_RETIRED_FLAG (bool, old_bool_flag, true,"old descr")
 ABSL_RETIRED_FLAG (int, old_int_flag,(int) std::sqrt(10),"old descr")
 ABSL_RETIRED_FLAG (std::string, old_str_flag,"", absl::StrCat("old ","descr"))

Function Documentation

ABSL_DECLARE_FLAG ( int64_t  ,
mistyped_int_flag   
)
ABSL_DECLARE_FLAG ( std::vector< std::string >  ,
mistyped_string_flag   
)
ABSL_DECLARE_FLAG ( bool  ,
test_flag_01   
)
ABSL_DECLARE_FLAG ( int  ,
test_flag_02   
)
ABSL_DECLARE_FLAG ( int16_t  ,
test_flag_03   
)
ABSL_DECLARE_FLAG ( uint16_t  ,
test_flag_04   
)
ABSL_DECLARE_FLAG ( int32_t  ,
test_flag_05   
)
ABSL_DECLARE_FLAG ( uint32_t  ,
test_flag_06   
)
ABSL_DECLARE_FLAG ( int64_t  ,
test_flag_07   
)
ABSL_DECLARE_FLAG ( uint64_t  ,
test_flag_08   
)
ABSL_DECLARE_FLAG ( double  ,
test_flag_09   
)
ABSL_DECLARE_FLAG ( float  ,
test_flag_10   
)
ABSL_DECLARE_FLAG ( std::string  ,
test_flag_11   
)
ABSL_FLAG ( bool  ,
test_flag_01  ,
true  ,
"test flag 01"   
)
ABSL_FLAG ( int  ,
test_flag_02  ,
1234  ,
"test flag 02"   
)
ABSL_FLAG ( int16_t  ,
test_flag_03  ,
34,
"test flag 03"   
)
ABSL_FLAG ( uint16_t  ,
test_flag_04  ,
189  ,
"test flag 04"   
)
ABSL_FLAG ( int32_t  ,
test_flag_05  ,
10765  ,
"test flag 05"   
)
ABSL_FLAG ( uint32_t  ,
test_flag_06  ,
40000  ,
"test flag 06"   
)
ABSL_FLAG ( int64_t  ,
test_flag_07  ,
1234567,
"test flag 07"   
)
ABSL_FLAG ( uint64_t  ,
test_flag_08  ,
9876543  ,
"test flag 08"   
)
ABSL_FLAG ( double  ,
test_flag_09  ,
-9.876e-  50,
"test flag 09"   
)
ABSL_FLAG ( float  ,
test_flag_10  ,
1.  234e12f,
"test flag 10"   
)
ABSL_FLAG ( std::string  ,
test_flag_11  ,
""  ,
"test flag 11"   
)
ABSL_FLAG ( int  ,
test_flag_12  ,
GetDflt1()  ,
"test flag 12"   
)
ABSL_FLAG ( std::string  ,
test_flag_13  ,
absl::  StrCat"AAA","BBB",
"test flag 13"   
)
ABSL_FLAG ( bool  ,
test_flag_14  ,
true  ,
absl::  StrCat"test ","flag ","14" 
)
ABSL_FLAG ( int  ,
test_flag_with_cb  ,
100  ,
""   
)
ABSL_FLAG ( int  ,
test_flag_with_lambda_cb  ,
200  ,
""   
)

Definition at line 289 of file flag_test.cc.

ABSL_FLAG ( CustomUDT  ,
test_flag_15  ,
CustomUDT()  ,
"test flag 15"   
)
ABSL_FLAG ( ConversionTestVal  ,
test_flag_16  ,
ConversionTestVal::ViaImplicitConv::kTen  ,
"test flag 16"   
)
ABSL_FLAG ( NonDfltConstructible  ,
ndc_flag1  ,
NonDfltConstructible('1')  ,
"Flag with non default constructible type"   
)
ABSL_FLAG ( NonDfltConstructible  ,
ndc_flag2  ,
,
"Flag with non default constructible type"   
)
ABSL_RETIRED_FLAG ( bool  ,
old_bool_flag  ,
true  ,
"old descr"   
)
ABSL_RETIRED_FLAG ( int  ,
old_int_flag  ,
(int) std::sqrt(10)  ,
"old descr"   
)
ABSL_RETIRED_FLAG ( std::string  ,
old_str_flag  ,
""  ,
absl::  StrCat"old ","descr" 
)


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