[PATCH] D13228: clang-format: Extend #include sorting functionality

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 14:50:33 PDT 2015


djasper created this revision.
djasper added a reviewer: klimek.
djasper added a subscriber: cfe-commits.
Herald added a subscriber: klimek.

Recognize main module header as well as different #include categories. This should now mimic the behavior of llvm/utils/sort_includes.py as well as clang-tools-extra/clang-tidy/llvm/IncludeOrderCheck.cpp very closely.

http://reviews.llvm.org/D13228

Files:
  include/clang/Format/Format.h
  lib/Format/Format.cpp
  tools/clang-format/ClangFormat.cpp
  unittests/Format/SortIncludesTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13228.35909.patch
Type: text/x-patch
Size: 10280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150928/247b1fb1/attachment.bin>


More information about the cfe-commits mailing list