Haojian Wu | 11e9bd2 | 2016-05-31 09:31:51 +0000 | [diff] [blame^] | 1 | //===-- 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 | |
| 16 | namespace clang { |
| 17 | namespace include_fixer { |
| 18 | |
| 19 | /// \brief A context for the symbol being queried. |
| 20 | struct 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 |