diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-07-20 13:40:35 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2023-07-27 12:24:54 +0000 |
commit | f925f2f094da19369a77ce88ffa378316d788285 (patch) | |
tree | 3bc57914efd942cb8e6e84f5f41df7197bad9efa /gcc/rust/resolve | |
parent | 72e6a1e85d7930825cfd370104ea5adee4d082ce (diff) | |
download | gcc-f925f2f094da19369a77ce88ffa378316d788285.zip gcc-f925f2f094da19369a77ce88ffa378316d788285.tar.gz gcc-f925f2f094da19369a77ce88ffa378316d788285.tar.bz2 |
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/resolve')
0 files changed, 0 insertions, 0 deletions