Change constructor to make sure the ownership 51/269251/1
authorjh9216.park <jh9216.park@samsung.com>
Wed, 12 Jan 2022 04:57:00 +0000 (23:57 -0500)
committerjh9216.park <jh9216.park@samsung.com>
Wed, 12 Jan 2022 04:57:00 +0000 (23:57 -0500)
commit2444649676b00189ddbddd0e36ee84e35f93d5e2
tree362186373947270911e71313631b54e2c604fe3f
parent2eef82acdf2e333d6bc9437d515339599919a153
Change constructor to make sure the ownership

- If the input parameter is pointer type, it is difficult to know which
side to release from
- As std::unique_ptr<> is movable but not copiable, the ownership can be
moved clearly

Change-Id: I9cceb1274943f961e27a2d3798b7355c51448211
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
idlc/ast/declaration.cc
idlc/ast/declaration.h
idlc/ast/tidlc.yy
idlc/ast/tidlc_y.cpp
tests/unit_tests/declaration_unittest.cc
tests/unit_tests/interface_unittest.cc