Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manual presubmit testing #87

Closed
wants to merge 5 commits into from
Closed

manual presubmit testing #87

wants to merge 5 commits into from

Conversation

rwgk
Copy link
Contributor

@rwgk rwgk commented Jan 20, 2024

Helper/scratch PR for testing.

rwgk added a commit that referenced this pull request Jan 22, 2024
1. `isPureVirtual` is only available in LLVM 18:

* llvm/llvm-project#78463

```
/mounted_clif/clif/backend/matcher.cc: In member function 'const clang::FunctionDecl* clif::ClifMatcher::MatchAndSetFuncFromCandidates(const clif::ClifLookupResult&, clif::protos::FuncDecl*)':
/mounted_clif/clif/backend/matcher.cc:2740:51: error: 'const class clang::CXXMethodDecl' has no member named 'isPureVirtual'; did you mean 'isVirtual'?
 2740 |       func_decl->set_is_pure_virtual(method_decl->isPureVirtual());
      |                                                   ^~~~~~~~~~~~~
      |                                                   isVirtual
/mounted_clif/clif/backend/matcher.cc: In function 'const string clif::GetDeclNativeName(const clif::protos::Decl&)':
/mounted_clif/clif/backend/matcher.cc:92:1: warning: control reaches end of non-void function [-Wreturn-type]
   92 | }
      | ^
/mounted_clif/clif/backend/matcher.cc: In function 'std::string clif::GetErrorCodeString(clif::ClifErrorCode)':
/mounted_clif/clif/backend/matcher.cc:179:1: warning: control reaches end of non-void function [-Wreturn-type]
  179 | }
      | ^
```

2. `absl::StrCat(proto)` does not work as a replacement for `proto.DebugString()` with the versions of abseil-cpp (20230125.1) and protobuf (22.0) currently used for GitHub testing:

```
/usr/bin/ld: libclifMatcher.a(matcher.cc.o): in function `void google::protobuf::AbslStringify<absl::lts_20230125::strings_internal::StringifySink>(absl::lts_20230125::strings_internal::StringifySink&, google::protobuf::Message const&)':
matcher.cc:(.text._ZN6google8protobuf13AbslStringifyIN4absl12lts_2023012516strings_internal13StringifySinkEEEvRT_RKNS0_7MessageE[_ZN6google8protobuf13AbslStringifyIN4absl12lts_2023012516strings_internal13StringifySinkEEEvRT_RKNS0_7MessageE]+0x51): undefined reference to `google::protobuf::internal::PerformAbslStringify(google::protobuf::Message const&, absl::lts_20230125::FunctionRef<void (absl::lts_20230125::string_view)>)'
collect2: error: ld returned 1 exit status
```

GitHub testing (in combination with child cl/598975069): #87

PiperOrigin-RevId: 600506085
rwgk added a commit that referenced this pull request Jan 22, 2024
This one-line production code change builds on google/pybind11clif#30088 (imported via cl/599883612).

PyCLIF-pybind11 TGP failures fixed: b/287289622#comment51 (21 Passing, 20 unique)

GitHub testing: #87

PiperOrigin-RevId: 600509355
@rwgk
Copy link
Contributor Author

rwgk commented Jan 22, 2024

Final state of this PR is equivalent to main at commit e0f4bf6.

@rwgk rwgk closed this Jan 22, 2024
@rwgk rwgk deleted the cl_testing branch January 22, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant