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
c763b1352e
commit
75f02a432a
@ -169,7 +169,7 @@ void Mark(uint32_t aType, void * aItem,
|
|||||||
//
|
//
|
||||||
// do_something_taking_a_long_time();
|
// do_something_taking_a_long_time();
|
||||||
// }
|
// }
|
||||||
class NS_STACK_CLASS AutoEventTracer
|
class MOZ_STACK_CLASS AutoEventTracer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoEventTracer(void * aInstance,
|
AutoEventTracer(void * aInstance,
|
||||||
|
@ -199,7 +199,7 @@ ArenaStrdup(const char *s, PLArenaPool *arena)
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
class NS_STACK_CLASS MutexLock
|
class MOZ_STACK_CLASS MutexLock
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MutexLock(SafeMutex& aMutex)
|
MutexLock(SafeMutex& aMutex)
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
#ifndef mozilla_AutoRestore_h_
|
#ifndef mozilla_AutoRestore_h_
|
||||||
#define mozilla_AutoRestore_h_
|
#define mozilla_AutoRestore_h_
|
||||||
|
|
||||||
|
#include "mozilla/Attributes.h" // MOZ_STACK_CLASS
|
||||||
#include "mozilla/GuardObjects.h"
|
#include "mozilla/GuardObjects.h"
|
||||||
#include "nscore.h" // NS_STACK_CLASS
|
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ namespace mozilla {
|
|||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
template <class T>
|
template <class T>
|
||||||
class NS_STACK_CLASS AutoRestore
|
class MOZ_STACK_CLASS AutoRestore
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
T& mLocation;
|
T& mLocation;
|
||||||
|
@ -83,7 +83,7 @@ private:
|
|||||||
* The monitor must be unlocked when instances of this class are
|
* The monitor must be unlocked when instances of this class are
|
||||||
* created.
|
* created.
|
||||||
*/
|
*/
|
||||||
class NS_COM_GLUE NS_STACK_CLASS MonitorAutoLock
|
class NS_COM_GLUE MOZ_STACK_CLASS MonitorAutoLock
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MonitorAutoLock(Monitor& aMonitor) :
|
MonitorAutoLock(Monitor& aMonitor) :
|
||||||
@ -129,7 +129,7 @@ private:
|
|||||||
* The monitor must be locked by the current thread when instances of
|
* The monitor must be locked by the current thread when instances of
|
||||||
* this class are created.
|
* this class are created.
|
||||||
*/
|
*/
|
||||||
class NS_COM_GLUE NS_STACK_CLASS MonitorAutoUnlock
|
class NS_COM_GLUE MOZ_STACK_CLASS MonitorAutoUnlock
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MonitorAutoUnlock(Monitor& aMonitor) :
|
MonitorAutoUnlock(Monitor& aMonitor) :
|
||||||
|
@ -134,7 +134,7 @@ private:
|
|||||||
* MUCH PREFERRED to bare calls to Mutex.Lock and Unlock.
|
* MUCH PREFERRED to bare calls to Mutex.Lock and Unlock.
|
||||||
*/
|
*/
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class NS_COM_GLUE NS_STACK_CLASS BaseAutoLock
|
class NS_COM_GLUE MOZ_STACK_CLASS BaseAutoLock
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
@ -178,7 +178,7 @@ typedef BaseAutoLock<Mutex> MutexAutoLock;
|
|||||||
* MUCH PREFERRED to bare calls to Mutex.Unlock and Lock.
|
* MUCH PREFERRED to bare calls to Mutex.Unlock and Lock.
|
||||||
*/
|
*/
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class NS_COM_GLUE NS_STACK_CLASS BaseAutoUnlock
|
class NS_COM_GLUE MOZ_STACK_CLASS BaseAutoUnlock
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BaseAutoUnlock(T& aLock MOZ_GUARD_OBJECT_NOTIFIER_PARAM) :
|
BaseAutoUnlock(T& aLock MOZ_GUARD_OBJECT_NOTIFIER_PARAM) :
|
||||||
|
@ -165,7 +165,7 @@ private:
|
|||||||
*
|
*
|
||||||
* MUCH PREFERRED to bare calls to ReentrantMonitor.Enter and Exit.
|
* 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:
|
public:
|
||||||
/**
|
/**
|
||||||
|
@ -329,7 +329,7 @@ protected:
|
|||||||
|
|
||||||
class nsCycleCollectionTraversalCallback;
|
class nsCycleCollectionTraversalCallback;
|
||||||
|
|
||||||
struct NS_STACK_CLASS nsBaseHashtableCCTraversalData
|
struct MOZ_STACK_CLASS nsBaseHashtableCCTraversalData
|
||||||
{
|
{
|
||||||
nsBaseHashtableCCTraversalData(nsCycleCollectionTraversalCallback& aCallback,
|
nsBaseHashtableCCTraversalData(nsCycleCollectionTraversalCallback& aCallback,
|
||||||
const char* aName,
|
const char* aName,
|
||||||
|
@ -247,7 +247,7 @@ class nsCOMPtr_helper
|
|||||||
|
|
||||||
class
|
class
|
||||||
NS_COM_GLUE
|
NS_COM_GLUE
|
||||||
NS_STACK_CLASS
|
MOZ_STACK_CLASS
|
||||||
nsQueryInterface MOZ_FINAL
|
nsQueryInterface MOZ_FINAL
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -501,7 +501,7 @@ private:
|
|||||||
* of the created object. You can only use this low priority IO setting within
|
* of the created object. You can only use this low priority IO setting within
|
||||||
* the context of the current thread.
|
* the context of the current thread.
|
||||||
*/
|
*/
|
||||||
class NS_STACK_CLASS nsAutoLowPriorityIO
|
class MOZ_STACK_CLASS nsAutoLowPriorityIO
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
nsAutoLowPriorityIO();
|
nsAutoLowPriorityIO();
|
||||||
|
@ -433,7 +433,7 @@ class nsTFixedString_CharT : public nsTString_CharT
|
|||||||
* nsAutoString for wide characters
|
* nsAutoString for wide characters
|
||||||
* nsAutoCString for narrow characters
|
* nsAutoCString for narrow characters
|
||||||
*/
|
*/
|
||||||
class NS_STACK_CLASS nsTAutoString_CharT : public nsTFixedString_CharT
|
class nsTAutoString_CharT : public nsTFixedString_CharT
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -595,7 +595,7 @@ class nsTXPIDLString_CharT : public nsTString_CharT
|
|||||||
* // ...
|
* // ...
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
class NS_STACK_CLASS nsTGetterCopies_CharT
|
class MOZ_STACK_CLASS nsTGetterCopies_CharT
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef CharT char_type;
|
typedef CharT char_type;
|
||||||
|
Loading…
Reference in New Issue
Block a user