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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to