[llvm-bugs] [Bug 33574] New: Spurious errors when editing header files with precompiled preamble

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 23 13:34:05 PDT 2017


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

            Bug ID: 33574
           Summary: Spurious errors when editing header files with
                    precompiled preamble
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: benny.kra at gmail.com
                CC: Erik.Verbruggen at Me.com, llvm-bugs at lists.llvm.org

Since r304207 there are spurious errors when editing header files in YCM.

$ cat foo.h
#ifndef FOO_H
#define FOO_H

void foo();

#endif

$ CINDEXTEST_EDITING=1 c-index-test -test-load-source all foo.h
[...]
foo.h:1:2: error: unterminated conditional directive
Number FIX-ITs = 0
foo.h:6:2: error: #endif without #if
Number FIX-ITs = 0

-- 
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/20170623/7bc8c2e3/attachment.html>


More information about the llvm-bugs mailing list