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

             Bug #: 13880
           Summary: Incorrect range of <angled> include fixit
           Product: new-bugs
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Steps to Reproduce:
In llvm/tools/clang/test/FixIt run
$ clang -fsyntax-only fixit-include.c

Actual Results:
fixit-include.c:7:10: error: 'fixit-include.h' file not found with <angled>
include; use "quotes" instead
#include <fixit-include.h> // expected-error {{'fixit-include.h' file not found
with <angled> include; use "quotes" instead}}
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "fixit-include.h"
1 error generated.

Expected Results:
fixit-include.c:7:10: error: 'fixit-include.h' file not found with <angled>
include; use "quotes" instead
#include <fixit-include.h> // expected-error {{'fixit-include.h' file not found
with <angled> include; use "quotes" instead}}
         ^~~~~~~~~~~~~~~~~
         "fixit-include.h"
1 error generated.

I.e. fixit range shouldn't go beyond right angled bracket.

Build Date & Platform:
Build 09/20/2012 (r164256) on Mac OS X 10.6.8.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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