Skip to content

clang-format breaks stringify macros with IndentPPDirectives: AfterHash #56602

@nico

Description

@nico
% cat format.c
#if 1
# define __STR(x) #x
#endif

% out/gn/bin/clang-format --style="{BasedOnStyle: llvm, IndentPPDirectives: AfterHash}" format.c 
#if 1
#  define __STR(x) #  x
#endif

It shouldn't insert spaces after the # in front of x.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions