Hello community,

here is the log from the commit of package re2 for openSUSE:Factory checked in 
at 2020-10-12 13:46:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/re2 (Old)
 and      /work/SRC/openSUSE:Factory/.re2.new.3486 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "re2"

Mon Oct 12 13:46:47 2020 rev:34 rq:840948 version:MACRO

Changes:
--------
--- /work/SRC/openSUSE:Factory/re2/re2.changes  2020-08-14 09:31:18.260336155 
+0200
+++ /work/SRC/openSUSE:Factory/.re2.new.3486/re2.changes        2020-10-12 
13:46:56.189912110 +0200
@@ -1,0 +2,6 @@
+Sat Oct 10 20:54:42 UTC 2020 - Andreas Stieger <[email protected]>
+
+- update to 2020-10-01:
+  * build system updates and compiler warnings fixes
+
+-------------------------------------------------------------------

Old:
----
  re2-2020-08-01.tar.gz

New:
----
  re2-2020-10-01.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ re2.spec ++++++
--- /var/tmp/diff_new_pack.wTWg3w/_old  2020-10-12 13:46:57.453912623 +0200
+++ /var/tmp/diff_new_pack.wTWg3w/_new  2020-10-12 13:46:57.457912626 +0200
@@ -16,7 +16,7 @@
 #
 
 
-%global longver 2020-08-01
+%global longver 2020-10-01
 %global shortver %(echo %{longver}|sed 's|-||g')
 %define libname libre2-8
 Name:           re2

++++++ re2-2020-08-01.tar.gz -> re2-2020-10-01.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/.github/bazel.sh 
new/re2-2020-10-01/.github/bazel.sh
--- old/re2-2020-08-01/.github/bazel.sh 1970-01-01 01:00:00.000000000 +0100
+++ new/re2-2020-10-01/.github/bazel.sh 2020-09-27 12:41:02.000000000 +0200
@@ -0,0 +1,24 @@
+#!/bin/bash
+set -eux
+
+bazel clean
+bazel build --compilation_mode=dbg -- //:all
+bazel test  --compilation_mode=dbg --test_output=errors -- //:all \
+  -//:dfa_test \
+  -//:exhaustive1_test \
+  -//:exhaustive2_test \
+  -//:exhaustive3_test \
+  -//:exhaustive_test \
+  -//:random_test
+
+bazel clean
+bazel build --compilation_mode=opt -- //:all
+bazel test  --compilation_mode=opt --test_output=errors -- //:all \
+  -//:dfa_test \
+  -//:exhaustive1_test \
+  -//:exhaustive2_test \
+  -//:exhaustive3_test \
+  -//:exhaustive_test \
+  -//:random_test
+
+exit 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/.github/cmake.sh 
new/re2-2020-10-01/.github/cmake.sh
--- old/re2-2020-08-01/.github/cmake.sh 1970-01-01 01:00:00.000000000 +0100
+++ new/re2-2020-10-01/.github/cmake.sh 2020-09-27 12:41:02.000000000 +0200
@@ -0,0 +1,12 @@
+#!/bin/bash
+set -eux
+
+cmake -D CMAKE_BUILD_TYPE=Debug
+cmake --build . --config Debug --clean-first
+ctest -C Debug --output-on-failure -E 'dfa|exhaustive|random'
+
+cmake -D CMAKE_BUILD_TYPE=Release
+cmake --build . --config Release --clean-first
+ctest -C Release --output-on-failure -E 'dfa|exhaustive|random'
+
+exit 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/.github/workflows/ci-bazel.yml 
new/re2-2020-10-01/.github/workflows/ci-bazel.yml
--- old/re2-2020-08-01/.github/workflows/ci-bazel.yml   1970-01-01 
01:00:00.000000000 +0100
+++ new/re2-2020-10-01/.github/workflows/ci-bazel.yml   2020-09-27 
12:41:02.000000000 +0200
@@ -0,0 +1,17 @@
+name: CI (Bazel)
+on:
+  push:
+    branches: [master]
+jobs:
+  build:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [macos-latest, ubuntu-latest, windows-latest]
+    env:
+      BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+    steps:
+      - uses: actions/checkout@v2
+      - run: .github/bazel.sh
+        shell: bash
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/.github/workflows/ci-cmake.yml 
new/re2-2020-10-01/.github/workflows/ci-cmake.yml
--- old/re2-2020-08-01/.github/workflows/ci-cmake.yml   1970-01-01 
01:00:00.000000000 +0100
+++ new/re2-2020-10-01/.github/workflows/ci-cmake.yml   2020-09-27 
12:41:02.000000000 +0200
@@ -0,0 +1,15 @@
+name: CI (CMake)
+on:
+  push:
+    branches: [master]
+jobs:
+  build:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [macos-latest, ubuntu-latest, windows-latest]
+    steps:
+      - uses: actions/checkout@v2
+      - run: .github/cmake.sh
+        shell: bash
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/.github/workflows/ci.yml 
new/re2-2020-10-01/.github/workflows/ci.yml
--- old/re2-2020-08-01/.github/workflows/ci.yml 1970-01-01 01:00:00.000000000 
+0100
+++ new/re2-2020-10-01/.github/workflows/ci.yml 2020-09-27 12:41:02.000000000 
+0200
@@ -0,0 +1,51 @@
+name: CI
+on:
+  push:
+    branches: [master]
+jobs:
+  build:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [macos-latest, ubuntu-latest]
+    env:
+      CC: clang
+      CXX: clang++
+    steps:
+      - uses: actions/checkout@v2
+      - run: make && make test
+        shell: bash
+  build-clang:
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        tag: [9, 10, 11]
+    env:
+      CC: clang-${{ matrix.tag }}
+      CXX: clang++-${{ matrix.tag }}
+    steps:
+      - uses: actions/checkout@v2
+      - name: Install Clang ${{ matrix.tag }}
+        run: |
+          wget https://apt.llvm.org/llvm.sh
+          chmod +x ./llvm.sh
+          sudo ./llvm.sh ${{ matrix.tag }}
+        shell: bash
+      - run: make && make test
+        shell: bash
+  build-gcc:
+    runs-on: ubuntu-latest
+    container: gcc:${{ matrix.tag }}
+    strategy:
+      fail-fast: false
+      matrix:
+        tag: [4, 5, 6, 7, 8, 9, 10]
+    env:
+      CC: gcc
+      CXX: g++
+    steps:
+      - uses: actions/checkout@v2
+      - run: make && make test
+        shell: bash
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/.travis.yml 
new/re2-2020-10-01/.travis.yml
--- old/re2-2020-08-01/.travis.yml      2020-07-14 19:26:22.000000000 +0200
+++ new/re2-2020-10-01/.travis.yml      1970-01-01 01:00:00.000000000 +0100
@@ -1,210 +0,0 @@
-language: cpp
-jobs:
-  include:
-
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-          packages:
-            - g++-4.8
-      env:
-         - MATRIX_EVAL="CC=gcc-4.8 CXX=g++-4.8"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-          packages:
-            - g++-4.9
-      env:
-         - MATRIX_EVAL="CC=gcc-4.9 CXX=g++-4.9"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-          packages:
-            - g++-5
-      env:
-         - MATRIX_EVAL="CC=gcc-5 CXX=g++-5"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-          packages:
-            - g++-6
-      env:
-        - MATRIX_EVAL="CC=gcc-6 CXX=g++-6"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-          packages:
-            - g++-7
-      env:
-        - MATRIX_EVAL="CC=gcc-7 CXX=g++-7"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-          packages:
-            - g++-8
-      env:
-        - MATRIX_EVAL="CC=gcc-8 CXX=g++-8"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-          packages:
-            - g++-9
-      env:
-        - MATRIX_EVAL="CC=gcc-9 CXX=g++-9"
-
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-            - sourceline: 'deb https://apt.llvm.org/xenial/ 
llvm-toolchain-xenial-3.8 main'
-              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
-          packages:
-            - clang-3.8
-      env:
-        - MATRIX_EVAL="CC=clang-3.8 CXX=clang++-3.8"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-            - sourceline: 'deb https://apt.llvm.org/xenial/ 
llvm-toolchain-xenial-3.9 main'
-              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
-          packages:
-            - clang-3.9
-      env:
-        - MATRIX_EVAL="CC=clang-3.9 CXX=clang++-3.9"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-            - sourceline: 'deb https://apt.llvm.org/xenial/ 
llvm-toolchain-xenial-4.0 main'
-              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
-          packages:
-            - clang-4.0
-      env:
-        - MATRIX_EVAL="CC=clang-4.0 CXX=clang++-4.0"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-            - sourceline: 'deb https://apt.llvm.org/xenial/ 
llvm-toolchain-xenial-5.0 main'
-              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
-          packages:
-            - clang-5.0
-      env:
-        - MATRIX_EVAL="CC=clang-5.0 CXX=clang++-5.0"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-            - sourceline: 'deb https://apt.llvm.org/xenial/ 
llvm-toolchain-xenial-6.0 main'
-              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
-          packages:
-            - clang-6.0
-      env:
-        - MATRIX_EVAL="CC=clang-6.0 CXX=clang++-6.0"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-            - sourceline: 'deb https://apt.llvm.org/xenial/ 
llvm-toolchain-xenial-7 main'
-              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
-          packages:
-            - clang-7
-      env:
-        - MATRIX_EVAL="CC=clang-7 CXX=clang++-7"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-            - sourceline: 'deb https://apt.llvm.org/xenial/ 
llvm-toolchain-xenial-8 main'
-              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
-          packages:
-            - clang-8
-      env:
-        - MATRIX_EVAL="CC=clang-8 CXX=clang++-8"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-            - sourceline: 'deb https://apt.llvm.org/xenial/ 
llvm-toolchain-xenial-9 main'
-              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
-          packages:
-            - clang-9
-      env:
-        - MATRIX_EVAL="CC=clang-9 CXX=clang++-9"
-    - os: linux
-      dist: xenial
-      addons:
-        apt:
-          sources:
-            - ubuntu-toolchain-r-test
-            - sourceline: 'deb https://apt.llvm.org/xenial/ 
llvm-toolchain-xenial-10 main'
-              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
-          packages:
-            - clang-10
-      env:
-        - MATRIX_EVAL="CC=clang-10 CXX=clang++-10"
-
-    - os: osx
-      osx_image: xcode7.3
-      env:
-        - MATRIX_EVAL="CC=clang CXX=clang++"
-    - os: osx
-      osx_image: xcode8.3
-      env:
-        - MATRIX_EVAL="CC=clang CXX=clang++"
-    - os: osx
-      osx_image: xcode9.4
-      env:
-        - MATRIX_EVAL="CC=clang CXX=clang++"
-    - os: osx
-      osx_image: xcode10.3
-      env:
-        - MATRIX_EVAL="CC=clang CXX=clang++"
-    - os: osx
-      osx_image: xcode11.3
-      env:
-        - MATRIX_EVAL="CC=clang CXX=clang++"
-
-before_script:
-  - eval "${MATRIX_EVAL}"
-script:
-  - make
-  - make test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/README new/re2-2020-10-01/README
--- old/re2-2020-08-01/README   2020-07-14 19:26:22.000000000 +0200
+++ new/re2-2020-10-01/README   2020-09-27 12:41:02.000000000 +0200
@@ -27,12 +27,14 @@
 
 RE2's native language is C++.
 
+The Python wrapper is at https://github.com/google/re2/tree/abseil/python
+and on PyPI (https://pypi.org/project/google-re2/).
+
 A C wrapper is at https://github.com/marcomaggi/cre2/.
 An Erlang wrapper is at https://github.com/dukesoferl/re2/ and on Hex (hex.pm).
 An Inferno wrapper is at https://github.com/powerman/inferno-re2/.
 A Node.js wrapper is at https://github.com/uhop/node-re2/ and on NPM 
(npmjs.com).
 An OCaml wrapper is at https://github.com/janestreet/re2/ and on OPAM 
(opam.ocaml.org).
 A Perl wrapper is at https://github.com/dgl/re-engine-RE2/ and on CPAN 
(cpan.org).
-A Python wrapper is at https://github.com/facebook/pyre2/ and on PyPI 
(pypi.org).
 An R wrapper is at https://github.com/qinwf/re2r/ and on CRAN 
(cran.r-project.org).
 A Ruby wrapper is at https://github.com/mudge/re2/ and on RubyGems 
(rubygems.org).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/bazel.sh 
new/re2-2020-10-01/kokoro/bazel.sh
--- old/re2-2020-08-01/kokoro/bazel.sh  2020-07-14 19:26:22.000000000 +0200
+++ new/re2-2020-10-01/kokoro/bazel.sh  1970-01-01 01:00:00.000000000 +0100
@@ -1,38 +0,0 @@
-#!/bin/bash
-set -eux
-
-cd git/re2
-
-case "${KOKORO_JOB_NAME}" in
-  */windows-*)
-    choco upgrade bazel -y -i
-    # Pin to Visual Studio 2015, which is the minimum that we support.
-    export BAZEL_VC='C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC'
-    ;;
-  *)
-    # Use the script provided by Kokoro.
-    use_bazel.sh latest
-    ;;
-esac
-
-bazel clean
-bazel build --compilation_mode=dbg -- //:all
-bazel test  --compilation_mode=dbg --test_output=errors -- //:all \
-  -//:dfa_test \
-  -//:exhaustive1_test \
-  -//:exhaustive2_test \
-  -//:exhaustive3_test \
-  -//:exhaustive_test \
-  -//:random_test
-
-bazel clean
-bazel build --compilation_mode=opt -- //:all
-bazel test  --compilation_mode=opt --test_output=errors -- //:all \
-  -//:dfa_test \
-  -//:exhaustive1_test \
-  -//:exhaustive2_test \
-  -//:exhaustive3_test \
-  -//:exhaustive_test \
-  -//:random_test
-
-exit 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/cmake.sh 
new/re2-2020-10-01/kokoro/cmake.sh
--- old/re2-2020-08-01/kokoro/cmake.sh  2020-07-14 19:26:22.000000000 +0200
+++ new/re2-2020-10-01/kokoro/cmake.sh  1970-01-01 01:00:00.000000000 +0100
@@ -1,27 +0,0 @@
-#!/bin/bash
-set -eux
-
-cd git/re2
-
-case "${KOKORO_JOB_NAME}" in
-  */windows-*)
-    export PATH+=':/cygdrive/c/Program Files/CMake/bin'
-    # Pin to Visual Studio 2015, which is the minimum that we support.
-    CMAKE_G_A_FLAGS=('-G' 'Visual Studio 14 2015' '-A' 'x64')
-    ;;
-  *)
-    CMAKE_G_A_FLAGS=()
-    # Work around a bug in older versions of bash. :/
-    set +u
-    ;;
-esac
-
-cmake -D CMAKE_BUILD_TYPE=Debug "${CMAKE_G_A_FLAGS[@]}" .
-cmake --build . --config Debug --clean-first
-ctest -C Debug --output-on-failure -E 'dfa|exhaustive|random'
-
-cmake -D CMAKE_BUILD_TYPE=Release "${CMAKE_G_A_FLAGS[@]}" .
-cmake --build . --config Release --clean-first
-ctest -C Release --output-on-failure -E 'dfa|exhaustive|random'
-
-exit 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/macos-bazel.cfg 
new/re2-2020-10-01/kokoro/macos-bazel.cfg
--- old/re2-2020-08-01/kokoro/macos-bazel.cfg   2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/macos-bazel.cfg   1970-01-01 01:00:00.000000000 
+0100
@@ -1 +0,0 @@
-build_file: "re2/kokoro/macos-bazel.sh"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/macos-bazel.sh 
new/re2-2020-10-01/kokoro/macos-bazel.sh
--- old/re2-2020-08-01/kokoro/macos-bazel.sh    2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/macos-bazel.sh    1970-01-01 01:00:00.000000000 
+0100
@@ -1,4 +0,0 @@
-#!/bin/bash
-set -eux
-bash git/re2/kokoro/bazel.sh
-exit $?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/macos-cmake.cfg 
new/re2-2020-10-01/kokoro/macos-cmake.cfg
--- old/re2-2020-08-01/kokoro/macos-cmake.cfg   2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/macos-cmake.cfg   1970-01-01 01:00:00.000000000 
+0100
@@ -1 +0,0 @@
-build_file: "re2/kokoro/macos-cmake.sh"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/macos-cmake.sh 
new/re2-2020-10-01/kokoro/macos-cmake.sh
--- old/re2-2020-08-01/kokoro/macos-cmake.sh    2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/macos-cmake.sh    1970-01-01 01:00:00.000000000 
+0100
@@ -1,4 +0,0 @@
-#!/bin/bash
-set -eux
-bash git/re2/kokoro/cmake.sh
-exit $?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/ubuntu-bazel.cfg 
new/re2-2020-10-01/kokoro/ubuntu-bazel.cfg
--- old/re2-2020-08-01/kokoro/ubuntu-bazel.cfg  2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/ubuntu-bazel.cfg  1970-01-01 01:00:00.000000000 
+0100
@@ -1 +0,0 @@
-build_file: "re2/kokoro/ubuntu-bazel.sh"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/ubuntu-bazel.sh 
new/re2-2020-10-01/kokoro/ubuntu-bazel.sh
--- old/re2-2020-08-01/kokoro/ubuntu-bazel.sh   2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/ubuntu-bazel.sh   1970-01-01 01:00:00.000000000 
+0100
@@ -1,4 +0,0 @@
-#!/bin/bash
-set -eux
-bash git/re2/kokoro/bazel.sh
-exit $?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/ubuntu-cmake.cfg 
new/re2-2020-10-01/kokoro/ubuntu-cmake.cfg
--- old/re2-2020-08-01/kokoro/ubuntu-cmake.cfg  2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/ubuntu-cmake.cfg  1970-01-01 01:00:00.000000000 
+0100
@@ -1 +0,0 @@
-build_file: "re2/kokoro/ubuntu-cmake.sh"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/ubuntu-cmake.sh 
new/re2-2020-10-01/kokoro/ubuntu-cmake.sh
--- old/re2-2020-08-01/kokoro/ubuntu-cmake.sh   2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/ubuntu-cmake.sh   1970-01-01 01:00:00.000000000 
+0100
@@ -1,4 +0,0 @@
-#!/bin/bash
-set -eux
-bash git/re2/kokoro/cmake.sh
-exit $?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/windows-bazel.bat 
new/re2-2020-10-01/kokoro/windows-bazel.bat
--- old/re2-2020-08-01/kokoro/windows-bazel.bat 2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/windows-bazel.bat 1970-01-01 01:00:00.000000000 
+0100
@@ -1,2 +0,0 @@
-bash git/re2/kokoro/bazel.sh
-EXIT /B %ERRORLEVEL%
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/windows-bazel.cfg 
new/re2-2020-10-01/kokoro/windows-bazel.cfg
--- old/re2-2020-08-01/kokoro/windows-bazel.cfg 2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/windows-bazel.cfg 1970-01-01 01:00:00.000000000 
+0100
@@ -1 +0,0 @@
-build_file: "re2/kokoro/windows-bazel.bat"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/windows-cmake.bat 
new/re2-2020-10-01/kokoro/windows-cmake.bat
--- old/re2-2020-08-01/kokoro/windows-cmake.bat 2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/windows-cmake.bat 1970-01-01 01:00:00.000000000 
+0100
@@ -1,2 +0,0 @@
-bash git/re2/kokoro/cmake.sh
-EXIT /B %ERRORLEVEL%
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/kokoro/windows-cmake.cfg 
new/re2-2020-10-01/kokoro/windows-cmake.cfg
--- old/re2-2020-08-01/kokoro/windows-cmake.cfg 2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/kokoro/windows-cmake.cfg 1970-01-01 01:00:00.000000000 
+0100
@@ -1 +0,0 @@
-build_file: "re2/kokoro/windows-cmake.bat"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/re2/re2.h new/re2-2020-10-01/re2/re2.h
--- old/re2-2020-08-01/re2/re2.h        2020-07-14 19:26:22.000000000 +0200
+++ new/re2-2020-10-01/re2/re2.h        2020-09-27 12:41:02.000000000 +0200
@@ -368,12 +368,12 @@
   //    (void*)NULL     (the corresponding matched sub-pattern is not copied)
   //
   // Returns true iff all of the following conditions are satisfied:
-  //   a. "text" matches "re" exactly
-  //   b. The number of matched sub-patterns is >= number of supplied pointers
+  //   a. "text" matches "re" fully - from the beginning to the end of "text".
+  //   b. The number of matched sub-patterns is >= number of supplied pointers.
   //   c. The "i"th argument has a suitable type for holding the
   //      string captured as the "i"th sub-pattern.  If you pass in
   //      NULL for the "i"th argument, or pass fewer arguments than
-  //      number of sub-patterns, "i"th captured sub-pattern is
+  //      number of sub-patterns, the "i"th captured sub-pattern is
   //      ignored.
   //
   // CAVEAT: An optional sub-pattern that does not exist in the
@@ -387,8 +387,17 @@
     return Apply(FullMatchN, text, re, Arg(std::forward<A>(a))...);
   }
 
-  // Exactly like FullMatch(), except that "re" is allowed to match
-  // a substring of "text".
+  // Like FullMatch(), except that "re" is allowed to match a substring
+  // of "text".
+  //
+  // Returns true iff all of the following conditions are satisfied:
+  //   a. "text" matches "re" partially - for some substring of "text".
+  //   b. The number of matched sub-patterns is >= number of supplied pointers.
+  //   c. The "i"th argument has a suitable type for holding the
+  //      string captured as the "i"th sub-pattern.  If you pass in
+  //      NULL for the "i"th argument, or pass fewer arguments than
+  //      number of sub-patterns, the "i"th captured sub-pattern is
+  //      ignored.
   template <typename... A>
   static bool PartialMatch(const StringPiece& text, const RE2& re, A&&... a) {
     return Apply(PartialMatchN, text, re, Arg(std::forward<A>(a))...);
@@ -397,7 +406,16 @@
   // Like FullMatch() and PartialMatch(), except that "re" has to match
   // a prefix of the text, and "input" is advanced past the matched
   // text.  Note: "input" is modified iff this routine returns true
-  // and "re" matched a non-empty substring of "text".
+  // and "re" matched a non-empty substring of "input".
+  //
+  // Returns true iff all of the following conditions are satisfied:
+  //   a. "input" matches "re" partially - for some prefix of "input".
+  //   b. The number of matched sub-patterns is >= number of supplied pointers.
+  //   c. The "i"th argument has a suitable type for holding the
+  //      string captured as the "i"th sub-pattern.  If you pass in
+  //      NULL for the "i"th argument, or pass fewer arguments than
+  //      number of sub-patterns, the "i"th captured sub-pattern is
+  //      ignored.
   template <typename... A>
   static bool Consume(StringPiece* input, const RE2& re, A&&... a) {
     return Apply(ConsumeN, input, re, Arg(std::forward<A>(a))...);
@@ -407,6 +425,15 @@
   // the text.  That is, "re" need not start its match at the beginning
   // of "input".  For example, "FindAndConsume(s, "(\\w+)", &word)" finds
   // the next word in "s" and stores it in "word".
+  //
+  // Returns true iff all of the following conditions are satisfied:
+  //   a. "input" matches "re" partially - for some substring of "input".
+  //   b. The number of matched sub-patterns is >= number of supplied pointers.
+  //   c. The "i"th argument has a suitable type for holding the
+  //      string captured as the "i"th sub-pattern.  If you pass in
+  //      NULL for the "i"th argument, or pass fewer arguments than
+  //      number of sub-patterns, the "i"th captured sub-pattern is
+  //      ignored.
   template <typename... A>
   static bool FindAndConsume(StringPiece* input, const RE2& re, A&&... a) {
     return Apply(FindAndConsumeN, input, re, Arg(std::forward<A>(a))...);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/re2/testing/tester.cc 
new/re2-2020-10-01/re2/testing/tester.cc
--- old/re2-2020-08-01/re2/testing/tester.cc    2020-07-14 19:26:22.000000000 
+0200
+++ new/re2-2020-10-01/re2/testing/tester.cc    2020-09-27 12:41:02.000000000 
+0200
@@ -86,6 +86,20 @@
 
 // The result of running a match.
 struct TestInstance::Result {
+  Result()
+      : skipped(false),
+        matched(false),
+        untrusted(false),
+        have_submatch(false),
+        have_submatch0(false) {
+    ClearSubmatch();
+  }
+
+  void ClearSubmatch() {
+    for (int i = 0; i < kMaxSubmatch; i++)
+      submatch[i] = StringPiece();
+  }
+
   bool skipped;         // test skipped: wasn't applicable
   bool matched;         // found a match
   bool untrusted;       // don't really trust the answer
@@ -292,9 +306,6 @@
                              const StringPiece& orig_context,
                              Prog::Anchor anchor,
                              Result* result) {
-  // Result is not trivial, so we cannot freely clear it with memset(3),
-  // but zeroing objects like so is safe and expedient for our purposes.
-  memset(reinterpret_cast<void*>(result), 0, sizeof *result);
   if (regexp_ == NULL) {
     result->skipped = true;
     return;
@@ -478,7 +489,7 @@
   }
 
   if (!result->matched)
-    memset(result->submatch, 0, sizeof result->submatch);
+    result->ClearSubmatch();
 }
 
 // Checks whether r is okay given that correct is the right answer.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/re2-2020-08-01/re2/walker-inl.h 
new/re2-2020-10-01/re2/walker-inl.h
--- old/re2-2020-08-01/re2/walker-inl.h 2020-07-14 19:26:22.000000000 +0200
+++ new/re2-2020-10-01/re2/walker-inl.h 2020-09-27 12:41:02.000000000 +0200
@@ -119,7 +119,7 @@
 
 // State about a single level in the traversal.
 template<typename T> struct WalkState {
-  WalkState<T>(Regexp* re, T parent)
+  WalkState(Regexp* re, T parent)
     : re(re),
       n(-1),
       parent_arg(parent),


Reply via email to