CCopybara-ServiceMake ABSL_RETIRED_FLAG respect ABSL_FLAGS_STRIP_NAMES
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Fix and reorder some #includes Some of these direct dependencies were previously indirect/transitive dependencies. They previously worked -- and continue to work -- as they only required header inclusions. They should be mentioned in CMakeLists.txt, which we can handle in a separate commit. PiperOrigin-RevId: 977974961 Change-Id: Iac66449258d7c8c74e6813c72943550e83bff099 | 19 天前 | |
Add nullability annotations to Abseil Flags reflection APIs. Annotates FindCommandLineFlag with absl_nullable and the values in the map returned by GetAllFlags with absl_nonnull. PiperOrigin-RevId: 987595681 Change-Id: I13c35707dab408c445a7631998ec7b70d70cfd43 | 3 天前 | |
Add nullability annotations to Abseil Flags reflection APIs. Annotates FindCommandLineFlag with absl_nullable and the values in the map returned by GetAllFlags with absl_nonnull. PiperOrigin-RevId: 987595681 Change-Id: I13c35707dab408c445a7631998ec7b70d70cfd43 | 3 天前 | |
Provide information about types of all flags. PiperOrigin-RevId: 717986118 Change-Id: Ib962482b66e1eac09165767d4a36a91ad49e8fc8 | 1 年前 | |
Cleanup the uses of the polyfills absl::any, absl::optional, absl::variant, and related types The corresponding headers are removed from cc files, but kept in headers to prevent breakages from transitive dependencies. PiperOrigin-RevId: 872421685 Change-Id: I867d4c3f7c9e422289c63816d44719b0530fb0a6 | 7 个月前 | |
Remove more lingering C++17 type traits polyfill usages This will let us deprecate the declarations without triggering warnings in Abseil itself. PiperOrigin-RevId: 906360966 Change-Id: Iee362ac0eac647909ef38003280f1179813f764d | 4 个月前 | |
Export of internal Abseil changes -- e2a571b818faaec4185426a8cf71fd2970674423 by Matt Kulukundis <kfm@google.com>: Fix missed use of old RTTI macro PiperOrigin-RevId: 413239579 -- e3c15a3fe0a4e44d6e08d69ad912b2245a403bd6 by Derek Mauro <dmauro@google.com>: Makes erase_if return the number of erased elements for compatibility with C++20 https://en.cppreference.com/w/cpp/container/unordered_map/erase_if This may technically be an API break, but no actual breaks were found in Google code. Fixes to open source code should be trivial. Closes #1065 PiperOrigin-RevId: 413204392 -- c1fb1ddbc2def3f3d177e5b80b9934bdbb7b16fc by Matt Kulukundis <kfm@google.com>: Consolidate to a single HAS_RTTI macro PiperOrigin-RevId: 413169336 GitOrigin-RevId: e2a571b818faaec4185426a8cf71fd2970674423 Change-Id: I74b78ebd5fc172e3f5fcbd13a58cf53f7b250ae9 | 4 年前 | |
Fix and reorder some #includes Some of these direct dependencies were previously indirect/transitive dependencies. They previously worked -- and continue to work -- as they only required header inclusions. They should be mentioned in CMakeLists.txt, which we can handle in a separate commit. PiperOrigin-RevId: 977974961 Change-Id: Iac66449258d7c8c74e6813c72943550e83bff099 | 19 天前 | |
Fix __declspec support for ABSL_DECLARE_FLAG() Fix #1817 PiperOrigin-RevId: 813902689 Change-Id: Ic3508c02d5ed2e7dc220cdf02526680ae0adbbc1 | 11 个月前 | |
Make ABSL_RETIRED_FLAG respect ABSL_FLAGS_STRIP_NAMES When ABSL_FLAGS_STRIP_NAMES is enabled, ABSL_RETIRED_FLAG should strip the flag name and avoid registering the retired flag or generating a runtime constructor. PiperOrigin-RevId: 989327332 Change-Id: I4fd128a40053395f2e2253b28232708c168b5467 | 12 小时前 | |
Add missing #includes PiperOrigin-RevId: 971459491 Change-Id: I88480226e603680d3a1cc21c0c213771ee75bd62 | 1 个月前 | |
Export of internal Abseil changes -- f0456157cdc6cef6dbb5d2f99f9dc3ca0e213fab by Abseil Team <absl-team@google.com>: Improve flag_benchmark reproducibility, test multiple threads This adds multiple threads to the flags benchmark, and also uses some linker magic to ensure that the defined flags are mapped to a consistent alignment regardless of other code changes in the benchmark binary. The benchmark performance in multiple threads is somewhat sensitive to the alignment of the FlagImpl class, depending on whether the flag value and the absl::Mutex are on the same cacheline or different ones. Making all flags be cacheline-aligned would probably waste too much memory, so this CL instead just makes the memory alignment consistent within the tests. PiperOrigin-RevId: 347536882 -- a019646d306b9497a1eba7efa5e2c4c651d9979d by Derek Mauro <dmauro@google.com>: Fix other comments in node_hash_set.h PiperOrigin-RevId: 347462975 -- 66a4b39fe84a3e81935ad08ee76291df13d1d5e6 by Abseil Team <absl-team@google.com>: Internal change PiperOrigin-RevId: 347436244 -- 52f4d18c2c4439d26428f64ac4de41e6183919ee by Mark Barolak <mbar@google.com>: container: fix introduction for node_hash_set.h Import of https://github.com/abseil/abseil-cpp/pull/861 PiperOrigin-RevId: 347432772 GitOrigin-RevId: f0456157cdc6cef6dbb5d2f99f9dc3ca0e213fab Change-Id: I629f27e5b9584d92b0a42284c1acf708779bad3f | 5 年前 | |
Make ABSL_RETIRED_FLAG respect ABSL_FLAGS_STRIP_NAMES When ABSL_FLAGS_STRIP_NAMES is enabled, ABSL_RETIRED_FLAG should strip the flag name and avoid registering the retired flag or generating a runtime constructor. PiperOrigin-RevId: 989327332 Change-Id: I4fd128a40053395f2e2253b28232708c168b5467 | 12 小时前 | |
Export of internal Abseil changes -- c12db0cff0f0cb0c10731cdf4bf1663e99ecb82e by Samuel Benzaquen <sbenza@google.com>: Fix incompatibility of retired flags and AddressSanitizer. PiperOrigin-RevId: 325028944 -- 20119dce82503c6ac22f3ec479d0eaea6acc7ba0 by Abseil Team <absl-team@google.com>: Internal change PiperOrigin-RevId: 324939694 -- bb1ab1a4e1a551469ad110bdfce3210aeb9bf4b8 by Abseil Team <absl-team@google.com>: Teach Abseil stack consumption utilities about AArch64. PiperOrigin-RevId: 324935395 -- 987043ffc960f38457478b01c04b47dfaf7ae006 by Evan Brown <ezb@google.com>: Cleanup: simplify the slot transfer methods a bit. PiperOrigin-RevId: 324834817 -- ed7081130d3ab93a2c3c916e30fe4367d8e96954 by Abseil Team <absl-team@google.com>: Pass __FILE__ as const char* instead of as array of chars to internal_log_function to allow deterministic symbols for AtomicHook wrapper of the InternalLogFunction PiperOrigin-RevId: 324800499 GitOrigin-RevId: c12db0cff0f0cb0c10731cdf4bf1663e99ecb82e Change-Id: Ibb92b1cab465e45abc86281f0fba894c82a662df | 6 年前 | |
Replace std::TRAIT<...>::type with equivalent std::TRAIT_t<...> aliases PiperOrigin-RevId: 927425014 Change-Id: Ia623cd16e664c392a786daea4f09cf77b7336564 | 3 个月前 | |
Cleanup the uses of the polyfills absl::any, absl::optional, absl::variant, and related types The corresponding headers are removed from cc files, but kept in headers to prevent breakages from transitive dependencies. PiperOrigin-RevId: 872421685 Change-Id: I867d4c3f7c9e422289c63816d44719b0530fb0a6 | 7 个月前 | |
Add missing #includes PiperOrigin-RevId: 971459491 Change-Id: I88480226e603680d3a1cc21c0c213771ee75bd62 | 1 个月前 | |
Reorder platform-specific #include directives after the others This keeps includes together when they are cleaned up. PiperOrigin-RevId: 968582489 Change-Id: I7a62a57aa7a73dbdf95bc0c370ce77b6901cf274 | 1 个月前 | |
Add missing #includes PiperOrigin-RevId: 971459491 Change-Id: I88480226e603680d3a1cc21c0c213771ee75bd62 | 1 个月前 | |
Let callers disable --flagfile, --fromenv, and --tryfromenv in Abseil This is primarily intended for privileged (setuid) processes. Accessing the system prior to dropping privileges can cause command-lines coming from untrusted sources to leak data from the environment. PiperOrigin-RevId: 959814215 Change-Id: I371d796f88e3036a6bf579ea11768714baedc091 | 1 个月前 | |
Add nullability annotations to Abseil Flags reflection APIs. Annotates FindCommandLineFlag with absl_nullable and the values in the map returned by GetAllFlags with absl_nonnull. PiperOrigin-RevId: 987595681 Change-Id: I13c35707dab408c445a7631998ec7b70d70cfd43 | 3 天前 | |
Add nullability annotations to Abseil Flags reflection APIs. Annotates FindCommandLineFlag with absl_nullable and the values in the map returned by GetAllFlags with absl_nonnull. PiperOrigin-RevId: 987595681 Change-Id: I13c35707dab408c445a7631998ec7b70d70cfd43 | 3 天前 | |
Add missing #includes PiperOrigin-RevId: 971459491 Change-Id: I88480226e603680d3a1cc21c0c213771ee75bd62 | 1 个月前 | |
Add missing #includes PiperOrigin-RevId: 971459491 Change-Id: I88480226e603680d3a1cc21c0c213771ee75bd62 | 1 个月前 | |
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 | 6 年前 | |
Inline internal usages of pointerful SpinLockHolder/MutexLock. PiperOrigin-RevId: 789441157 Change-Id: I2ed5d12f4b9725edbe3fd6cf629a0563a2f2d739 | 1 年前 | |
Export of internal Abseil changes -- 1a5831c2b4b85e0151b7952e47f4b80827937620 by Laramie Leavitt <lar@google.com>: Implement FuzzingBitGen, an adapter which allows existing randomized tests which use absl::BitGenRef to easily integrate with fuzz testing. I found myself implementing a similar option in our tensorstore project to fuzz test a storage layer and figured that it would be more useful as a common tool with defaults that take the non-random path. This is similar to the FuzzedDataProvider mechanism which generates random values from a fuzz string, and is used to generate fuzz test inputs, and internally it uses FuzzedDataProvider. The basic technique used here is to construct mocking lambdas for all of the absl mock distribution configurations, and forwarding the parameters to fuzzing-specific implementations that call into FuzzedDataProvider. The default paths for the distributions are either the bounds or a median value. PiperOrigin-RevId: 358432715 -- e7968538c5ef5cd0b9822dbeac0f659b5e7d49b3 by Derek Mauro <dmauro@google.com>: Give extern C symbols a unique name when the inline namespace is given. This partially addresses #851 PiperOrigin-RevId: 358403842 GitOrigin-RevId: 1a5831c2b4b85e0151b7952e47f4b80827937620 Change-Id: Id5ca0251498e390a8efa7210a17cc2cabb2c7dd8 | 5 年前 | |
Skip the .exe suffix in the helpshort filter on Windows (#629) On Windows, the `flags_internal::ShortProgramInvocationName()` function usually returns the program name with '.exe' (if the extension is present in the command line during the program startup). This fact breaks the checks in the `ContainsHelpshortFlags` filter: obviously, module names have no .exe in them. Therefore, no defined flags are shown when the program runs with the --help flag. The program name should be used in filter without this extension even though it is present. The unit test has also been updated. Signed-off-by: Pavel Samolysov <samolisov@gmail.com> | 6 年前 |