Skip to content

Commit

Permalink
tree-wide: Unify formatting of __cplusplus ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbartell committed Apr 25, 2023
1 parent 5f19e34 commit c1980ce
Show file tree
Hide file tree
Showing 143 changed files with 958 additions and 395 deletions.
4 changes: 4 additions & 0 deletions portable/ARMv8M/non_secure/portable/GCC/ARM_CM23/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -65,8 +67,10 @@
#define portENABLE_INTERRUPTS() __asm volatile ( " cpsie i " ::: "memory" )
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -65,8 +67,10 @@
#define portENABLE_INTERRUPTS() __asm volatile ( " cpsie i " ::: "memory" )
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
4 changes: 4 additions & 0 deletions portable/ARMv8M/non_secure/portable/GCC/ARM_CM33/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -60,8 +62,10 @@
#define portENABLE_INTERRUPTS() vClearInterruptMask( 0 )
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -60,8 +62,10 @@
#define portENABLE_INTERRUPTS() vClearInterruptMask( 0 )
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
4 changes: 4 additions & 0 deletions portable/ARMv8M/non_secure/portable/GCC/ARM_CM35P/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -60,8 +62,10 @@
#define portENABLE_INTERRUPTS() vClearInterruptMask( 0 )
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
4 changes: 4 additions & 0 deletions portable/ARMv8M/non_secure/portable/GCC/ARM_CM55/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -65,8 +67,10 @@
#define portENABLE_INTERRUPTS() vClearInterruptMask( 0 )
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
4 changes: 4 additions & 0 deletions portable/ARMv8M/non_secure/portable/GCC/ARM_CM85/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -65,8 +67,10 @@
#define portENABLE_INTERRUPTS() vClearInterruptMask( 0 )
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
4 changes: 4 additions & 0 deletions portable/ARMv8M/non_secure/portable/IAR/ARM_CM23/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -71,8 +73,10 @@
#pragma diag_suppress=Pa082
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -71,8 +73,10 @@
#pragma diag_suppress=Pa082
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
4 changes: 4 additions & 0 deletions portable/ARMv8M/non_secure/portable/IAR/ARM_CM33/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -71,8 +73,10 @@
#pragma diag_suppress=Pa082
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -71,8 +73,10 @@
#pragma diag_suppress=Pa082
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
4 changes: 4 additions & 0 deletions portable/ARMv8M/non_secure/portable/IAR/ARM_CM35P/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -71,8 +73,10 @@
#pragma diag_suppress=Pa082
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
4 changes: 4 additions & 0 deletions portable/ARMv8M/non_secure/portable/IAR/ARM_CM55/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -76,8 +78,10 @@
#pragma diag_suppress=Pa082
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
4 changes: 4 additions & 0 deletions portable/ARMv8M/non_secure/portable/IAR/ARM_CM85/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

#include "portmacrocommon.h"

Expand Down Expand Up @@ -76,8 +78,10 @@
#pragma diag_suppress=Pa082
/*-----------------------------------------------------------*/

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
16 changes: 10 additions & 6 deletions portable/ARMv8M/non_secure/portmacrocommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
#ifndef PORTMACROCOMMON_H
#define PORTMACROCOMMON_H

#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

/*------------------------------------------------------------------------------
* Port specific definitions.
Expand Down Expand Up @@ -306,8 +308,10 @@
#define portMEMORY_BARRIER() __asm volatile ( "" ::: "memory" )
/*-----------------------------------------------------------*/

#ifdef __cplusplus
}
#endif
/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACROCOMMON_H */
16 changes: 10 additions & 6 deletions portable/CCS/ARM_CM3/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

/*-----------------------------------------------------------
* Port specific definitions.
Expand Down Expand Up @@ -166,8 +168,10 @@

/*-----------------------------------------------------------*/

#ifdef __cplusplus
}
#endif
/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* PORTMACRO_H */
Loading

0 comments on commit c1980ce

Please sign in to comment.