commit | 82c1758c2efc0dd95aa2663e401afc6bee52a6ca | [log] [tgz] |
---|---|---|
author | Dani Ferreira Franco Moura <danimoura@google.com> | Tue Jan 17 10:58:53 2023 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jan 17 10:59:30 2023 -0800 |
tree | db0f3868975c560cf02795edcb68993c7e1b8f78 | |
parent | a29a2a0a24582023a1c3a8c82761ffd7a92845cb [diff] |
Refactor `substituteNullabilityAnnotationsInClassTemplate` for simplicity and readability We removed the call to `getNullabilityForTemplateParameter` (by inlining its code inside `substituteNullabilityAnnotationsInClassTemplate`), and modified the documentation comment to follow the same style as that of `substituteNullabilityAnnotationsInFunctionTemplate`. Now, all the documentation related to substituting nullability annotations in a class template is located in one place, which improves readability. PiperOrigin-RevId: 502633057
Extremely experimental interop tooling for C++ and Rust.
Please don‘t use, this is an experiment and we don’t yet know where will it take us. There will be breaking changes without warning. Unfortunately, we can't take contributions at this point.
$ apt install clang lld bazel $ git clone git@github.com:google/crubit.git $ cd crubit $ bazel build --linkopt=-fuse-ld=/usr/bin/ld.lld //rs_bindings_from_cc:rs_bindings_from_cc_impl
$ git clone https://github.com/llvm/llvm-project $ cd llvm-project $ CC=clang CXX=clang++ cmake -S llvm -B build -DLLVM_ENABLE_PROJECTS='clang' -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install $ cmake --build build -j $ # wait... $ cmake --install build $ cd ../crubit $ LLVM_INSTALL_PATH=../llvm-project/install bazel build //rs_bindings_from_cc:rs_bindings_from_cc_impl