[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / lib / Tooling / Inclusions / IncludeStyle.cpp
blobda5bb00d1013a6344e001e22f75e965b0ce66147
1 //===--- IncludeStyle.cpp - Style of C++ #include directives -----*- C++-*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "clang/Tooling/Inclusions/IncludeStyle.h"
11 using clang::tooling::IncludeStyle;
13 namespace llvm {
14 namespace yaml {
16 void MappingTraits<IncludeStyle::IncludeCategory>::mapping(
17 IO &IO, IncludeStyle::IncludeCategory &Category) {
18 IO.mapOptional("Regex", Category.Regex);
19 IO.mapOptional("Priority", Category.Priority);
20 IO.mapOptional("SortPriority", Category.SortPriority);
21 IO.mapOptional("CaseSensitive", Category.RegexIsCaseSensitive);
24 void ScalarEnumerationTraits<IncludeStyle::IncludeBlocksStyle>::enumeration(
25 IO &IO, IncludeStyle::IncludeBlocksStyle &Value) {
26 IO.enumCase(Value, "Preserve", IncludeStyle::IBS_Preserve);
27 IO.enumCase(Value, "Merge", IncludeStyle::IBS_Merge);
28 IO.enumCase(Value, "Regroup", IncludeStyle::IBS_Regroup);
31 } // namespace yaml
32 } // namespace llvm