<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Clang-format Add Option to Disable the Usage of Tabs for IndentPPDirectives: AfterHash"
   href="https://bugs.llvm.org/show_bug.cgi?id=42169">42169</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang-format Add Option to Disable the Usage of Tabs for IndentPPDirectives: AfterHash
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Formatter
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>matthias.schaefer@versasec.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When using tabs as indentation chars, they are also applied to preprocessor
directives after the hash sign, this usually results in a formatting like this:

#if FirstLevel
#       define SecondLevel
#               include "ThirdLevel"

Compared to regular C code, the first level of indentation is offset by one
character because of the hash character. With small tab sizes, you will notice
an irritating difference between the first and second indentation level, and
second and third indentation level:

#if FirstLevel
# define SecondLevel
#   include "ThirdLevel"

This is why I would like to be able to disable the usage of tabulators (only)
for preprocessor indentations. I propose to add an option to
IndentPPDirectives:
AfterHashNoTabs, which will suppress the usage of tabs for preprocessor
indentations after hashes even if the UseTabs setting says so.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>