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;
};
class NS_STACK_CLASS GlobalObject
class MOZ_STACK_CLASS GlobalObject
{
public:
GlobalObject(JSContext* aCx, JSObject* aObject);
@ -65,7 +65,7 @@ private:
nsCOMPtr<nsISupports> mGlobalObjectRef;
};
class NS_STACK_CLASS WorkerGlobalObject
class MOZ_STACK_CLASS WorkerGlobalObject
{
public:
WorkerGlobalObject(JSContext* aCx, JSObject* aObject);
@ -111,7 +111,7 @@ private:
* empty string. If HasStringBuffer() returns false, call AsAString() and get
* the value from that.
*/
class NS_STACK_CLASS DOMString {
class MOZ_STACK_CLASS DOMString {
public:
DOMString()
: 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.
class AutoCloneDOMObjectSlotGuard NS_STACK_CLASS
class MOZ_STACK_CLASS AutoCloneDOMObjectSlotGuard
{
public:
AutoCloneDOMObjectSlotGuard(JSObject* aOld, JSObject* aNew)

View File

@ -134,7 +134,7 @@ protected:
JSObject* mCallback;
class NS_STACK_CLASS CallSetup
class MOZ_STACK_CLASS CallSetup
{
/**
* 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;
class TransactionPoolEventTarget : public StackBasedEventTarget
class MOZ_STACK_CLASS TransactionPoolEventTarget : public StackBasedEventTarget
{
public:
NS_DECL_NSIEVENTTARGET

View File

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

View File

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

View File

@ -472,8 +472,7 @@ private:
uint64_t mCount;
};
NS_STACK_CLASS
class AutoRemoveIndex
class MOZ_STACK_CLASS AutoRemoveIndex
{
public:
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)
: db(aDatabase), found(false)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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