Bug 856108 - Port static analyses to clang, part 2b: use MOZ_STACK_CLASS in dom. r=Ms2ger

This commit is contained in:
Joshua Cranmer 2013-04-11 22:20:18 -05:00
parent 1eb62b3971
commit 9b438430fc
14 changed files with 20 additions and 23 deletions

View File

@ -44,7 +44,7 @@ struct EnumEntry {
size_t length; size_t length;
}; };
class NS_STACK_CLASS GlobalObject class MOZ_STACK_CLASS GlobalObject
{ {
public: public:
GlobalObject(JSContext* aCx, JSObject* aObject); GlobalObject(JSContext* aCx, JSObject* aObject);
@ -65,7 +65,7 @@ private:
nsCOMPtr<nsISupports> mGlobalObjectRef; nsCOMPtr<nsISupports> mGlobalObjectRef;
}; };
class NS_STACK_CLASS WorkerGlobalObject class MOZ_STACK_CLASS WorkerGlobalObject
{ {
public: public:
WorkerGlobalObject(JSContext* aCx, JSObject* aObject); WorkerGlobalObject(JSContext* aCx, JSObject* aObject);
@ -111,7 +111,7 @@ private:
* empty string. If HasStringBuffer() returns false, call AsAString() and get * empty string. If HasStringBuffer() returns false, call AsAString() and get
* the value from that. * the value from that.
*/ */
class NS_STACK_CLASS DOMString { class MOZ_STACK_CLASS DOMString {
public: public:
DOMString() DOMString()
: mStringBuffer(nullptr) : mStringBuffer(nullptr)

View File

@ -1414,7 +1414,7 @@ NativeToString(JSContext* cx, JSObject* wrapper, JSObject* object, const char* p
} }
// Dynamically ensure that two objects don't end up with the same reserved slot. // Dynamically ensure that two objects don't end up with the same reserved slot.
class AutoCloneDOMObjectSlotGuard NS_STACK_CLASS class MOZ_STACK_CLASS AutoCloneDOMObjectSlotGuard
{ {
public: public:
AutoCloneDOMObjectSlotGuard(JSObject* aOld, JSObject* aNew) AutoCloneDOMObjectSlotGuard(JSObject* aOld, JSObject* aNew)

View File

@ -134,7 +134,7 @@ protected:
JSObject* mCallback; JSObject* mCallback;
class NS_STACK_CLASS CallSetup class MOZ_STACK_CLASS CallSetup
{ {
/** /**
* A class that performs whatever setup we need to safely make a * A class that performs whatever setup we need to safely make a

View File

@ -33,7 +33,7 @@ IDBTransaction* gCurrentTransaction = nullptr;
const uint32_t kProgressHandlerGranularity = 1000; const uint32_t kProgressHandlerGranularity = 1000;
class TransactionPoolEventTarget : public StackBasedEventTarget class MOZ_STACK_CLASS TransactionPoolEventTarget : public StackBasedEventTarget
{ {
public: public:
NS_DECL_NSIEVENTTARGET NS_DECL_NSIEVENTTARGET

View File

@ -241,20 +241,19 @@ private:
bool mDispatched; bool mDispatched;
}; };
NS_STACK_CLASS class MOZ_STACK_CLASS StackBasedEventTarget : public nsIEventTarget
class StackBasedEventTarget : public nsIEventTarget
{ {
public: public:
NS_DECL_ISUPPORTS_INHERITED NS_DECL_ISUPPORTS_INHERITED
}; };
class ImmediateRunEventTarget : public StackBasedEventTarget class MOZ_STACK_CLASS ImmediateRunEventTarget : public StackBasedEventTarget
{ {
public: public:
NS_DECL_NSIEVENTTARGET NS_DECL_NSIEVENTTARGET
}; };
class NoDispatchEventTarget : public StackBasedEventTarget class MOZ_STACK_CLASS NoDispatchEventTarget : public StackBasedEventTarget
{ {
public: public:
NS_DECL_NSIEVENTTARGET NS_DECL_NSIEVENTTARGET

View File

@ -144,8 +144,7 @@ private:
nsRefPtr<FileInfo> mFileInfo; nsRefPtr<FileInfo> mFileInfo;
}; };
NS_STACK_CLASS class MOZ_STACK_CLASS AutoRemoveObjectStore
class AutoRemoveObjectStore
{ {
public: public:
AutoRemoveObjectStore(DatabaseInfo* aInfo, const nsAString& aName) AutoRemoveObjectStore(DatabaseInfo* aInfo, const nsAString& aName)

View File

@ -472,8 +472,7 @@ private:
uint64_t mCount; uint64_t mCount;
}; };
NS_STACK_CLASS class MOZ_STACK_CLASS AutoRemoveIndex
class AutoRemoveIndex
{ {
public: public:
AutoRemoveIndex(ObjectStoreInfo* aObjectStoreInfo, AutoRemoveIndex(ObjectStoreInfo* aObjectStoreInfo,

View File

@ -418,7 +418,7 @@ TransactionThreadPool::AbortTransactionsForDatabase(IDBDatabase* aDatabase)
} }
} }
struct NS_STACK_CLASS TransactionSearchInfo struct MOZ_STACK_CLASS TransactionSearchInfo
{ {
TransactionSearchInfo(nsIOfflineStorage* aDatabase) TransactionSearchInfo(nsIOfflineStorage* aDatabase)
: db(aDatabase), found(false) : db(aDatabase), found(false)

View File

@ -362,7 +362,7 @@ OnShutdown();
* within a lexical scope, locks and unlocks the mutex used to * within a lexical scope, locks and unlocks the mutex used to
* serialize modifications to plugin async callback state. * serialize modifications to plugin async callback state.
*/ */
struct NS_STACK_CLASS AsyncCallbackAutoLock struct MOZ_STACK_CLASS AsyncCallbackAutoLock
{ {
AsyncCallbackAutoLock(); AsyncCallbackAutoLock();
~AsyncCallbackAutoLock(); ~AsyncCallbackAutoLock();
@ -389,8 +389,8 @@ protected:
// separate objects on the stack since we always want a // separate objects on the stack since we always want a
// PluginDestructionGuard where we use an NPPAutoPusher. // PluginDestructionGuard where we use an NPPAutoPusher.
class NPPAutoPusher : public NPPStack, class MOZ_STACK_CLASS NPPAutoPusher : public NPPStack,
protected PluginDestructionGuard protected PluginDestructionGuard
{ {
public: public:
NPPAutoPusher(NPP npp) NPPAutoPusher(NPP npp)

View File

@ -1171,7 +1171,7 @@ nsNPAPIPluginInstance::IsWindowless(bool* isWindowless)
return NS_OK; return NS_OK;
} }
class NS_STACK_CLASS AutoPluginLibraryCall class MOZ_STACK_CLASS AutoPluginLibraryCall
{ {
public: public:
AutoPluginLibraryCall(nsNPAPIPluginInstance* aThis) AutoPluginLibraryCall(nsNPAPIPluginInstance* aThis)

View File

@ -301,7 +301,7 @@ private:
static nsPluginHost* sInst; static nsPluginHost* sInst;
}; };
class NS_STACK_CLASS PluginDestructionGuard : protected PRCList class MOZ_STACK_CLASS PluginDestructionGuard : protected PRCList
{ {
public: public:
PluginDestructionGuard(nsNPAPIPluginInstance *aInstance) PluginDestructionGuard(nsNPAPIPluginInstance *aInstance)

View File

@ -45,7 +45,7 @@ public:
void MakePermanent(); void MakePermanent();
class NS_STACK_CLASS StackIdentifier class MOZ_STACK_CLASS StackIdentifier
{ {
public: public:
StackIdentifier(PPluginIdentifierChild* actor) StackIdentifier(PPluginIdentifierChild* actor)

View File

@ -34,7 +34,7 @@ public:
/** /**
* Holds a perhaps-temporary identifier for the current stack frame. * Holds a perhaps-temporary identifier for the current stack frame.
*/ */
class NS_STACK_CLASS StackIdentifier class MOZ_STACK_CLASS StackIdentifier
{ {
public: public:
StackIdentifier(PluginInstanceParent* inst, NPIdentifier aIdentifier); StackIdentifier(PluginInstanceParent* inst, NPIdentifier aIdentifier);

View File

@ -20,7 +20,7 @@
class nsIURI; class nsIURI;
class NS_STACK_CLASS nsJSONWriter class MOZ_STACK_CLASS nsJSONWriter
{ {
public: public:
nsJSONWriter(); nsJSONWriter();