summaryrefslogtreecommitdiff
path: root/tools/generate_operator_out.py
diff options
context:
space:
mode:
author Dmitrii Ishcheikin <ishcheikin@google.com> 2024-01-04 21:29:31 +0000
committer Dmitrii Ishcheikin <ishcheikin@google.com> 2024-01-08 18:20:41 +0000
commitbd627878530cbad856d4e6520f72baec4791b9b0 (patch)
tree90dc8febf4c29379647aac9381ce1795d61eea74 /tools/generate_operator_out.py
parent92694be87e8004df54c9701d168b6682be6ce8b8 (diff)
Add visibility attributes in runtime/arch/{arm,arm64,riscv64,x86,x86_64}
Include files that belong to fault_handler unit: * runtime/fault_handler.cc * runtime/fault_handler.h Include files that belong to thread unit: * runtime/thread-inl.h * runtime/thread.cc * runtime/thread.h * runtime/thread_android.cc * runtime/thread_linux.cc Update generate_operator_out to support symbol visibility attributes in classes and enums. Bug: 260881207 Test: presubmit Test: abtd app_compat_drm Test: abtd app_compat_top_100 Test: abtd app_compat_banking Change-Id: Icadc031d7c4455816a4799825dfcf8f2ef13f6a6
Diffstat (limited to 'tools/generate_operator_out.py')
-rwxr-xr-xtools/generate_operator_out.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/generate_operator_out.py b/tools/generate_operator_out.py
index f3de61c134..e4d66befa1 100755
--- a/tools/generate_operator_out.py
+++ b/tools/generate_operator_out.py
@@ -22,7 +22,7 @@ import sys
_ENUM_START_RE = re.compile(
- r'\benum\b\s+(class\s+)?(\S+)\s+:?.*\{(\s+// private)?')
+ r'\benum\b\s+(class\s+)?(?:HIDDEN |EXPORT )?(\S+)\s+:?.*\{(\s+// private)?')
_ENUM_VALUE_RE = re.compile(r'([A-Za-z0-9_]+)(.*)')
_ENUM_END_RE = re.compile(r'^\s*\};$')
_ENUMS = {}
@@ -76,7 +76,7 @@ def ProcessFile(filename):
# Is this the start or end of an enclosing class or struct?
m = re.search(
- r'^\s*(?:class|struct)(?: MANAGED)?(?: PACKED\([0-9]\))? (\S+).* \{', raw_line)
+ r'^\s*(?:class|struct)(?: HIDDEN| EXPORT)?(?: MANAGED)?(?: PACKED\([0-9]\))? (\S+).* \{', raw_line)
if m:
enclosing_classes.append(m.group(1))
continue