10 #ifndef LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INCLUDEFIXERCONTEXT_H 11 #define LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INCLUDEFIXERCONTEXT_H 14 #include "clang/Tooling/Core/Replacement.h" 19 namespace include_fixer {
51 std::vector<QuerySymbolInfo> QuerySymbols,
52 std::vector<find_all_symbols::SymbolInfo> Symbols);
56 return QuerySymbolInfos.front().RawIdentifier;
61 return QuerySymbolInfos.front().Range;
68 const std::vector<HeaderInfo> &
getHeaderInfos()
const {
return HeaderInfos; }
72 return QuerySymbolInfos;
82 std::vector<QuerySymbolInfo> QuerySymbolInfos;
86 std::vector<find_all_symbols::SymbolInfo> MatchedSymbols;
89 std::vector<HeaderInfo> HeaderInfos;
95 #endif // LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INCLUDEFIXERCONTEXT_H
const std::vector< QuerySymbolInfo > & getQuerySymbolInfos() const
Get information of symbols being querid.
StringRef getFilePath() const
Get the file path to the file being processed.
A context for a file being processed.
const std::vector< HeaderInfo > & getHeaderInfos() const
Get header information.
std::string RawIdentifier
The raw symbol name being queried in database.
tooling::Range Range
The replacement range of RawIdentifier.
IncludeFixerContext()=default
llvm::StringRef getSymbolIdentifier() const
Get symbol name.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
CharSourceRange Range
SourceRange for the file name.
std::string ScopedQualifiers
The qualifiers of the scope in which SymbolIdentifier lookup occurs.
tooling::Range getSymbolRange() const
Get replacement range of the symbol.