diff options
author | Timur Iskhakov <iskhakovt@google.com> | 2017-08-21 17:31:23 -0700 |
---|---|---|
committer | Timur Iskhakov <iskhakovt@google.com> | 2017-08-24 14:25:27 -0700 |
commit | 33431e6cd425c6cd179080442a8616e2baa20aae (patch) | |
tree | 1846e46c1daa24b3782b642210b2bfd5ca9d26fd /Reference.h | |
parent | 4348a8590cc6ec8237b3f8cbd1fa2cdb87fe9fb9 (diff) | |
download | android_system_tools_hidl-33431e6cd425c6cd179080442a8616e2baa20aae.tar.gz android_system_tools_hidl-33431e6cd425c6cd179080442a8616e2baa20aae.tar.bz2 android_system_tools_hidl-33431e6cd425c6cd179080442a8616e2baa20aae.zip |
Build AST graph explicitly for simpler post-parsing passes
Puts all of AST parent-child dependencies into a graph.
This change also makes it able to not care about such case:
Type -> (non Type) -> Type (ex. Interface -> Method -> Type)
and to store only Type -> Type relations.
Test: hidl_test
Change-Id: Ic67d9833d9519d7bd6cbae603c556c5bd905167a
Diffstat (limited to 'Reference.h')
-rw-r--r-- | Reference.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Reference.h b/Reference.h index e774bd2..8bc952a 100644 --- a/Reference.h +++ b/Reference.h @@ -40,7 +40,8 @@ struct Reference { CHECK(type != nullptr); } - Reference(const Reference& ref) + template <class OtherT> + Reference(const Reference<OtherT>& ref) : mResolved(ref.mResolved), mFqName(ref.mFqName), mLocation(ref.mLocation) {} /* Returns true iff referred type is resolved |