Clang-format _Pragma("once") indent move side effect

286 views Asked by At

I think clang-format have some kind of problem with directive _Pragma("once") vs #pragma once - please see example below - namespaces indent changes depending on the pragma directive type used.

First way to use:

_Pragma("once")
#include <stdint.h>

#include "board/clock_config.h"
#include "board/pin_mux.h"
#include "fsl_uart.h"

    namespace wam {
  namespace board_1938 {

Second way:

#pragma once
#include <stdint.h>

#include "board/clock_config.h"
#include "board/pin_mux.h"
#include "fsl_uart.h"

namespace wam {
namespace board_1938 {
0

There are 0 answers