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

            Bug ID: 39647
           Summary: SortIncludes should support "@import" lines in
                    Objective-C
           Product: clang
           Version: 7.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: nick.rand...@booking.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

At the moment, SortIncludes only handles #import and #include.

In Objective-C, modules can also be imported with @import. These are currently
ignored when sorting includes, but should also be supported.

Currently with SortIncludes:

#import "b.h"
#import "c.h"
#import <d/e.h>
@import Foundation;
#import "a.h"   <- sorting stops after first non-#include line


Should be:

#import "a.h"
#import "b.h"
#import "c.h"
#import <d/e.h>
@import Foundation;

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to