Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
Signed-off-by: Anand Krishnamoorthi <[email protected]>
  • Loading branch information
anakrish committed Jan 22, 2020
1 parent 4d63ef0 commit fb3851f
Show file tree
Hide file tree
Showing 77 changed files with 96 additions and 96 deletions.
2 changes: 1 addition & 1 deletion common/argv.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.

#include <openenclave/internal/safemath.h>
#include <openenclave/internal/argv.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safemath.h>

#if defined(OE_BUILD_ENCLAVE)
#include <openenclave/corelibc/string.h>
Expand Down
2 changes: 1 addition & 1 deletion common/attest_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

#include <openenclave/attestation/plugin.h>
#include <openenclave/bits/defs.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/print.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/report.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/utils.h>
#include <stdio.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion common/cert.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.

#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/crypto/cert.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/utils.h>
#include "common.h"

Expand Down
4 changes: 2 additions & 2 deletions common/kdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// Licensed under the MIT License.

#include <openenclave/bits/result.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/bits/types.h>
#include <openenclave/internal/crypto/hmac.h>
#include <openenclave/internal/crypto/sha.h>
#include <openenclave/internal/kdf.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/utils.h>

#include "common.h"
Expand Down
2 changes: 1 addition & 1 deletion common/safecrt.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.

#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include "common.h"

oe_result_t oe_memcpy_s(
Expand Down
2 changes: 1 addition & 1 deletion common/sgx/endorsements.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

#include "endorsements.h"
#include <openenclave/bits/attestation.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/datetime.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include "../common.h"

#include "qeidentity.h"
Expand Down
2 changes: 1 addition & 1 deletion common/sgx/report.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the MIT License.

#include <openenclave/bits/defs.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/report.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/sgxtypes.h>
#include <openenclave/internal/utils.h>
#include "../common.h"
Expand Down
4 changes: 2 additions & 2 deletions common/sgx/revocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#include "revocation.h"
#include <openenclave/bits/attestation.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/crypto/cert.h>
#include <openenclave/internal/crypto/crl.h>
Expand All @@ -14,6 +12,8 @@
#include <openenclave/internal/hexdump.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/report.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/sgxcertextensions.h>
#include <openenclave/internal/thread.h>
#include <openenclave/internal/trace.h>
Expand Down
2 changes: 1 addition & 1 deletion common/sgx/sgxcertextensions.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/crypto/cert.h>
#include <openenclave/internal/crypto/ec.h>
#include <openenclave/internal/hexdump.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/sgxcertextensions.h>
#include <openenclave/internal/trace.h>
#include "../common.h"
Expand Down
2 changes: 1 addition & 1 deletion common/sgx/tcbinfo.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include "tcbinfo.h"
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/hexdump.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/trace.h>
#include <openenclave/internal/utils.h>
#include "../common.h"
Expand Down
4 changes: 2 additions & 2 deletions common/sgx/tlsverifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// Licensed under the MIT License.

#include <openenclave/bits/defs.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/cert.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/report.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/utils.h>
#include "../common/common.h"
#include "quote.h"
Expand Down
2 changes: 1 addition & 1 deletion common/sgx/verifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

#include <openenclave/attestation/plugin.h>
#include <openenclave/attestation/sgx/verifier.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/report.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/sgx/plugin.h>

#include "../common.h"
Expand Down
2 changes: 1 addition & 1 deletion enclave/asym_keys.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.

#include <openenclave/internal/safecrt.h>
#include <openenclave/corelibc/stdlib.h>
#include <openenclave/corelibc/string.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/crypto/ec.h>
#include <openenclave/internal/kdf.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/utils.h>
#include <stdlib.h>

Expand Down
2 changes: 1 addition & 1 deletion enclave/core/arena.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the MIT License.

#include "arena.h"
#include <openenclave/internal/safemath.h>
#include <openenclave/edger8r/common.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/thread.h>
#include <openenclave/internal/utils.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion enclave/core/backtrace.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.

#include <openenclave/internal/safecrt.h>
#include <openenclave/corelibc/stdio.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/backtrace.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/globals.h>
#include <openenclave/internal/print.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>

oe_result_t oe_print_backtrace(void)
{
Expand Down
2 changes: 1 addition & 1 deletion enclave/core/debugmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

#define USE_DL_PREFIX
#include "debugmalloc.h"
#include <openenclave/internal/safecrt.h>
#include <openenclave/corelibc/errno.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/backtrace.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/malloc.h>
#include <openenclave/internal/print.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/thread.h>
#include <openenclave/internal/types.h>
#include <openenclave/internal/utils.h>
Expand Down
4 changes: 2 additions & 2 deletions enclave/core/hostcalls.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.

#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/corelibc/stdio.h>
#include <openenclave/corelibc/string.h>
#include <openenclave/edger8r/enclave.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/print.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/stack_alloc.h>

#include "arena.h"
Expand Down
2 changes: 1 addition & 1 deletion enclave/core/malloc.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.

#include <openenclave/internal/safecrt.h>
#include <openenclave/corelibc/stdio.h>
#include <openenclave/corelibc/string.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/fault.h>
#include <openenclave/internal/globals.h>
#include <openenclave/internal/malloc.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/thread.h>
#include "debugmalloc.h"

Expand Down
2 changes: 1 addition & 1 deletion enclave/core/optee/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

// TODO: This file is a stub!

#include <openenclave/internal/safecrt.h>
#include <openenclave/corelibc/string.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/thread.h>

/*
Expand Down
2 changes: 1 addition & 1 deletion enclave/core/sgx/backtrace.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.

#include <openenclave/internal/safecrt.h>
#include <openenclave/corelibc/stdio.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/argv.h>
Expand All @@ -10,6 +9,7 @@
#include <openenclave/internal/globals.h>
#include <openenclave/internal/print.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include "sgx_t.h"
#include "tee_t.h"

Expand Down
4 changes: 2 additions & 2 deletions enclave/core/sgx/calls.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Licensed under the MIT License.

#include "../calls.h"
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/corelibc/stdlib.h>
#include <openenclave/corelibc/string.h>
#include <openenclave/edger8r/enclave.h>
Expand All @@ -16,6 +14,8 @@
#include <openenclave/internal/malloc.h>
#include <openenclave/internal/print.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/sgxtypes.h>
#include <openenclave/internal/thread.h>
#include <openenclave/internal/trace.h>
Expand Down
2 changes: 1 addition & 1 deletion enclave/core/sgx/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Licensed under the MIT License.

#include "cpuid.h"
#include <openenclave/internal/safecrt.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/cpuid.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include "sgx_t.h"

static uint32_t _cpuid_table[OE_CPUID_LEAF_COUNT][OE_CPUID_REG_COUNT];
Expand Down
2 changes: 1 addition & 1 deletion enclave/core/sgx/exception.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.

#include <openenclave/internal/safecrt.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/constants_x64.h>
Expand All @@ -10,6 +9,7 @@
#include <openenclave/internal/fault.h>
#include <openenclave/internal/globals.h>
#include <openenclave/internal/jump.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/sgxtypes.h>
#include <openenclave/internal/thread.h>
#include <openenclave/internal/trace.h>
Expand Down
2 changes: 1 addition & 1 deletion enclave/core/sgx/keys.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.

#include <openenclave/internal/safecrt.h>
#include <openenclave/corelibc/stdlib.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/sgxtypes.h>
#include <openenclave/internal/utils.h>
#include "asmdefs.h"
Expand Down
2 changes: 1 addition & 1 deletion enclave/core/sgx/linux/threadlocal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// Licensed under the MIT License.

#include "threadlocal.h"
#include <openenclave/internal/safecrt.h>
#include <openenclave/corelibc/stdlib.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/elf.h>
#include <openenclave/internal/globals.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/utils.h>
#include "../td.h"

Expand Down
4 changes: 2 additions & 2 deletions enclave/core/sgx/report.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
// Licensed under the MIT License.

#include "report.h"
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/bits/types.h>
#include <openenclave/corelibc/stdlib.h>
#include <openenclave/corelibc/string.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/report.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/safemath.h>
#include <openenclave/internal/sgxtypes.h>
#include <openenclave/internal/utils.h>
#include "sgx_t.h"
Expand Down
2 changes: 1 addition & 1 deletion enclave/core/sgx/td.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// Licensed under the MIT License.

#include "td.h"
#include <openenclave/internal/safecrt.h>
#include <openenclave/corelibc/string.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/fault.h>
#include <openenclave/internal/globals.h>
#include <openenclave/internal/rdrand.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/sgxtypes.h>
#include <openenclave/internal/utils.h>
#include "asmdefs.h"
Expand Down
2 changes: 1 addition & 1 deletion enclave/core/sgx/td_basic.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.

#include <openenclave/internal/safecrt.h>
#include <openenclave/corelibc/string.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/fault.h>
#include <openenclave/internal/globals.h>
#include <openenclave/internal/rdrand.h>
#include <openenclave/internal/safecrt.h>
#include <openenclave/internal/sgxtypes.h>
#include <openenclave/internal/utils.h>
#include "asmdefs.h"
Expand Down
Loading

0 comments on commit fb3851f

Please sign in to comment.