<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 - [REG 7 -> 8] Completion does not offer INT_MAX from limits.h"
   href="https://bugs.llvm.org/show_bug.cgi?id=42649">42649</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[REG 7 -> 8] Completion does not offer INT_MAX from limits.h
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>libclang
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nikolai.kosjar@qt.io
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>klimek@google.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>~ % echo $T
/tmp/reproducer-macros.cpp
~ % cat -n $T
     1  #include <limits.h>
     2  
     3  int main() {}

### Test with clang-8 / trunk
~ % CINDEXTEST_EDITING=1 /usr/bin/c-index-test-8 -code-completion-at=$T:2:1  $T
| grep " INT"
zsh: done       CINDEXTEST_EDITING=1 /usr/bin/c-index-test-8
-code-completion-at=$T:2:1 $T | 
zsh: exit 1     grep --color=auto " INT"

### Test with clang-7
~ % CINDEXTEST_EDITING=1 /usr/bin/c-index-test-7 -code-completion-at=$T:2:1  $T
| grep " INT"
macro definition:{TypedText INT_MAX} (70)
macro definition:{TypedText INT_MIN} (70)
macro definition:{TypedText INT_WIDTH} (70)


Works as expected without "CINDEXTEST_EDITING=1". However, for an IDE the
effect of CINDEXTEST_EDITING=1 is crucial (preamble generation + caching
completions).</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>