Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd056e42 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder_ndk: Add clang-format presubmit hook.

Originally, this was just done as part of the 'update.sh' script
in libbinder_ndk.

Bug: N/A
Test: manual
Change-Id: I92fca31286df2f063a4ccde70f79688a65c50b39
parent ebc738be
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ clang_format = true
[Builtin Hooks Options]
# Only turn on clang-format check for the following subfolders.
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
               libs/binder/ndk/
               libs/graphicsenv/
               libs/gui/
               libs/ui/
+1 −3
Original line number Diff line number Diff line
@@ -163,9 +163,7 @@ class ScopedAResource {
    ScopedAResource& operator=(ScopedAResource&&) = delete;

    // move-constructing is okay
    ScopedAResource(ScopedAResource&& other) : mT(std::move(other.mT)) {
      other.mT = DEFAULT;
    }
    ScopedAResource(ScopedAResource&& other) : mT(std::move(other.mT)) { other.mT = DEFAULT; }

   private:
    T mT;