[cfe-dev] More clang-format options please ?
Timothy Madden via cfe-dev
cfe-dev at lists.llvm.org
Thu Dec 2 15:08:58 PST 2021
Hello,
Is it possible to add a clang-format option for the indent to use inside
preprocessing directives please ? So I could use an indent of 1 for the PP,
and 4 for the rest of the language
#if defined(_DEBUG)
# include "assertions.hh"
#endif
Also is it possible please to add an option for indenting the template
header ? Similar to IndentRequires, but it would apply to the following
line, so I can write:
template <typename ElementT>
class vector
{
// ...
and:
template <typename ArgT>
ArgT max(ArgT const &a, ArgT const &b)
{
return a < b ? b : a;
}
Next, could I also break on function call and function definition
parentheses, like I can brake on braces ? So I can write:
void loadContainerFromStorage
(
string storageFileName,
Cont &container,
size_t &container_size
)
{
// ...
And then the same case for template arguments...
--
Thank you,
Timothy Madden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20211203/7a73cfb2/attachment.html>
More information about the cfe-dev
mailing list