blob: 1d3ef7819994b95426f71d8975ccddacf44a94d3 [file] [log] [blame]
Haojian Wu11e9bd22016-05-31 09:31:51 +00001//===-- IncludeFixerContext.h - Include fixer context -----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INCLUDEFIXERCONTEXT_H
11#define LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INCLUDEFIXERCONTEXT_H
12
13#include <string>
14#include <vector>
15
16namespace clang {
17namespace include_fixer {
18
19/// \brief A context for the symbol being queried.
20struct IncludeFixerContext {
21 /// \brief The symbol name.
22 std::string SymbolIdentifer;
23 /// \brief The headers which have SymbolIdentifier definitions.
24 std::vector<std::string> Headers;
25 /// \brief The insertion point for new include header.
26 unsigned FirstIncludeOffset;
27};
28
29} // namespace include_fixer
30} // namespace clang
31
32#endif // LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INCLUDEFIXERCONTEXT_H