Fix some clang-tidy issue (#28679)

* Fix clang-tidy

* Generated projects
pull/28699/head
Esun Kim 3 years ago committed by GitHub
parent adb8611da4
commit b762dce244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9484
      CMakeLists.txt
  2. 2497
      build_autogenerated.yaml
  3. 2
      src/core/ext/xds/xds_routing.cc
  4. 2
      src/core/lib/security/security_connector/ssl_utils.cc
  5. 1
      test/core/util/BUILD
  6. 1892
      tools/run_tests/generated/tests.json

9484
CMakeLists.txt generated

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -70,7 +70,7 @@ bool DomainMatch(MatchType match_type, absl::string_view domain_pattern_in,
MatchType DomainPatternMatchType(absl::string_view domain_pattern) {
if (domain_pattern.empty()) return INVALID_MATCH;
if (domain_pattern.find('*') == std::string::npos) return EXACT_MATCH;
if (!absl::StrContains(domain_pattern, '*')) return EXACT_MATCH;
if (domain_pattern == "*") return UNIVERSE_MATCH;
if (domain_pattern[0] == '*') return SUFFIX_MATCH;
if (domain_pattern[domain_pattern.size() - 1] == '*') return PREFIX_MATCH;

@ -233,7 +233,7 @@ static bool IsSpiffeId(absl::string_view uri) {
return false;
}
std::vector<absl::string_view> splits = absl::StrSplit(uri, '/');
if (splits.size() < 4 || splits[3] == "") {
if (splits.size() < 4 || splits[3].empty()) {
gpr_log(GPR_INFO, "Invalid SPIFFE ID: workload id is empty.");
return false;
}

@ -78,6 +78,7 @@ grpc_cc_library(
"absl/debugging:failure_signal_handler",
"absl/debugging:symbolize",
"absl/strings:str_format",
"gtest",
],
language = "C++",
deps = [

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save