From: Timur Tabi <timur@kernel.org>
To: cocci <cocci@systeme.lip6.fr>
Subject: [Cocci] Determining the second line indent amount?
Date: Tue, 18 Dec 2018 12:01:15 -0600 [thread overview]
Message-ID: <CAOZdJXUtZzyvw1-N6DhRwTRWfKhZCC025WGgZvbMLj0nS9FVvw@mail.gmail.com> (raw)
I want to write a Python script that will word-wrap long literal
strings. In order to do that properly, I need to know how many spaces
the parameter is indented, so that I can guarantee that the string is
wrapped at column 80. Is that information available?
Coccinelle puts long strings on their own line (in my case, it's
always the second parameter), so I think all I will need is the indent
amount that Coccinelle uses for multi-line function calls, not any
specific parameter.
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci
next reply other threads:[~2018-12-18 18:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-18 18:01 Timur Tabi [this message]
2018-12-18 18:04 ` [Cocci] Determining the second line indent amount? Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOZdJXUtZzyvw1-N6DhRwTRWfKhZCC025WGgZvbMLj0nS9FVvw@mail.gmail.com \
--to=timur@kernel.org \
--cc=cocci@systeme.lip6.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).