-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
clang-formatenhancementImproving things as opposed to bug fixing, e.g. new or missing featureImproving things as opposed to bug fixing, e.g. new or missing feature
Description
clang-format Version: 13.0.
Description: AlignTrailingComments doesn't always align the block of comments.
Reproduction Steps: Format the following block of code with AlignTrailingComments option on. Notice resulting three different levels of indentation.
#define NODEFERWINDOWPOS // DeferWindowPos routines
#define NOSERVICE // All Service Controller routines, SERVICE_ equates, etc.
#define NOSYSCOMMANDS // SC_*
#define NOVIRTUALKEYCODES // VK_*
Expected Result:
#define NODEFERWINDOWPOS // DeferWindowPos routines
#define NOSERVICE // All Service Controller routines, SERVICE_ equates, etc.
#define NOSYSCOMMANDS // SC_*
#define NOVIRTUALKEYCODES // VK_*
Actual Result:
#define NODEFERWINDOWPOS // DeferWindowPos routines
#define NOSERVICE // All Service Controller routines, SERVICE_ equates, etc.
#define NOSYSCOMMANDS // SC_*
#define NOVIRTUALKEYCODES // VK_*
Metadata
Metadata
Assignees
Labels
clang-formatenhancementImproving things as opposed to bug fixing, e.g. new or missing featureImproving things as opposed to bug fixing, e.g. new or missing feature