[llvm-bugs] [Bug 39647] New: SortIncludes should support "@import" lines in Objective-C
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 13 04:41:34 PST 2018
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: unassignedclangbugs at nondot.org
Reporter: nick.randall at booking.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181113/6957e3ba/attachment.html>
More information about the llvm-bugs
mailing list