clang accepts both #include and #import for includes (the latter having an implicit header guard). Let clang-format interleave both types if --sort-includes is passed. #import is used frequently in Objective-C code.
Details
Details
Diff Detail
Diff Detail
Event Timeline
| lib/Format/Format.cpp | ||
|---|---|---|
| 1735 | llvm's Regex class doesn't support non-capturing groups ((?:foo|bar)) as far as I can tell, so I changed Matches[1] to Matches[2] below. | |
llvm's Regex class doesn't support non-capturing groups ((?:foo|bar)) as far as I can tell, so I changed Matches[1] to Matches[2] below.