Skip to content
Snippets Groups Projects
  1. Jun 05, 2020
  2. Jun 03, 2020
  3. May 29, 2020
  4. May 25, 2020
  5. May 20, 2020
  6. May 14, 2020
    • Abseil Team's avatar
      Googletest export · 011959aa
      Abseil Team authored
      Remove broken URL.
      
      PiperOrigin-RevId: 311377660
      011959aa
    • Abseil Team's avatar
      Googletest export · 8a32680c
      Abseil Team authored
      Fixed #2823 - Make it so that a semicolon appearing after an invocation of GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_ does not trigger a redundant semicolon warning.
      
      This works by introducing an else block with a statement that intentionally does not end with a semicolon, forcing users to place the semicolon after the expansion. The approach here is preferred as opposed to removing semicolons that appear after each invocation because complete statements that do not have a visible semicolon or braces confuse users and code formatters, since the macro invocation looks superficially like an expression.
      
      PiperOrigin-RevId: 311327491
      8a32680c
  7. May 13, 2020
  8. May 08, 2020
    • Martin Storsjö's avatar
      Remove an explicit include of debugapi.h · d86e9e23
      Martin Storsjö authored
      The documentation for IsDebuggerPresent says that one just should
      include windows.h, as that one is an umbrella header that includes
      the header that declares IsDebuggerPresent. In older Windows SDKs,
      debugapi.h didn't exist and IsDebuggerPresent was declared in
      winbase.h (also included by windows.h).
      
      This should fix issue #2822 properly.
      d86e9e23
    • Martin Storsjö's avatar
      Revert "Googletest export" · 09f58751
      Martin Storsjö authored
      This reverts commit a9f6c1ed.
      
      That commit cannot fix the issue it sets out to fix.
      
      The original issue, #2822, was that building with a toolset
      targeting XP compatibility is missing the debugapi.h header -
      as debugapi.h didn't exist in older Windows SDKs.
      
      Commit a9f6c1ed misinterpreted
      the Microsoft documentation about IsDebuggerPresent. The information
      about which header to use, "debugapi.h (include Windows.h)" means
      that the function declaration currently lives in debugapi.h, but
      for compatibility, just include the Windows.h umbrella header.
      In older Windows SDKs (e.g. the v6.0a SDK), IsDebuggerPresent
      is declared in winbase.h, and debugapi.h doesn't exist at all in those
      versions.
      
      Including Windows.h with a different capitalization than the existing
      include won't help finding headers that don't exist.
      
      Including Windows.h with a capital W breaks cross compilation with mingw
      toolchains, where the header always has been spelled with a lower case
      W. When building on native windows, the file system is case insensitive
      and the capitalization doesn't matter.
      
      This fixes issue #2840.
      09f58751
    • Abseil Team's avatar
      Googletest export · a09ea700
      Abseil Team authored
      Fix `-Wgnu-zero-variadic-macro-arguments` in GMock
      
      Passing zero arguments to the variadic part of a macro is a GNU
      extension and triggers warnings when build projects using GMock with
      `-pedantic`.
      
       - Fix uses of `GMOCK_PP_INTERNAL_16TH` to always receive at least 17
      arguments. (this was triggered when `GMOCK_PP_NARG` or `GMOCK_PP_HAS_COMMA`
      were used with an argument containing no commas).
       - Fix `GMOCK_PP_HEAD` to append a dummy unused argument so that
      `GMOCK_PP_INTERNAL_HEAD` always has two arguments.
      
      PiperOrigin-RevId: 310414611
      a09ea700
  9. May 06, 2020
  10. May 02, 2020
Loading