gecko-dev/memory/build
Nathan Froyd e3ebda1914 Bug 1223932 - delete guard object uses from the tree; r=jwalden
CLOSED TREE

We don't need these macros anymore, for two reasons:

1. We have static analysis to provide the same sort of checks via `MOZ_RAII`
   and friends.
2. clang now warns for the "temporary that should have been a declaration" case.

The extra requirements on class construction also show up during debug tests
as performance problems.

This change was automated by using the following sed script:

```
# Remove declarations in classes.
/MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER/d
/MOZ_GUARD_OBJECT_NOTIFIER_INIT/d

# Remove individual macros, carefully.
{
  # We don't have to worry about substrings here because the closing
  # parenthesis "anchors" the match.
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM_TO_PARENT)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_PARAM_IN_IMPL)/)/g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_IN_IMPL)/)/g;

  # Remove the longer identifier first.
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT//g;
  s/MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM//g;
}

# Remove the actual include.
\@# *include "mozilla/GuardObjects.h"@d
```

and running:

```
find . -name \*.cpp -o -name \*.h | grep -v 'GuardObjects.h' |xargs sed -i -f script 2>/dev/null
mach clang-format
```

Differential Revision: https://phabricator.services.mozilla.com/D85168
2020-07-30 14:22:38 +00:00
..
Makefile.in
Mutex.h Bug 1223932 - delete guard object uses from the tree; r=jwalden 2020-07-30 14:22:38 +00:00
Utils.h Bug 1625138 - Part 16: Replace mozilla::IsIntegral with std::is_integral. r=froydnj 2020-03-28 13:57:15 +00:00
fallback.cpp
malloc_decls.h Bug 1610720 - Change moz_dispose_arena to allow to free empty arenas. r=erahm 2020-01-24 02:06:32 +00:00
moz.build
mozjemalloc.cpp Bug 1200075 - Do not avoid sqlite3 using _msize. r=froydnj 2020-06-29 16:22:50 +00:00
mozjemalloc.h
mozjemalloc_types.h Bug 1553717 - Use Randomization on all arenas in non-Content Processes. r=glandium 2020-05-13 08:31:04 +00:00
mozmemory.h
mozmemory_wrap.cpp Bug 1590624 - Define a __imp_ alias for _strdup for mingw-clang r=dmajor 2019-12-12 06:38:37 +00:00
mozmemory_wrap.h
rb.h Bug 1613011 - Clear node links when removing it from a RedBlackTree. r=njn 2020-02-04 02:05:19 +00:00
replace_malloc.h
replace_malloc_bridge.h
zone.c