Export of internal Abseil changes

--
5448463d79c8473d29b6aae62359eaec09e517b0 by Greg Falcon <gfalcon@google.com>:

Rename absl_types_options.h to absl_alternate_options.h, to reflect that we are testing more than just types with this file.

PiperOrigin-RevId: 289099882

--
8008a5662d1b27c4ea442575405eb0538f63a636 by Abseil Team <absl-team@google.com>:

Internal change

PiperOrigin-RevId: 289097666

--
0e9398fae540bdb7dd752245b83456f3784c50ca by Abseil Team <absl-team@google.com>:

Internal change

PiperOrigin-RevId: 288985613
GitOrigin-RevId: 5448463d79c8473d29b6aae62359eaec09e517b0
Change-Id: I5bc1ee156294793cacf3acbc447c0ea27ce8af4f
This commit is contained in:
Abseil Team 2020-01-10 08:42:35 -08:00 committed by Derek Mauro
parent b3aaac8a37
commit 564001ae50
35 changed files with 224 additions and 27 deletions

View file

@ -41,6 +41,7 @@ cc_library(
":config", ":config",
":handle", ":handle",
":registry", ":registry",
"//absl/base:config",
"//absl/base:core_headers", "//absl/base:core_headers",
"//absl/memory", "//absl/memory",
"//absl/strings", "//absl/strings",
@ -63,6 +64,8 @@ cc_library(
], ],
deps = [ deps = [
":path_util", ":path_util",
"//absl/base:config",
"//absl/base:core_headers",
"//absl/strings", "//absl/strings",
"//absl/synchronization", "//absl/synchronization",
], ],
@ -79,6 +82,7 @@ cc_library(
"//absl/flags:__pkg__", "//absl/flags:__pkg__",
], ],
deps = [ deps = [
"//absl/base:config",
"//absl/strings", "//absl/strings",
], ],
) )
@ -97,6 +101,7 @@ cc_library(
deps = [ deps = [
":path_util", ":path_util",
":program_name", ":program_name",
"//absl/base:config",
"//absl/base:core_headers", "//absl/base:core_headers",
"//absl/strings", "//absl/strings",
"//absl/synchronization", "//absl/synchronization",
@ -114,7 +119,9 @@ cc_library(
copts = ABSL_DEFAULT_COPTS, copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [ deps = [
"//absl/base:config",
"//absl/base:core_headers", "//absl/base:core_headers",
"//absl/base:log_severity",
"//absl/strings", "//absl/strings",
"//absl/strings:str_format", "//absl/strings:str_format",
], ],
@ -131,9 +138,10 @@ cc_library(
"//absl/flags:__pkg__", "//absl/flags:__pkg__",
], ],
deps = [ deps = [
":config",
":marshalling", ":marshalling",
"//absl/base:config",
"//absl/base:core_headers", "//absl/base:core_headers",
"//absl/strings",
"//absl/types:optional", "//absl/types:optional",
], ],
) )
@ -156,8 +164,8 @@ cc_library(
deps = [ deps = [
":config", ":config",
":handle", ":handle",
"//absl/base:config",
"//absl/base:core_headers", "//absl/base:core_headers",
"//absl/base:dynamic_annotations",
"//absl/base:raw_logging_internal", "//absl/base:raw_logging_internal",
"//absl/strings", "//absl/strings",
"//absl/synchronization", "//absl/synchronization",
@ -180,9 +188,10 @@ cc_library(
":flag_internal", ":flag_internal",
":handle", ":handle",
":marshalling", ":marshalling",
":registry",
"//absl/base", "//absl/base",
"//absl/base:config",
"//absl/base:core_headers", "//absl/base:core_headers",
"//absl/memory",
"//absl/strings", "//absl/strings",
], ],
) )
@ -203,11 +212,14 @@ cc_library(
deps = [ deps = [
":config", ":config",
":flag", ":flag",
":flag_internal",
":handle", ":handle",
":path_util", ":path_util",
":program_name", ":program_name",
":registry",
"//absl/base:config",
"//absl/base:core_headers",
"//absl/strings", "//absl/strings",
"//absl/synchronization",
], ],
) )
@ -223,6 +235,8 @@ cc_library(
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [ deps = [
":usage_internal", ":usage_internal",
"//absl/base:config",
"//absl/base:core_headers",
"//absl/strings", "//absl/strings",
"//absl/synchronization", "//absl/synchronization",
], ],
@ -240,10 +254,14 @@ cc_library(
deps = [ deps = [
":config", ":config",
":flag", ":flag",
":flag_internal",
":handle",
":program_name", ":program_name",
":registry", ":registry",
":usage", ":usage",
":usage_internal", ":usage_internal",
"//absl/base:config",
"//absl/base:core_headers",
"//absl/strings", "//absl/strings",
"//absl/synchronization", "//absl/synchronization",
], ],
@ -297,6 +315,10 @@ cc_test(
deps = [ deps = [
":config", ":config",
":flag", ":flag",
":flag_internal",
":handle",
":registry",
"//absl/base:core_headers",
"//absl/strings", "//absl/strings",
"@com_google_googletest//:gtest_main", "@com_google_googletest//:gtest_main",
], ],
@ -341,6 +363,7 @@ cc_test(
deps = [ deps = [
":flag", ":flag",
":parse", ":parse",
":registry",
"//absl/base:raw_logging_internal", "//absl/base:raw_logging_internal",
"//absl/base:scoped_set_env", "//absl/base:scoped_set_env",
"//absl/strings", "//absl/strings",
@ -374,9 +397,10 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [ deps = [
":flag", ":flag",
":handle",
":marshalling",
":registry", ":registry",
"//absl/memory", "//absl/memory",
"//absl/strings",
"@com_google_googletest//:gtest_main", "@com_google_googletest//:gtest_main",
], ],
) )
@ -412,6 +436,7 @@ cc_test(
":parse", ":parse",
":path_util", ":path_util",
":program_name", ":program_name",
":registry",
":usage", ":usage",
":usage_internal", ":usage_internal",
"//absl/memory", "//absl/memory",

View file

@ -27,6 +27,7 @@ absl_cc_library(
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config
absl::flags_config absl::flags_config
absl::flags_handle absl::flags_handle
absl::flags_registry absl::flags_registry
@ -47,6 +48,8 @@ absl_cc_library(
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config
absl::core_headers
absl::flags_path_util absl::flags_path_util
absl::strings absl::strings
absl::synchronization absl::synchronization
@ -64,6 +67,7 @@ absl_cc_library(
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config
absl::strings absl::strings
PUBLIC PUBLIC
) )
@ -81,6 +85,7 @@ absl_cc_library(
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config
absl::flags_path_util absl::flags_path_util
absl::flags_program_name absl::flags_program_name
absl::core_headers absl::core_headers
@ -100,7 +105,9 @@ absl_cc_library(
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config
absl::core_headers absl::core_headers
absl::log_severity
absl::strings absl::strings
absl::str_format absl::str_format
) )
@ -116,6 +123,7 @@ absl_cc_library(
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config
absl::flags_config absl::flags_config
absl::flags_marshalling absl::flags_marshalling
absl::core_headers absl::core_headers
@ -140,10 +148,10 @@ absl_cc_library(
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config
absl::flags_config absl::flags_config
absl::flags_handle absl::flags_handle
absl::core_headers absl::core_headers
absl::dynamic_annotations
absl::raw_logging_internal absl::raw_logging_internal
absl::strings absl::strings
absl::synchronization absl::synchronization
@ -162,10 +170,12 @@ absl_cc_library(
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config
absl::flags_config absl::flags_config
absl::flags_handle absl::flags_handle
absl::flags_internal absl::flags_internal
absl::flags_marshalling absl::flags_marshalling
absl::flags_registry
absl::base absl::base
absl::core_headers absl::core_headers
absl::strings absl::strings
@ -184,11 +194,14 @@ absl_cc_library(
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config
absl::flags_config absl::flags_config
absl::flags absl::flags
absl::flags_handle absl::flags_handle
absl::flags_internal
absl::flags_path_util absl::flags_path_util
absl::flags_program_name absl::flags_program_name
absl::flags_registry
absl::strings absl::strings
absl::synchronization absl::synchronization
) )
@ -205,6 +218,8 @@ absl_cc_library(
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config
absl::core_headers
absl::flags_usage_internal absl::flags_usage_internal
absl::strings absl::strings
absl::synchronization absl::synchronization
@ -223,8 +238,12 @@ absl_cc_library(
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config
absl::core_headers
absl::flags_config absl::flags_config
absl::flags absl::flags
absl::flags_handle
absl::flags_internal
absl::flags_program_name absl::flags_program_name
absl::flags_registry absl::flags_registry
absl::flags_usage absl::flags_usage
@ -273,8 +292,12 @@ absl_cc_test(
COPTS COPTS
${ABSL_TEST_COPTS} ${ABSL_TEST_COPTS}
DEPS DEPS
absl::core_headers
absl::flags absl::flags
absl::flags_config absl::flags_config
absl::flags_handle
absl::flags_internal
absl::flags_registry
absl::strings absl::strings
gtest_main gtest_main
) )
@ -301,6 +324,7 @@ absl_cc_test(
DEPS DEPS
absl::flags absl::flags
absl::flags_parse absl::flags_parse
absl::flags_registry
absl::raw_logging_internal absl::raw_logging_internal
absl::scoped_set_env absl::scoped_set_env
absl::span absl::span
@ -342,6 +366,8 @@ absl_cc_test(
${ABSL_TEST_COPTS} ${ABSL_TEST_COPTS}
DEPS DEPS
absl::flags absl::flags
absl::flags_handle
absl::flags_marshalling
absl::flags_registry absl::flags_registry
absl::memory absl::memory
absl::strings absl::strings
@ -376,6 +402,7 @@ absl_cc_test(
absl::flags_path_util absl::flags_path_util
absl::flags_program_name absl::flags_program_name
absl::flags_parse absl::flags_parse
absl::flags_registry
absl::flags_usage absl::flags_usage
absl::memory absl::memory
absl::strings absl::strings

View file

@ -25,6 +25,7 @@
#ifndef ABSL_FLAGS_DECLARE_H_ #ifndef ABSL_FLAGS_DECLARE_H_
#define ABSL_FLAGS_DECLARE_H_ #define ABSL_FLAGS_DECLARE_H_
#include "absl/base/config.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"
namespace absl { namespace absl {

View file

@ -15,7 +15,9 @@
#include "absl/flags/flag.h" #include "absl/flags/flag.h"
#include <cstring> #include "absl/base/config.h"
#include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/internal/flag.h"
namespace absl { namespace absl {
ABSL_NAMESPACE_BEGIN ABSL_NAMESPACE_BEGIN

View file

@ -29,14 +29,17 @@
#ifndef ABSL_FLAGS_FLAG_H_ #ifndef ABSL_FLAGS_FLAG_H_
#define ABSL_FLAGS_FLAG_H_ #define ABSL_FLAGS_FLAG_H_
#include <string>
#include <type_traits> #include <type_traits>
#include "absl/base/attributes.h" #include "absl/base/attributes.h"
#include "absl/base/casts.h" #include "absl/base/casts.h"
#include "absl/base/config.h"
#include "absl/flags/config.h" #include "absl/flags/config.h"
#include "absl/flags/declare.h" #include "absl/flags/declare.h"
#include "absl/flags/internal/commandlineflag.h" #include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/internal/flag.h" #include "absl/flags/internal/flag.h"
#include "absl/flags/internal/registry.h"
#include "absl/flags/marshalling.h" #include "absl/flags/marshalling.h"
namespace absl { namespace absl {

View file

@ -15,15 +15,25 @@
#include "absl/flags/flag.h" #include "absl/flags/flag.h"
#include <algorithm> #include <stdint.h>
#include <cmath>
#include <string> #include <string>
#include <vector>
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "absl/base/attributes.h"
#include "absl/flags/config.h"
#include "absl/flags/declare.h"
#include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/internal/flag.h"
#include "absl/flags/internal/registry.h"
#include "absl/flags/usage_config.h" #include "absl/flags/usage_config.h"
#include "absl/strings/match.h" #include "absl/strings/match.h"
#include "absl/strings/numbers.h" #include "absl/strings/numbers.h"
#include "absl/strings/str_cat.h" #include "absl/strings/str_cat.h"
#include "absl/strings/str_split.h" #include "absl/strings/str_split.h"
#include "absl/strings/string_view.h"
ABSL_DECLARE_FLAG(int64_t, mistyped_int_flag); ABSL_DECLARE_FLAG(int64_t, mistyped_int_flag);
ABSL_DECLARE_FLAG(std::vector<std::string>, mistyped_string_flag); ABSL_DECLARE_FLAG(std::vector<std::string>, mistyped_string_flag);

View file

@ -16,10 +16,16 @@
#ifndef ABSL_FLAGS_INTERNAL_COMMANDLINEFLAG_H_ #ifndef ABSL_FLAGS_INTERNAL_COMMANDLINEFLAG_H_
#define ABSL_FLAGS_INTERNAL_COMMANDLINEFLAG_H_ #define ABSL_FLAGS_INTERNAL_COMMANDLINEFLAG_H_
#include <memory> #include <stddef.h>
#include <stdint.h>
#include <memory>
#include <string>
#include "absl/base/config.h"
#include "absl/base/macros.h" #include "absl/base/macros.h"
#include "absl/flags/marshalling.h" #include "absl/flags/marshalling.h"
#include "absl/strings/string_view.h"
#include "absl/types/optional.h" #include "absl/types/optional.h"
namespace absl { namespace absl {

View file

@ -15,7 +15,7 @@
#include "absl/flags/internal/commandlineflag.h" #include "absl/flags/internal/commandlineflag.h"
#include <algorithm> #include <memory>
#include <string> #include <string>
#include "gtest/gtest.h" #include "gtest/gtest.h"
@ -25,6 +25,7 @@
#include "absl/memory/memory.h" #include "absl/memory/memory.h"
#include "absl/strings/match.h" #include "absl/strings/match.h"
#include "absl/strings/str_cat.h" #include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
ABSL_FLAG(int, int_flag, 201, "int_flag help"); ABSL_FLAG(int, int_flag, 201, "int_flag help");
ABSL_FLAG(std::string, string_flag, "dflt", ABSL_FLAG(std::string, string_flag, "dflt",

View file

@ -15,9 +15,23 @@
#include "absl/flags/internal/flag.h" #include "absl/flags/internal/flag.h"
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <atomic>
#include <memory>
#include <string>
#include <vector>
#include "absl/base/attributes.h"
#include "absl/base/config.h"
#include "absl/base/const_init.h"
#include "absl/base/optimization.h" #include "absl/base/optimization.h"
#include "absl/flags/config.h" #include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/usage_config.h" #include "absl/flags/usage_config.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/synchronization/mutex.h" #include "absl/synchronization/mutex.h"
namespace absl { namespace absl {

View file

@ -16,15 +16,21 @@
#ifndef ABSL_FLAGS_INTERNAL_FLAG_H_ #ifndef ABSL_FLAGS_INTERNAL_FLAG_H_
#define ABSL_FLAGS_INTERNAL_FLAG_H_ #define ABSL_FLAGS_INTERNAL_FLAG_H_
#include <stdint.h>
#include <atomic> #include <atomic>
#include <cstring> #include <cstring>
#include <memory>
#include <string>
#include "absl/base/config.h"
#include "absl/base/thread_annotations.h" #include "absl/base/thread_annotations.h"
#include "absl/flags/config.h" #include "absl/flags/config.h"
#include "absl/flags/internal/commandlineflag.h" #include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/internal/registry.h" #include "absl/flags/internal/registry.h"
#include "absl/memory/memory.h" #include "absl/memory/memory.h"
#include "absl/strings/str_cat.h" #include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/synchronization/mutex.h" #include "absl/synchronization/mutex.h"
namespace absl { namespace absl {

View file

@ -19,6 +19,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "absl/base/config.h"
#include "absl/flags/declare.h" #include "absl/flags/declare.h"
ABSL_DECLARE_FLAG(std::vector<std::string>, flagfile); ABSL_DECLARE_FLAG(std::vector<std::string>, flagfile);

View file

@ -16,6 +16,7 @@
#ifndef ABSL_FLAGS_INTERNAL_PATH_UTIL_H_ #ifndef ABSL_FLAGS_INTERNAL_PATH_UTIL_H_
#define ABSL_FLAGS_INTERNAL_PATH_UTIL_H_ #define ABSL_FLAGS_INTERNAL_PATH_UTIL_H_
#include "absl/base/config.h"
#include "absl/strings/match.h" #include "absl/strings/match.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"

View file

@ -17,7 +17,12 @@
#include <string> #include <string>
#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/internal/path_util.h" #include "absl/flags/internal/path_util.h"
#include "absl/strings/string_view.h"
#include "absl/synchronization/mutex.h" #include "absl/synchronization/mutex.h"
namespace absl { namespace absl {

View file

@ -18,6 +18,7 @@
#include <string> #include <string>
#include "absl/base/config.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"
// -------------------------------------------------------------------- // --------------------------------------------------------------------

View file

@ -15,8 +15,11 @@
#include "absl/flags/internal/program_name.h" #include "absl/flags/internal/program_name.h"
#include <string>
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "absl/strings/match.h" #include "absl/strings/match.h"
#include "absl/strings/string_view.h"
namespace { namespace {

View file

@ -15,9 +15,20 @@
#include "absl/flags/internal/registry.h" #include "absl/flags/internal/registry.h"
#include "absl/base/dynamic_annotations.h" #include <assert.h>
#include <stdlib.h>
#include <functional>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "absl/base/config.h"
#include "absl/base/internal/raw_logging.h" #include "absl/base/internal/raw_logging.h"
#include "absl/flags/config.h" #include "absl/base/thread_annotations.h"
#include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/usage_config.h" #include "absl/flags/usage_config.h"
#include "absl/strings/str_cat.h" #include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"

View file

@ -20,8 +20,10 @@
#include <map> #include <map>
#include <string> #include <string>
#include "absl/base/config.h"
#include "absl/base/macros.h" #include "absl/base/macros.h"
#include "absl/flags/internal/commandlineflag.h" #include "absl/flags/internal/commandlineflag.h"
#include "absl/strings/string_view.h"
// -------------------------------------------------------------------- // --------------------------------------------------------------------
// Global flags registry API. // Global flags registry API.

View file

@ -15,10 +15,16 @@
#include "absl/flags/internal/type_erased.h" #include "absl/flags/internal/type_erased.h"
#include <assert.h>
#include <string>
#include "absl/base/config.h"
#include "absl/base/internal/raw_logging.h" #include "absl/base/internal/raw_logging.h"
#include "absl/flags/config.h" #include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/internal/registry.h"
#include "absl/flags/usage_config.h" #include "absl/flags/usage_config.h"
#include "absl/strings/str_cat.h" #include "absl/strings/string_view.h"
namespace absl { namespace absl {
ABSL_NAMESPACE_BEGIN ABSL_NAMESPACE_BEGIN

View file

@ -18,8 +18,10 @@
#include <string> #include <string>
#include "absl/base/config.h"
#include "absl/flags/internal/commandlineflag.h" #include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/internal/registry.h" #include "absl/flags/internal/registry.h"
#include "absl/strings/string_view.h"
// -------------------------------------------------------------------- // --------------------------------------------------------------------
// Registry interfaces operating on type erased handles. // Registry interfaces operating on type erased handles.

View file

@ -15,12 +15,15 @@
#include "absl/flags/internal/type_erased.h" #include "absl/flags/internal/type_erased.h"
#include <cmath> #include <memory>
#include <string>
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "absl/flags/flag.h" #include "absl/flags/flag.h"
#include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/internal/registry.h"
#include "absl/flags/marshalling.h"
#include "absl/memory/memory.h" #include "absl/memory/memory.h"
#include "absl/strings/str_cat.h"
ABSL_FLAG(int, int_flag, 1, "int_flag help"); ABSL_FLAG(int, int_flag, 1, "int_flag help");
ABSL_FLAG(std::string, string_flag, "dflt", "string_flag help"); ABSL_FLAG(std::string, string_flag, "dflt", "string_flag help");

View file

@ -15,18 +15,24 @@
#include "absl/flags/internal/usage.h" #include "absl/flags/internal/usage.h"
#include <functional>
#include <map> #include <map>
#include <ostream>
#include <string> #include <string>
#include <utility>
#include <vector>
#include "absl/base/config.h"
#include "absl/flags/flag.h" #include "absl/flags/flag.h"
#include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/internal/flag.h"
#include "absl/flags/internal/path_util.h" #include "absl/flags/internal/path_util.h"
#include "absl/flags/internal/program_name.h" #include "absl/flags/internal/program_name.h"
#include "absl/flags/internal/registry.h"
#include "absl/flags/usage_config.h" #include "absl/flags/usage_config.h"
#include "absl/strings/ascii.h"
#include "absl/strings/str_cat.h" #include "absl/strings/str_cat.h"
#include "absl/strings/str_split.h" #include "absl/strings/str_split.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"
#include "absl/synchronization/mutex.h"
ABSL_FLAG(bool, help, false, ABSL_FLAG(bool, help, false,
"show help on important flags for this binary [tip: all flags can " "show help on important flags for this binary [tip: all flags can "

View file

@ -19,6 +19,7 @@
#include <iosfwd> #include <iosfwd>
#include <string> #include <string>
#include "absl/base/config.h"
#include "absl/flags/declare.h" #include "absl/flags/declare.h"
#include "absl/flags/internal/commandlineflag.h" #include "absl/flags/internal/commandlineflag.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"

View file

@ -15,17 +15,23 @@
#include "absl/flags/internal/usage.h" #include "absl/flags/internal/usage.h"
#include <stdint.h>
#include <sstream> #include <sstream>
#include <string>
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "absl/flags/declare.h"
#include "absl/flags/flag.h" #include "absl/flags/flag.h"
#include "absl/flags/internal/parse.h"
#include "absl/flags/internal/path_util.h" #include "absl/flags/internal/path_util.h"
#include "absl/flags/internal/program_name.h" #include "absl/flags/internal/program_name.h"
#include "absl/flags/parse.h" #include "absl/flags/internal/registry.h"
#include "absl/flags/usage.h" #include "absl/flags/usage.h"
#include "absl/flags/usage_config.h" #include "absl/flags/usage_config.h"
#include "absl/memory/memory.h" #include "absl/memory/memory.h"
#include "absl/strings/match.h" #include "absl/strings/match.h"
#include "absl/strings/string_view.h"
ABSL_FLAG(int, usage_reporting_test_flag_01, 101, ABSL_FLAG(int, usage_reporting_test_flag_01, 101,
"usage_reporting_test_flag_01 help message"); "usage_reporting_test_flag_01 help message");

View file

@ -15,16 +15,25 @@
#include "absl/flags/marshalling.h" #include "absl/flags/marshalling.h"
#include <limits> #include <stddef.h>
#include <type_traits>
#include <cmath>
#include <limits>
#include <string>
#include <type_traits>
#include <vector>
#include "absl/base/config.h"
#include "absl/base/log_severity.h"
#include "absl/base/macros.h" #include "absl/base/macros.h"
#include "absl/strings/ascii.h"
#include "absl/strings/match.h" #include "absl/strings/match.h"
#include "absl/strings/numbers.h" #include "absl/strings/numbers.h"
#include "absl/strings/str_cat.h" #include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h" #include "absl/strings/str_format.h"
#include "absl/strings/str_join.h" #include "absl/strings/str_join.h"
#include "absl/strings/str_split.h" #include "absl/strings/str_split.h"
#include "absl/strings/string_view.h"
namespace absl { namespace absl {
ABSL_NAMESPACE_BEGIN ABSL_NAMESPACE_BEGIN

View file

@ -165,6 +165,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "absl/base/config.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"
namespace absl { namespace absl {

View file

@ -15,7 +15,12 @@
#include "absl/flags/marshalling.h" #include "absl/flags/marshalling.h"
#include <stdint.h>
#include <cmath> #include <cmath>
#include <limits>
#include <string>
#include <vector>
#include "gtest/gtest.h" #include "gtest/gtest.h"

View file

@ -17,21 +17,36 @@
#include <stdlib.h> #include <stdlib.h>
#include <algorithm>
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <iterator>
#include <string>
#include <tuple> #include <tuple>
#include <utility>
#include <vector>
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#endif #endif
#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/config.h"
#include "absl/flags/flag.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/program_name.h" #include "absl/flags/internal/program_name.h"
#include "absl/flags/internal/registry.h" #include "absl/flags/internal/registry.h"
#include "absl/flags/internal/usage.h" #include "absl/flags/internal/usage.h"
#include "absl/flags/usage.h" #include "absl/flags/usage.h"
#include "absl/flags/usage_config.h" #include "absl/flags/usage_config.h"
#include "absl/strings/ascii.h"
#include "absl/strings/str_cat.h" #include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/strings/strip.h" #include "absl/strings/strip.h"
#include "absl/synchronization/mutex.h" #include "absl/synchronization/mutex.h"

View file

@ -26,6 +26,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "absl/base/config.h"
#include "absl/flags/internal/parse.h" #include "absl/flags/internal/parse.h"
namespace absl { namespace absl {

View file

@ -15,15 +15,22 @@
#include "absl/flags/parse.h" #include "absl/flags/parse.h"
#include <stdlib.h>
#include <fstream> #include <fstream>
#include <string>
#include <vector>
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "absl/base/internal/raw_logging.h" #include "absl/base/internal/raw_logging.h"
#include "absl/base/internal/scoped_set_env.h" #include "absl/base/internal/scoped_set_env.h"
#include "absl/flags/declare.h"
#include "absl/flags/flag.h" #include "absl/flags/flag.h"
#include "absl/strings/match.h" #include "absl/flags/internal/parse.h"
#include "absl/flags/internal/registry.h"
#include "absl/strings/str_cat.h" #include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/strings/substitute.h" #include "absl/strings/substitute.h"
#include "absl/types/span.h" #include "absl/types/span.h"

View file

@ -14,9 +14,16 @@
// limitations under the License. // limitations under the License.
#include "absl/flags/usage.h" #include "absl/flags/usage.h"
#include <stdlib.h>
#include <string> #include <string>
#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/internal/usage.h" #include "absl/flags/internal/usage.h"
#include "absl/strings/string_view.h"
#include "absl/synchronization/mutex.h" #include "absl/synchronization/mutex.h"
namespace absl { namespace absl {

View file

@ -16,6 +16,7 @@
#ifndef ABSL_FLAGS_USAGE_H_ #ifndef ABSL_FLAGS_USAGE_H_
#define ABSL_FLAGS_USAGE_H_ #define ABSL_FLAGS_USAGE_H_
#include "absl/base/config.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"
// -------------------------------------------------------------------- // --------------------------------------------------------------------

View file

@ -16,12 +16,16 @@
#include "absl/flags/usage_config.h" #include "absl/flags/usage_config.h"
#include <iostream> #include <iostream>
#include <memory> #include <string>
#include "absl/base/attributes.h" #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/internal/path_util.h" #include "absl/flags/internal/path_util.h"
#include "absl/flags/internal/program_name.h" #include "absl/flags/internal/program_name.h"
#include "absl/strings/str_cat.h" #include "absl/strings/match.h"
#include "absl/strings/string_view.h"
#include "absl/strings/strip.h" #include "absl/strings/strip.h"
#include "absl/synchronization/mutex.h" #include "absl/synchronization/mutex.h"

View file

@ -27,6 +27,7 @@
#include <functional> #include <functional>
#include <string> #include <string>
#include "absl/base/config.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------

View file

@ -15,10 +15,13 @@
#include "absl/flags/usage_config.h" #include "absl/flags/usage_config.h"
#include <string>
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "absl/flags/internal/path_util.h" #include "absl/flags/internal/path_util.h"
#include "absl/flags/internal/program_name.h" #include "absl/flags/internal/program_name.h"
#include "absl/strings/match.h" #include "absl/strings/match.h"
#include "absl/strings/string_view.h"
namespace { namespace {

View file

@ -15,8 +15,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Alternate options.h file, requesting to always use Abseil implementations // Alternate options.h file, used in continuous integration testing to exercise
// of the workalike types, regardless of language version. // option settings not used by default.
#define ABSL_OPTION_USE_STD_ANY 0 #define ABSL_OPTION_USE_STD_ANY 0
#define ABSL_OPTION_USE_STD_OPTIONAL 0 #define ABSL_OPTION_USE_STD_OPTIONAL 0