Fix presubmit issues

- Formatted util/misc/initialization_state_dcheck.h
- Included build/build_config.h file in
  util/stdlib/aligned_allocator_test.cc as it uses an
  OS_* macro.

Change-Id: I8fb67f1ae440834d1b60f390658513a341789428
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3390648
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
This commit is contained in:
Avi Drissman 2022-01-14 18:25:31 -05:00 committed by Crashpad LUCI CQ
parent b560edd484
commit 824ddb2de1
2 changed files with 10 additions and 3 deletions

View File

@ -176,11 +176,17 @@ using InitializationStateDcheck = bool[0];
// Avoid triggering warnings by repurposing these macros when DCHECKs are
// disabled.
#define INITIALIZATION_STATE_SET_INITIALIZING(initialization_state_dcheck) \
do { std::ignore = initialization_state_dcheck; } while (false)
do { \
std::ignore = initialization_state_dcheck; \
} while (false)
#define INITIALIZATION_STATE_SET_VALID(initialization_state_dcheck) \
do { std::ignore = initialization_state_dcheck; } while (false)
do { \
std::ignore = initialization_state_dcheck; \
} while (false)
#define INITIALIZATION_STATE_DCHECK_VALID(initialization_state_dcheck) \
do { std::ignore = initialization_state_dcheck; } while (false)
do { \
std::ignore = initialization_state_dcheck; \
} while (false)
#endif

View File

@ -16,6 +16,7 @@
#include <stdint.h>
#include "build/build_config.h"
#include "gtest/gtest.h"
#include "test/gtest_death.h"