mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-26 23:01:05 +08:00
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:
parent
b560edd484
commit
824ddb2de1
@ -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
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "build/build_config.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "test/gtest_death.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user