Skip to content

[clang-format] Multi-line macro doesn't respect ColumnLimit: 0 #161677

@KarthikNayak

Description

@KarthikNayak

I noticed that multi-line macros don't respect the ColumnLimit: 0 setting.

So the following:

#define PACK_REFS_OPTS(spaces)                                                        \
	"[--all] [--no-prune] [--auto] [--include <pattern>] [--exclude <pattern>]\n" \
	spaces "[--required]"

is always requested to be changed like:

 #define PACK_REFS_OPTS_SPACES_14 "              "
 #define PACK_REFS_OPTS_SPACES_18 "                  "
-#define PACK_REFS_OPTS(spaces)                                                        \
-	"[--all] [--no-prune] [--auto] [--include <pattern>] [--exclude <pattern>]\n" \
-	spaces "[--required]"
+#define PACK_REFS_OPTS(spaces)                                                 \
+  "[--all] [--no-prune] [--auto] [--include <pattern>] [--exclude "            \
+  "<pattern>]\n" spaces "[--required]"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions