[PATCH] D127270: [clang-format] Add space in placement new expression
omar ahmed via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 17 02:32:26 PDT 2022
omarahmed added inline comments.
================
Comment at: clang/docs/ClangFormatStyleOptions.rst:4261
+ **AfterPlacementOperator** (``AfterPlacementOperatorStyle``) :versionbadge:`clang-format 14`
+ Defines in which cases to put a space between new/delete operators and opening parentheses.
----------------
MyDeveloperDay wrote:
> Are you making this by hand or by running tools/docs/dump_format_style.py?
I was doing it manually, as I didn't know there is a script that does that. I tried using the script but seems like it has a parsing error with this logic as it is the first time to use `enum` inside a `struct` in `format.h` file. So it seems that the parsing logic for this case needs to be added. I will try adding this parsing case to `dump_format_style.py` and add it to my next update for this patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127270/new/
https://reviews.llvm.org/D127270
More information about the cfe-commits
mailing list