Skip to content

Commit 371e6d0

Browse files
authored
[NFC][hwasan] Do not include sanitizer_placement_new.h in header files (#82993)
Do not include sanitizer_placement_new.h into header files, only into source files.
1 parent 056d62b commit 371e6d0

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

compiler-rt/lib/hwasan/hwasan_report.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "sanitizer_common/sanitizer_flags.h"
2828
#include "sanitizer_common/sanitizer_internal_defs.h"
2929
#include "sanitizer_common/sanitizer_mutex.h"
30+
#include "sanitizer_common/sanitizer_placement_new.h"
3031
#include "sanitizer_common/sanitizer_report_decorator.h"
3132
#include "sanitizer_common/sanitizer_stackdepot.h"
3233
#include "sanitizer_common/sanitizer_stacktrace_printer.h"

compiler-rt/lib/hwasan/hwasan_thread_list.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "hwasan_thread_list.h"
22

3+
#include "sanitizer_common/sanitizer_placement_new.h"
34
#include "sanitizer_common/sanitizer_thread_arg_retval.h"
45

56
namespace __hwasan {

compiler-rt/lib/hwasan/hwasan_thread_list.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
#include "hwasan_allocator.h"
4848
#include "hwasan_flags.h"
4949
#include "hwasan_thread.h"
50-
#include "sanitizer_common/sanitizer_placement_new.h"
5150
#include "sanitizer_common/sanitizer_thread_arg_retval.h"
5251

5352
namespace __hwasan {

0 commit comments

Comments
 (0)