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(); // do_something_taking_a_long_time();
// } // }
class NS_STACK_CLASS AutoEventTracer class MOZ_STACK_CLASS AutoEventTracer
{ {
public: public:
AutoEventTracer(void * aInstance, AutoEventTracer(void * aInstance,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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