diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-07-20 13:40:35 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:56:01 +0100 |
commit | 1346a7652e8cf70b54f0b12f6844f0c929781c2f (patch) | |
tree | f6e0ede25174a67ad066b18924c02fe9d56fe1ef /gcc/rust/Make-lang.in | |
parent | 6ad3f1fa575a1debdaa6a41f698d71c73f6600fa (diff) | |
download | gcc-1346a7652e8cf70b54f0b12f6844f0c929781c2f.zip gcc-1346a7652e8cf70b54f0b12f6844f0c929781c2f.tar.gz gcc-1346a7652e8cf70b54f0b12f6844f0c929781c2f.tar.bz2 |
gccrs: privacy: Refactor proc macro privacy check
Refactor proc macro specific privacy check in multiple shorter
functions.
gcc/rust/ChangeLog:
* checks/errors/privacy/rust-privacy-reporter.cc (find_proc_macro_attribute):
Add a new function to find a potential proc macro type
attribute on a given item.
(proc_macro_privacy_check): Move all proc macro privacy check in
their own function to avoid cluttering the usual privacy check.
(PrivacyReporter::go): Add call to newly created proc macro
privacy check function.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/Make-lang.in')
0 files changed, 0 insertions, 0 deletions