[flang] Improve include file sorting.
authorTim Keith <tkeith@nvidia.com>
Thu, 12 Apr 2018 19:23:20 +0000 (12:23 -0700)
committerTim Keith <tkeith@nvidia.com>
Thu, 12 Apr 2018 19:23:20 +0000 (12:23 -0700)
commit6c772ac40b2aa9ac14b64bc4ffec7d8432c87491
treeef6538a7ecdc9a15f401239d69d7c1a9f8d65af9
parent11e278b83caeccf8d894b90808e5d13b3aec9796
[flang] Improve include file sorting.

Includes like "../dir/file.h" should sort after local includes.
This change fixes that and applies the new formatting.

Now the order (in reverse) is:
- system includes
- includes from llvm or clang (this is from the default IncludeCategories)
- includes of ../something
- everything else

Original-commit: flang-compiler/f18@324643d63a1842ddfea9ea2a70ebb363f9ced8cc
Reviewed-on: https://github.com/flang-compiler/f18/pull/52
12 files changed:
flang/.clang-format
flang/lib/semantics/LabelTable.h
flang/lib/semantics/ParseTreeDump.h
flang/lib/semantics/attr.cc
flang/lib/semantics/attr.h
flang/lib/semantics/make-types.cc
flang/lib/semantics/resolve-names.cc
flang/lib/semantics/scope.h
flang/lib/semantics/symbol.cc
flang/lib/semantics/type.h
flang/tools/f18/f18.cc
flang/tools/f18/test-sema.cc