9 #ifndef LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INCLUDEFIXERCONTEXT_H 10 #define LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_INCLUDEFIXERCONTEXT_H 13 #include "clang/Tooling/Core/Replacement.h" 18 namespace include_fixer {
50 std::vector<QuerySymbolInfo> QuerySymbols,
51 std::vector<find_all_symbols::SymbolInfo>
Symbols);
55 return QuerySymbolInfos.front().RawIdentifier;
60 return QuerySymbolInfos.front().Range;
67 const std::vector<HeaderInfo> &
getHeaderInfos()
const {
return HeaderInfos; }
71 return QuerySymbolInfos;
81 std::vector<QuerySymbolInfo> QuerySymbolInfos;
85 std::vector<find_all_symbols::SymbolInfo> MatchedSymbols;
88 std::vector<HeaderInfo> HeaderInfos;
94 #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.