aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-07-20 13:40:35 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-07-27 12:24:54 +0000
commitf925f2f094da19369a77ce88ffa378316d788285 (patch)
tree3bc57914efd942cb8e6e84f5f41df7197bad9efa /gcc/rust/resolve/rust-ast-resolve-expr.cc
parent72e6a1e85d7930825cfd370104ea5adee4d082ce (diff)
downloadgcc-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/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions