[all-commits] [llvm/llvm-project] cc175c: Support ObjC in IncludeInserter

alexfh via All-commits all-commits at lists.llvm.org
Thu Oct 15 19:15:08 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cc175c2cc8e638462bab74e0781e06f9b6eb5017
      https://github.com/llvm/llvm-project/commit/cc175c2cc8e638462bab74e0781e06f9b6eb5017
  Author: Alexander Kornienko <alexfh at google.com>
  Date:   2020-10-16 (Fri, 16 Oct 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/utils/IncludeSorter.cpp
    M clang-tools-extra/clang-tidy/utils/IncludeSorter.h
    M clang-tools-extra/unittests/clang-tidy/IncludeInserterTest.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list