<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bug in Codewarrior Indentation Format in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Bug-in-Codewarrior-Indentation-Format/m-p/601301#M4920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;case 1:&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #339966;"&gt;// No Parenthesis&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp; function();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp; break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to have the same indentation as:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;case (1):&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #339966;"&gt;// Parenthesis&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp; function();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp; break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When in fact adding the parenthesis appears as:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;case (1):&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #339966;"&gt;// Parenthesis&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;break;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2017 09:59:57 GMT</pubDate>
    <dc:creator>beng_</dc:creator>
    <dc:date>2017-04-12T09:59:57Z</dc:date>
    <item>
      <title>Bug in Codewarrior Indentation Format</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Bug-in-Codewarrior-Indentation-Format/m-p/601299#M4918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless I'm doing something wrong I think I've found a bug in Code Warrior, when using Auto Indentation&lt;/P&gt;&lt;P&gt;My indentation options (in Window/Preferences/C&lt;SPAN style="font-size: 13px;"&gt;/&lt;/SPAN&gt;C++/Code Style/Formatter/Edit/Indentation) are:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2228iBAD9AA0B6D459316/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a simple switch statement (I've used a dash to indicate a space below):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;uint8_t var;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;switch (var)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;case 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;--perform_action_1();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;--break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;case 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;--perform_action_2();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;--break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want the case statement to start same at the column&amp;nbsp; as the switch statement (as above). Typing the code above produces correctly indented code. However if I add parenthesis around the case statement expression (i.e. &lt;SPAN style="color: #0000ff; font-family: courier new,courier,monospace;"&gt;case (1) :&lt;/SPAN&gt; instead of &lt;SPAN style="color: #0000ff; font-family: courier new,courier,monospace;"&gt;case 1:&lt;/SPAN&gt;)&amp;nbsp; changes the indentation to:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;uint8_t var;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;switch (var)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;case (1):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;----perform_action_1();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;case (2):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;----perform_action_2();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can't see anything in the code style formatter options that should cause adding parenthesis to result in thiis crazy indentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;is this a bug or have I done something wrong?&lt;/LI&gt;&lt;LI&gt;If it's a bug what's the process for reporting a bug?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an addendum this same issues is present in Kinetis Design Studio so the problem may be with Eclipse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 14:33:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Bug-in-Codewarrior-Indentation-Format/m-p/601299#M4918</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2017-04-11T14:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Codewarrior Indentation Format</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Bug-in-Codewarrior-Indentation-Format/m-p/601300#M4919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ben.&lt;/P&gt;&lt;P&gt;I am not sure if I fully understand your questions.&lt;/P&gt;&lt;P&gt;from my understanding, you want to set default indentation for wrapped lines. did you try this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4152i12B5E37C7844732E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 09:51:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Bug-in-Codewarrior-Indentation-Format/m-p/601300#M4919</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-04-12T09:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Codewarrior Indentation Format</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Bug-in-Codewarrior-Indentation-Format/m-p/601301#M4920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;case 1:&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #339966;"&gt;// No Parenthesis&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp; function();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp; break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to have the same indentation as:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;case (1):&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #339966;"&gt;// Parenthesis&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp; function();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp; break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When in fact adding the parenthesis appears as:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;case (1):&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #339966;"&gt;// Parenthesis&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;break;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 09:59:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Bug-in-Codewarrior-Indentation-Format/m-p/601301#M4920</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2017-04-12T09:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Codewarrior Indentation Format</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Bug-in-Codewarrior-Indentation-Format/m-p/601302#M4921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have reproduced your problem.&lt;/P&gt;&lt;P&gt;I will contact development team for it.&lt;/P&gt;&lt;P&gt;If I get any news, I will let you know.&lt;/P&gt;&lt;P&gt;Thanks for bringing the problem to our attention.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 05:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Bug-in-Codewarrior-Indentation-Format/m-p/601302#M4921</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-04-13T05:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Codewarrior Indentation Format</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Bug-in-Codewarrior-Indentation-Format/m-p/601303#M4922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 09:56:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Bug-in-Codewarrior-Indentation-Format/m-p/601303#M4922</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2017-04-13T09:56:01Z</dc:date>
    </item>
  </channel>
</rss>

