Clean up the code to build successfully on macOS 85/243985/9
authorWander Lairson Costa <wander.lairson@gmail.com>
Wed, 12 Aug 2020 17:49:44 +0000 (14:49 -0300)
committerWander Lairson Costa <wander.lairson@gmail.com>
Wed, 18 Nov 2020 13:14:43 +0000 (10:14 -0300)
commit5861516316ce64d40f0ed5288ffe6a73f98f014a
treeb5da2755635a60df7c09aa57cc5b7740d70fb1da
parent444ee3f60f12a23aca07059c5e1109f26613e44e
Clean up the code to build successfully on macOS

This commit does some code cleanup to successfully build dali-core in
macOS using the Apple provided clang compiler.

The clang version shipped with macOS doesn't have the
-Wno-class-memaccess and the -Wno-cast-function-type switches, so we
test their existence before adding them to the compiler options.

Mutex now has move constructor and assigment operator, so classes with
mutexes members can use their defaults move operations. Classes holding
references cannot have a default move assigment operator.

Virtual functions overriding parent classes are now declared with the
`override` keyword.

MAXIMUM_TIME_DIFF_ALLOWED is a global internal variable nerver used, so
it was removed.

.gitignore was updated to include some artifacts from coc-nvim
extension.

Change-Id: I76201f867240a0822e7e202c2edcbfa07b2dffd6
12 files changed:
.gitignore
automated-tests/src/dali/utc-Dali-Mutex.cpp
build/tizen/CMakeLists.txt
dali/devel-api/threading/mutex.cpp
dali/devel-api/threading/mutex.h
dali/internal/event/common/property-input-impl.h
dali/internal/event/events/pan-gesture/pan-gesture-detector-impl.h
dali/internal/event/events/pan-gesture/pan-gesture-recognizer.cpp
dali/internal/event/events/ray-test.h
dali/internal/event/rendering/vertex-buffer-impl.cpp
dali/internal/update/manager/frame-callback-processor.h
dali/internal/update/manager/update-proxy-impl.h