[cctest] Add V8_EXPORT_PRIVATE for cctest (tools part)

Bug: v8:9020

Change-Id: Ib775ce8ab450ad42a342a40c660230c091e4f41d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1541053
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60489}
This commit is contained in:
Sigurd Schneider 2019-03-27 13:31:41 +01:00 committed by Commit Bot
parent 6111c6104a
commit d9734801b7

View File

@ -393,12 +393,14 @@ def load_objects_from_file(objfilename, checktypes):
typestr += line;
continue;
match = re.match('class (\w[^:]*)(: public (\w[^{]*))?\s*{\s*',
line);
match = re.match(r'class(?:\s+V8_EXPORT(?:_PRIVATE)?)?'
r'\s+(\w[^:]*)'
r'(?:: public (\w[^{]*))?\s*{\s*',
line);
if (match):
klass = match.group(1).strip();
pklass = match.group(3);
pklass = match.group(2);
if (pklass):
pklass = pklass.strip();
klasses[klass] = { 'parent': pklass };