blob: 0a46edb3d451a272f2b6301582d9bbe666d5c03a [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
class SomeClass;
// Based on Chromium's //base/thread_annotations.h
#define GUARDED_BY(lock) __attribute__((guarded_by(lock)))
class MyClass {
// Expected rewrite: raw_ptr<SomeClass> field GUARDED_BY(lock);
SomeClass* field GUARDED_BY(lock);
int lock;
};