<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/uncrustify/patches/" rel="alternate"/><link href="https://sourceforge.net/p/uncrustify/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/uncrustify/patches/</id><updated>2016-04-07T16:56:05.635000Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>#32 Do not add space when using cmt_cpp_to_c</title><link href="https://sourceforge.net/p/uncrustify/patches/32/?limit=25#28b8" rel="alternate"/><published>2016-04-07T16:56:05.635000Z</published><updated>2016-04-07T16:56:05.635000Z</updated><author><name>Guy Maurel</name><uri>https://sourceforge.net/u/guymaurel/</uri></author><id>https://sourceforge.net91fb4b92fa30f6dded5f006ccbd72e65e37c8412</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: accepted --&amp;gt; closed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#32 Do not add space when using cmt_cpp_to_c</title><link href="https://sourceforge.net/p/uncrustify/patches/32/?limit=25#9590" rel="alternate"/><published>2016-04-07T16:55:29.197000Z</published><updated>2016-04-07T16:55:29.197000Z</updated><author><name>Guy Maurel</name><uri>https://sourceforge.net/u/guymaurel/</uri></author><id>https://sourceforge.netdc37d13751dcc972c8b725b5c6e0ce38f8ec80a8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; accepted&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; Next Release&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#7 ./configure can create debuggable/profile-able binaries</title><link href="https://sourceforge.net/p/uncrustify/patches/7/?limit=25#f25c" rel="alternate"/><published>2016-04-07T16:37:52.688000Z</published><updated>2016-04-07T16:37:52.688000Z</updated><author><name>Guy Maurel</name><uri>https://sourceforge.net/u/guymaurel/</uri></author><id>https://sourceforge.netb7ecd8bb40da9197e1172db73849c82af31bcbfb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; Next Release&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#33 Add before/after options for ternary operators</title><link href="https://sourceforge.net/p/uncrustify/patches/33/?limit=25#4209" rel="alternate"/><published>2013-07-13T17:18:02.125000Z</published><updated>2013-07-13T17:18:02.125000Z</updated><author><name>Ben Gardner</name><uri>https://sourceforge.net/u/bengardner/</uri></author><id>https://sourceforge.netbc33037a5bc82cb0981605c37c1a08100c95fba8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Ben Gardner&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>Add before/after options for ternary operators</title><link href="https://sourceforge.net/p/uncrustify/patches/33/" rel="alternate"/><published>2013-06-09T01:48:53.561000Z</published><updated>2013-06-09T01:48:53.561000Z</updated><author><name>Daniel Burr</name><uri>https://sourceforge.net/u/dburr/</uri></author><id>https://sourceforge.net16ebd18ff5fea1175bc996f01d27998023e3e97c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;A common format for ternary operators is as follows:&lt;/p&gt;
&lt;p&gt;a = b? 1: 0;&lt;/p&gt;
&lt;p&gt;i.e. different spacing before and after the '?' and ':'.&lt;/p&gt;
&lt;p&gt;This patch adds the options sp_cond_before_colon/sp_cond_after_colon and sp_cond_before_question/sp_cond_after_question which can be used to override sp_cond_colon/sp_cond_question respectively.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add before/after options for ternary operators</title><link href="https://sourceforge.net/p/uncrustify/patches/33/" rel="alternate"/><published>2013-06-09T01:48:53.561000Z</published><updated>2013-06-09T01:48:53.561000Z</updated><author><name>Daniel Burr</name><uri>https://sourceforge.net/u/dburr/</uri></author><id>https://sourceforge.netfbc376afbc2b6cf4bdc450b6a68a2cb68e3ffc12</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 33 has been modified: Add before/after options for ternary operators&lt;br /&gt;
Edited By: Ben Gardner (bengardner)&lt;br /&gt;
Status updated: u'open' =&amp;gt; u'closed'&lt;br /&gt;
Owner updated: None =&amp;gt; u'bengardner'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Do not add space when using cmt_cpp_to_c</title><link href="https://sourceforge.net/p/uncrustify/patches/32/" rel="alternate"/><published>2012-03-23T14:46:31Z</published><updated>2012-03-23T14:46:31Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net17cf92109357130068881f6954bd4c1e64173789</id><summary type="html">When converting CPP comments to C uncrustify adds a space at the beginning of the C comment, eg:
//\! test
becomes:
/\* \! test

This breaks doxygen singleline comments that expect the \! to be right after the comment star.

this patch changes this behavior and gives the following output:
//\! test
becomes:
/\*\! test

I haven't spent much time in the uncrustify code, so please let me know if this is the completely wrong way of doing this.</summary></entry><entry><title>Do not add space when using cmt_cpp_to_c</title><link href="https://sourceforge.net/p/uncrustify/patches/32/" rel="alternate"/><published>2012-03-23T14:46:31Z</published><updated>2012-03-23T14:46:31Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net849e4c463c3d838964fbcd3c0b92e81633af1cd8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 32 has been modified: Do not add space when using cmt_cpp_to_c&lt;br/&gt;
Edited By: Guy Maurel (guymaurel)&lt;br/&gt;
Status updated: u'accepted' =&amp;gt; u'closed'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Do not add space when using cmt_cpp_to_c</title><link href="https://sourceforge.net/p/uncrustify/patches/32/" rel="alternate"/><published>2012-03-23T14:46:31Z</published><updated>2012-03-23T14:46:31Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net39566c63917b725ba493dc2ece40374749dcb20c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 32 has been modified: Do not add space when using cmt_cpp_to_c&lt;br/&gt;
Edited By: Guy Maurel (guymaurel)&lt;br/&gt;
Status updated: u'open' =&amp;gt; u'accepted'&lt;br/&gt;
_milestone updated: '' =&amp;gt; u'Next Release'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>handle a backslash followed by a literal newline</title><link href="https://sourceforge.net/p/uncrustify/patches/31/" rel="alternate"/><published>2011-10-02T11:10:46Z</published><updated>2011-10-02T11:10:46Z</updated><author><name>Jim Meyering</name><uri>https://sourceforge.net/u/meyering/</uri></author><id>https://sourceforge.net4cf7dbd09e4b3b1c887e16765f2f1832d081051a</id><summary type="html">Without this change, uncrustify's lexer would get confused for any C
code containing a string like this:

  f \("\
  Some text\n"\);

That led to a diagnostic like "Garbage in col 8: 5c" typically
followed by a cascade of unwarranted diagnostics.

The fix is to reset "escaped" also when handling a literal
newline or a carriage return.

Also included: a test case to exercise the bug/fix:
  tests/c.test
  tests/input/c/backslash-newline-lex.c
  tests/output/c/01060-backslash-newline-lex.c</summary></entry></feed>