Merge pull request #3797 from glandium:issue3514
PiperOrigin-RevId: 444444700 Change-Id: I8ac5cc96cc6eb9d583fa7e3fb304ef3dcaa95b5b
This commit is contained in:
		@@ -76,6 +76,7 @@ time docker run \
 | 
				
			|||||||
    /usr/local/bin/bazel test ... \
 | 
					    /usr/local/bin/bazel test ... \
 | 
				
			||||||
      --copt="-Wall" \
 | 
					      --copt="-Wall" \
 | 
				
			||||||
      --copt="-Werror" \
 | 
					      --copt="-Werror" \
 | 
				
			||||||
 | 
					      --copt="-Wuninitialized" \
 | 
				
			||||||
      --copt="-Wno-error=pragmas" \
 | 
					      --copt="-Wno-error=pragmas" \
 | 
				
			||||||
      --keep_going \
 | 
					      --keep_going \
 | 
				
			||||||
      --show_timestamps \
 | 
					      --show_timestamps \
 | 
				
			||||||
@@ -94,6 +95,7 @@ for std in ${STD}; do
 | 
				
			|||||||
      /usr/local/bin/bazel test ... \
 | 
					      /usr/local/bin/bazel test ... \
 | 
				
			||||||
        --copt="-Wall" \
 | 
					        --copt="-Wall" \
 | 
				
			||||||
        --copt="-Werror" \
 | 
					        --copt="-Werror" \
 | 
				
			||||||
 | 
					        --copt="-Wuninitialized" \
 | 
				
			||||||
        --define="absl=${absl}" \
 | 
					        --define="absl=${absl}" \
 | 
				
			||||||
        --distdir="/bazel-distdir" \
 | 
					        --distdir="/bazel-distdir" \
 | 
				
			||||||
        --keep_going \
 | 
					        --keep_going \
 | 
				
			||||||
@@ -116,6 +118,7 @@ for std in ${STD}; do
 | 
				
			|||||||
        --copt="--gcc-toolchain=/usr/local" \
 | 
					        --copt="--gcc-toolchain=/usr/local" \
 | 
				
			||||||
        --copt="-Wall" \
 | 
					        --copt="-Wall" \
 | 
				
			||||||
        --copt="-Werror" \
 | 
					        --copt="-Werror" \
 | 
				
			||||||
 | 
					        --copt="-Wuninitialized" \
 | 
				
			||||||
        --define="absl=${absl}" \
 | 
					        --define="absl=${absl}" \
 | 
				
			||||||
        --distdir="/bazel-distdir" \
 | 
					        --distdir="/bazel-distdir" \
 | 
				
			||||||
        --keep_going \
 | 
					        --keep_going \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -303,17 +303,18 @@ class MatcherBase : private MatcherDescriberInterface {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 protected:
 | 
					 protected:
 | 
				
			||||||
  MatcherBase() : vtable_(nullptr) {}
 | 
					  MatcherBase() : vtable_(nullptr), buffer_() {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Constructs a matcher from its implementation.
 | 
					  // Constructs a matcher from its implementation.
 | 
				
			||||||
  template <typename U>
 | 
					  template <typename U>
 | 
				
			||||||
  explicit MatcherBase(const MatcherInterface<U>* impl) {
 | 
					  explicit MatcherBase(const MatcherInterface<U>* impl)
 | 
				
			||||||
 | 
					      : vtable_(nullptr), buffer_() {
 | 
				
			||||||
    Init(impl);
 | 
					    Init(impl);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  template <typename M, typename = typename std::remove_reference<
 | 
					  template <typename M, typename = typename std::remove_reference<
 | 
				
			||||||
                            M>::type::is_gtest_matcher>
 | 
					                            M>::type::is_gtest_matcher>
 | 
				
			||||||
  MatcherBase(M&& m) {  // NOLINT
 | 
					  MatcherBase(M&& m) : vtable_(nullptr), buffer_() {  // NOLINT
 | 
				
			||||||
    Init(std::forward<M>(m));
 | 
					    Init(std::forward<M>(m));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user