summaryrefslogtreecommitdiffstats
path: root/tools/generate_library_loader
diff options
context:
space:
mode:
authorthakis <thakis@chromium.org>2014-10-29 15:28:53 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-29 22:29:16 +0000
commit584af40a101ba22ef6d67506eb7775f34a90fc52 (patch)
tree00a698afaa8ed2a688178763d79e4688e80f1bf2 /tools/generate_library_loader
parentb5753f5c3bcbd9871f81537c258c2ac699affef8 (diff)
downloadchromium_src-584af40a101ba22ef6d67506eb7775f34a90fc52.zip
chromium_src-584af40a101ba22ef6d67506eb7775f34a90fc52.tar.gz
chromium_src-584af40a101ba22ef6d67506eb7775f34a90fc52.tar.bz2
Use decltype instead of typeof in generate_library_loader.py
No behavior change. BUG=427584 Review URL: https://codereview.chromium.org/685203002 Cr-Commit-Position: refs/heads/master@{#301953}
Diffstat (limited to 'tools/generate_library_loader')
-rwxr-xr-xtools/generate_library_loader/generate_library_loader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/generate_library_loader/generate_library_loader.py b/tools/generate_library_loader/generate_library_loader.py
index ebf0ab1..5e9da2c 100755
--- a/tools/generate_library_loader/generate_library_loader.py
+++ b/tools/generate_library_loader/generate_library_loader.py
@@ -61,7 +61,7 @@ class %(class_name)s {
"""
-HEADER_MEMBER_TEMPLATE = """ typeof(&::%(function_name)s) %(function_name)s;
+HEADER_MEMBER_TEMPLATE = """ decltype(&::%(function_name)s) %(function_name)s;
"""
@@ -119,7 +119,7 @@ void %(class_name)s::CleanUp(bool unload) {
IMPL_MEMBER_INIT_TEMPLATE = """
#if defined(%(unique_prefix)s_DLOPEN)
%(function_name)s =
- reinterpret_cast<typeof(this->%(function_name)s)>(
+ reinterpret_cast<decltype(this->%(function_name)s)>(
dlsym(library_, "%(function_name)s"));
#endif
#if defined(%(unique_prefix)s_DT_NEEDED)