[LLVMbugs] [Bug 22530] New: clang_codeCompleteAt doesn't work correctly for macros in 3.5/3.5.1 (worked in 3.4)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 10 10:39:22 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22530

            Bug ID: 22530
           Summary: clang_codeCompleteAt doesn't work correctly for macros
                    in 3.5/3.5.1 (worked in 3.4)
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xda at cypress.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13834
  --> http://llvm.org/bugs/attachment.cgi?id=13834&action=edit
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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150210/35c24812/attachment.html>


More information about the llvm-bugs mailing list