clang-format: Extend detection of the "main" #include to use the filename
Before, the first (non-system) header in a file was considered to be
the main include. This is conservative as it makes clang-format change
the #include order less often. Instead implement some basic usage of
the filename itself. With this patch, clang-format considers every
header to be a main include if the header file's basename is a prefix
to the filename the #include is in.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256148
91177308-0d34-0410-b5e6-
96231b3b80d8