This is my current sample code
#ifdef __cplusplus
extern "C"
{
#endif
typedef enum
{
BUY = 1,
SELL = 2
} OrderAction_e;
#ifdef __cplusplus
}
#endif
After I run the clang format it is changing as below.
#ifdef __cplusplus
extern "C"
{
#endif
typedef enum
{
BUY = 1,
SELL = 2
} OrderAction_e;
#ifdef __cplusplus
}
#endif
It is adding an additional two spaces for all my functions and typedefs.
Is there an option which I can use to ignore the extern C braces so that, my code looks unchanged like the first version of code I pasted above.
Following is the clang version used in my company
LLVM (http://llvm.org/):
LLVM version 3.4.2