Support ObjC in IncludeInserter
authorAlexander Kornienko <alexfh@google.com>
Fri, 16 Oct 2020 02:12:13 +0000 (04:12 +0200)
committerAlexander Kornienko <alexfh@google.com>
Fri, 16 Oct 2020 02:12:32 +0000 (04:12 +0200)
commitcc175c2cc8e638462bab74e0781e06f9b6eb5017
tree146a0ab0c56afb5f58f6120e379ad729618b372d
parent6771b98c4e4d5c0bd0a78a876bd212a76ec80a24
Support ObjC in IncludeInserter

Update IncludeSorter/IncludeInserter to support objective-c google style (part 1):

1) Correctly consider .mm/.m extensions
2) Correctly categorize category headers.
3) Add support for generated files to go in a separate section of imports

Reviewed By: alexfh, gribozavr2

Patch by Joe Turner.

Differential Revision: https://reviews.llvm.org/D89276
clang-tools-extra/clang-tidy/utils/IncludeSorter.cpp
clang-tools-extra/clang-tidy/utils/IncludeSorter.h
clang-tools-extra/unittests/clang-tidy/IncludeInserterTest.cpp