blob: 2899a776fd0137509c5daf92d734869f232b2ed4 [file] [log] [blame]
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# All of IREE is in the Google style except for iree/compiler/, which follows
# mostly LLVM style (for naming/etc) but the Google formatting (because internal
# tooling has... issues).
BasedOnStyle: Google
# Some includes have specific inclusion order requirements. To prevent
# clang-format from breaking things when bucketing headers into categories we
# override the behavior here for those well-known headers.
IncludeCategories:
# We override VK_NO_PROTOTYPES so we don't pull in auto-imported symbols and
# this must always sort above any header (ours or otherwise) that may
# transitively #include <vulkan/vulkan.h>.
- Regex: 'iree/hal/vulkan/vulkan_headers.h'
Priority: -1