[llvm-bugs] [Bug 28536] New: clang_codeCompleteAt does not honor changed files on disk

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 13 04:00:54 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28536

            Bug ID: 28536
           Summary: clang_codeCompleteAt does not honor changed files on
                    disk
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nikolai.kosjar at qt.io
                CC: klimek at google.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16737
  --> https://llvm.org/bugs/attachment.cgi?id=16737&action=edit
source to reproduce and test input files

Compile the attached libclangclient.cpp in debug mode.

Run it with the attached main.cpp to re-produce the issue:

$ ./libclangclient /path/to/main.cpp
file path: /path/to/main.cpp
Completion items, initial:
  main
Completion items, then:
  main
$

Note that the initial empty file header.h is modified on disk before the second
completion request is issued. Thus, it is expected that new completion items
will be available, but that is not happening.

The run modifies header.h, so revert header.h to re-produce this output again.

-- 
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/20160713/1cc44bca/attachment.html>


More information about the llvm-bugs mailing list