Test proc macros
Open
@P-E-P is already working on this.
Since Jul 20, 2024.
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 231
- Avg merge
- 19h 55m
- Merged PRs (30d)
- 67
Description
We cannot check proc macro entirely for now but there are a few things we could check:
- proc_macro and derive declarations are not used within a regular context
- no error message is emitted when a declaration occur within a proc macro
- eventually add a scan assembler test for the proc macro output, we could make sure the proper symbols are emitted
- functions tagged with
#[proc_macro]must be `pub - function-like proc macro has incorrect signature
extern crate proc_macro;
use proc_macro::TokenStream;
#[proc_macro]
pub fn my_proc_macro(ts: TokenStream) -> TokenStream {
ts
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.