Reverts "Make fml/... compatible with .clang_tidy." (flutter/engine#48004)

Reverts flutter/engine#47992
Initiated by: bdero
This change reverts the following previous change:
Original Description:
Work towards https://github.com/flutter/flutter/issues/134969.

All changes were made automatically (i.e. with `--fix`).
This commit is contained in:
auto-submit[bot]
2023-11-14 00:17:26 +00:00
committed by GitHub
parent e47c5864ef
commit a934a9bcd8
7 changed files with 12 additions and 11 deletions

View File

@@ -87,7 +87,8 @@ inline RefCountedThreadSafeBase::RefCountedThreadSafeBase()
: ref_count_(1u)
#ifndef NDEBUG
,
adoption_required_(true)
adoption_required_(true),
destruction_started_(false)
#endif
{
}

View File

@@ -30,7 +30,7 @@ class WeakPtrFlag : public fml::RefCountedThreadSafe<WeakPtrFlag> {
void Invalidate();
private:
bool is_valid_ = false;
bool is_valid_;
FML_DISALLOW_COPY_AND_ASSIGN(WeakPtrFlag);
};

View File

@@ -155,7 +155,7 @@ class MessageLoopTaskQueues {
mutable std::mutex queue_mutex_;
std::map<TaskQueueId, std::unique_ptr<TaskQueueEntry>> queue_entries_;
size_t task_queue_id_counter_ = 0;
size_t task_queue_id_counter_;
std::atomic_int order_;

View File

@@ -29,7 +29,7 @@ class MessageLoopAndroid : public MessageLoopImpl {
private:
fml::UniqueObject<ALooper*, UniqueLooperTraits> looper_;
fml::UniqueFD timer_fd_;
bool running_ = false;
bool running_;
MessageLoopAndroid();

View File

@@ -59,7 +59,7 @@ class SharedThreadMerger
fml::TaskQueueId subsumed_;
fml::MessageLoopTaskQueues* task_queues_;
std::mutex mutex_;
bool enabled_ = false;
bool enabled_;
/// The |MergeWithLease| or |ExtendLeaseTo| method will record the caller
/// into this lease_term_by_caller_ map, |UnMergeNowIfLastOne|

View File

@@ -170,24 +170,24 @@ class PlatformSemaphore {
namespace fml {
Semaphore::Semaphore(uint32_t count) : impl_(new PlatformSemaphore(count)) {}
Semaphore::Semaphore(uint32_t count) : _impl(new PlatformSemaphore(count)) {}
Semaphore::~Semaphore() = default;
bool Semaphore::IsValid() const {
return impl_->IsValid();
return _impl->IsValid();
}
bool Semaphore::Wait() {
return impl_->Wait();
return _impl->Wait();
}
bool Semaphore::TryWait() {
return impl_->TryWait();
return _impl->TryWait();
}
void Semaphore::Signal() {
return impl_->Signal();
return _impl->Signal();
}
} // namespace fml

View File

@@ -78,7 +78,7 @@ class Semaphore {
void Signal();
private:
std::unique_ptr<PlatformSemaphore> impl_;
std::unique_ptr<PlatformSemaphore> _impl;
FML_DISALLOW_COPY_AND_ASSIGN(Semaphore);
};