mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 856108 - Port static analyses to clang, part 2f: use MOZ_STACK_CLASS in xpcom. r=bsmedberg
This commit is contained in:
parent
c7aade5e1f
commit
a74766f285
@ -169,7 +169,7 @@ void Mark(uint32_t aType, void * aItem,
|
||||
//
|
||||
// do_something_taking_a_long_time();
|
||||
// }
|
||||
class NS_STACK_CLASS AutoEventTracer
|
||||
class MOZ_STACK_CLASS AutoEventTracer
|
||||
{
|
||||
public:
|
||||
AutoEventTracer(void * aInstance,
|
||||
|
@ -199,7 +199,7 @@ ArenaStrdup(const char *s, PLArenaPool *arena)
|
||||
|
||||
namespace {
|
||||
|
||||
class NS_STACK_CLASS MutexLock
|
||||
class MOZ_STACK_CLASS MutexLock
|
||||
{
|
||||
public:
|
||||
MutexLock(SafeMutex& aMutex)
|
||||
|
@ -8,8 +8,8 @@
|
||||
#ifndef mozilla_AutoRestore_h_
|
||||
#define mozilla_AutoRestore_h_
|
||||
|
||||
#include "mozilla/Attributes.h" // MOZ_STACK_CLASS
|
||||
#include "mozilla/GuardObjects.h"
|
||||
#include "nscore.h" // NS_STACK_CLASS
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
@ -26,7 +26,7 @@ namespace mozilla {
|
||||
* }
|
||||
*/
|
||||
template <class T>
|
||||
class NS_STACK_CLASS AutoRestore
|
||||
class MOZ_STACK_CLASS AutoRestore
|
||||
{
|
||||
private:
|
||||
T& mLocation;
|
||||
|
@ -83,7 +83,7 @@ private:
|
||||
* The monitor must be unlocked when instances of this class are
|
||||
* created.
|
||||
*/
|
||||
class NS_COM_GLUE NS_STACK_CLASS MonitorAutoLock
|
||||
class NS_COM_GLUE MOZ_STACK_CLASS MonitorAutoLock
|
||||
{
|
||||
public:
|
||||
MonitorAutoLock(Monitor& aMonitor) :
|
||||
@ -129,7 +129,7 @@ private:
|
||||
* The monitor must be locked by the current thread when instances of
|
||||
* this class are created.
|
||||
*/
|
||||
class NS_COM_GLUE NS_STACK_CLASS MonitorAutoUnlock
|
||||
class NS_COM_GLUE MOZ_STACK_CLASS MonitorAutoUnlock
|
||||
{
|
||||
public:
|
||||
MonitorAutoUnlock(Monitor& aMonitor) :
|
||||
|
@ -134,7 +134,7 @@ private:
|
||||
* MUCH PREFERRED to bare calls to Mutex.Lock and Unlock.
|
||||
*/
|
||||
template<typename T>
|
||||
class NS_COM_GLUE NS_STACK_CLASS BaseAutoLock
|
||||
class NS_COM_GLUE MOZ_STACK_CLASS BaseAutoLock
|
||||
{
|
||||
public:
|
||||
/**
|
||||
@ -178,7 +178,7 @@ typedef BaseAutoLock<Mutex> MutexAutoLock;
|
||||
* MUCH PREFERRED to bare calls to Mutex.Unlock and Lock.
|
||||
*/
|
||||
template<typename T>
|
||||
class NS_COM_GLUE NS_STACK_CLASS BaseAutoUnlock
|
||||
class NS_COM_GLUE MOZ_STACK_CLASS BaseAutoUnlock
|
||||
{
|
||||
public:
|
||||
BaseAutoUnlock(T& aLock MOZ_GUARD_OBJECT_NOTIFIER_PARAM) :
|
||||
|
@ -165,7 +165,7 @@ private:
|
||||
*
|
||||
* MUCH PREFERRED to bare calls to ReentrantMonitor.Enter and Exit.
|
||||
*/
|
||||
class NS_COM_GLUE NS_STACK_CLASS ReentrantMonitorAutoEnter
|
||||
class NS_COM_GLUE MOZ_STACK_CLASS ReentrantMonitorAutoEnter
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
@ -329,7 +329,7 @@ protected:
|
||||
|
||||
class nsCycleCollectionTraversalCallback;
|
||||
|
||||
struct NS_STACK_CLASS nsBaseHashtableCCTraversalData
|
||||
struct MOZ_STACK_CLASS nsBaseHashtableCCTraversalData
|
||||
{
|
||||
nsBaseHashtableCCTraversalData(nsCycleCollectionTraversalCallback& aCallback,
|
||||
const char* aName,
|
||||
|
@ -247,7 +247,7 @@ class nsCOMPtr_helper
|
||||
|
||||
class
|
||||
NS_COM_GLUE
|
||||
NS_STACK_CLASS
|
||||
MOZ_STACK_CLASS
|
||||
nsQueryInterface MOZ_FINAL
|
||||
{
|
||||
public:
|
||||
|
@ -501,7 +501,7 @@ private:
|
||||
* of the created object. You can only use this low priority IO setting within
|
||||
* the context of the current thread.
|
||||
*/
|
||||
class NS_STACK_CLASS nsAutoLowPriorityIO
|
||||
class MOZ_STACK_CLASS nsAutoLowPriorityIO
|
||||
{
|
||||
public:
|
||||
nsAutoLowPriorityIO();
|
||||
|
@ -433,7 +433,7 @@ class nsTFixedString_CharT : public nsTString_CharT
|
||||
* nsAutoString for wide characters
|
||||
* nsAutoCString for narrow characters
|
||||
*/
|
||||
class NS_STACK_CLASS nsTAutoString_CharT : public nsTFixedString_CharT
|
||||
class nsTAutoString_CharT : public nsTFixedString_CharT
|
||||
{
|
||||
public:
|
||||
|
||||
@ -595,7 +595,7 @@ class nsTXPIDLString_CharT : public nsTString_CharT
|
||||
* // ...
|
||||
* }
|
||||
*/
|
||||
class NS_STACK_CLASS nsTGetterCopies_CharT
|
||||
class MOZ_STACK_CLASS nsTGetterCopies_CharT
|
||||
{
|
||||
public:
|
||||
typedef CharT char_type;
|
||||
|
Loading…
Reference in New Issue
Block a user