<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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_codeCompleteAt doesn't work correctly for macros in 3.5/3.5.1 (worked in 3.4)"
   href="http://llvm.org/bugs/show_bug.cgi?id=22530">22530</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang_codeCompleteAt doesn't work correctly for macros in 3.5/3.5.1 (worked in 3.4)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.5
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>xda@cypress.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13834" name="attach_13834" title="Source files that demonstrate the problem">attachment 13834</a> <a href="attachment.cgi?id=13834&action=edit" title="Source files that demonstrate the problem">[details]</a></span>
Source files that demonstrate the problem

1. Run the following command to try to get the code completion options from
inside the main method:

clang.exe -cc1 -fsyntax-only -code-completion-macros
-code-completion-at=main.c:5:5 main.c

2. The list returned should include FOO_H that is defined in the included file
foo.h but it is not there. If you uncomment out the useless #include at the
beginning of foo.h and re-run the command it will return FOO_H.

File contents for reference:

main.c
#include "foo.h"

int main()
{

}


foo.h
//#include "other.h"

#ifndef FOO_H
#define FOO_H
#endif

other.h
//empty</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>