GNU bug report logs -
#26207
CC Mode 5.32.99 (C/l); add more keywords to c-macro-names-with-semicolon
Previous Next
Full log
Message #23 received at 26207 <at> debbugs.gnu.org (full text, mbox):
Hello, Mahammed.
On Sat, Mar 25, 2017 at 20:25:24 +0530, Mohammed Sadiq wrote:
> By the way, it seems like "Q_DECLARE" "Q_DEFINE" etc. are strings. But
> in the suggested case, G_BEGIN_DECLS and G_END_DECLS are strings
> while the others are regexps like "G_DEFINE[A-Z_]*" "G_DECLARE[A-Z_]".
I hadn't actually noticed that. c-macro-names-with-semicolon can be
either a list of strings or a regular expression (but not a mixture of
the two ;-).
A regexp matching all four of the things above would look something
like:
"G_\(\(BEGIN\|END\)_DECLS\|DE\(FINE\|CLARE\)[A-Z_]*\)"
(untested) (that's assuming that there should be a "*" at the end of
"G_DEECLARE[A-Z_]"). But here one must be careful - careful that there
aren't any macro names of that form which require one explicitly to
write a semicolon at their ends.
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 8 years and 81 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.