Bug 856108 - Port static analyses to clang, part 2f: use MOZ_STACK_CLASS in xpcom. r=bsmedberg

This commit is contained in:
Joshua Cranmer 2013-04-11 22:21:40 -05:00
parent c763b1352e
commit 75f02a432a
10 changed files with 14 additions and 14 deletions

View File

@ -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,

View File

@ -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)

View File

@ -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;

View File

@ -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) :

View File

@ -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) :

View File

@ -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:
/**

View File

@ -329,7 +329,7 @@ protected:
class nsCycleCollectionTraversalCallback;
struct NS_STACK_CLASS nsBaseHashtableCCTraversalData
struct MOZ_STACK_CLASS nsBaseHashtableCCTraversalData
{
nsBaseHashtableCCTraversalData(nsCycleCollectionTraversalCallback& aCallback,
const char* aName,

View File

@ -247,7 +247,7 @@ class nsCOMPtr_helper
class
NS_COM_GLUE
NS_STACK_CLASS
MOZ_STACK_CLASS
nsQueryInterface MOZ_FINAL
{
public:

View File

@ -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();

View File

@ -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;