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"
18namespace 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;
A context for a file being processed.
tooling::Range getSymbolRange() const
Get replacement range of the symbol.
const std::vector< HeaderInfo > & getHeaderInfos() const
Get header information.
StringRef getFilePath() const
Get the file path to the file being processed.
IncludeFixerContext()=default
llvm::StringRef getSymbolIdentifier() const
Get symbol name.
const std::vector< QuerySymbolInfo > & getQuerySymbolInfos() const
Get information of symbols being querid.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
std::string RawIdentifier
The raw symbol name being queried in database.
std::string ScopedQualifiers
The qualifiers of the scope in which SymbolIdentifier lookup occurs.
tooling::Range Range
The replacement range of RawIdentifier.