diff options
author | Eric Liu <ioeric@google.com> | 2018-05-30 11:51:48 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2018-05-30 11:51:48 +0000 |
commit | 4f20e9de0a25296c73f879fe228496bad8b65051 (patch) | |
tree | abcb18ebde604823648973ff3325d169458277eb /clang/lib/Tooling/Core/IncludeStyle.cpp | |
parent | 716515a51e53e619f5d07ada8de00a05e18dfe3f (diff) | |
download | bcm5719-llvm-4f20e9de0a25296c73f879fe228496bad8b65051.tar.gz bcm5719-llvm-4f20e9de0a25296c73f879fe228496bad8b65051.zip |
Reland "Move #include manipulation code to new lib/Tooling/Inclusions."
This reverts commit r332751 (i.e. reland r332720) after fixing module
build.
Differential Revision: https://reviews.llvm.org/D47068
llvm-svn: 333532
Diffstat (limited to 'clang/lib/Tooling/Core/IncludeStyle.cpp')
-rw-r--r-- | clang/lib/Tooling/Core/IncludeStyle.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/clang/lib/Tooling/Core/IncludeStyle.cpp b/clang/lib/Tooling/Core/IncludeStyle.cpp deleted file mode 100644 index 74eec481c28..00000000000 --- a/clang/lib/Tooling/Core/IncludeStyle.cpp +++ /dev/null @@ -1,32 +0,0 @@ -//===--- IncludeStyle.cpp - Style of C++ #include directives -----*- C++-*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "clang/Tooling/Core/IncludeStyle.h" - - -using clang::tooling::IncludeStyle; - -namespace llvm { -namespace yaml { - -void MappingTraits<IncludeStyle::IncludeCategory>::mapping( - IO &IO, IncludeStyle::IncludeCategory &Category) { - IO.mapOptional("Regex", Category.Regex); - IO.mapOptional("Priority", Category.Priority); -} - -void ScalarEnumerationTraits<IncludeStyle::IncludeBlocksStyle>::enumeration( - IO &IO, IncludeStyle::IncludeBlocksStyle &Value) { - IO.enumCase(Value, "Preserve", IncludeStyle::IBS_Preserve); - IO.enumCase(Value, "Merge", IncludeStyle::IBS_Merge); - IO.enumCase(Value, "Regroup", IncludeStyle::IBS_Regroup); -} - -} // namespace yaml -} // namespace llvm |