Changeset View
Changeset View
Standalone View
Standalone View
clang-tools-extra/clangd/IncludeFixer.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
private: | private: | ||||
/// Attempts to recover diagnostic caused by an incomplete type \p T. | /// Attempts to recover diagnostic caused by an incomplete type \p T. | ||||
std::vector<Fix> fixIncompleteType(const Type &T) const; | std::vector<Fix> fixIncompleteType(const Type &T) const; | ||||
/// Generates header insertion fixes for all symbols. Fixes are deduplicated. | /// Generates header insertion fixes for all symbols. Fixes are deduplicated. | ||||
std::vector<Fix> fixesForSymbols(const SymbolSlab &Syms) const; | std::vector<Fix> fixesForSymbols(const SymbolSlab &Syms) const; | ||||
llvm::Optional<Fix> insertHeader(llvm::StringRef Name, | llvm::Optional<Fix> insertHeader(llvm::StringRef Name, | ||||
llvm::StringRef Symbol = "") const; | llvm::StringRef Symbol = "", | ||||
bool ViaImport = false) const; | |||||
struct UnresolvedName { | struct UnresolvedName { | ||||
std::string Name; // E.g. "X" in foo::X. | std::string Name; // E.g. "X" in foo::X. | ||||
SourceLocation Loc; // Start location of the unresolved name. | SourceLocation Loc; // Start location of the unresolved name. | ||||
std::vector<std::string> Scopes; // Namespace scopes we should search in. | std::vector<std::string> Scopes; // Namespace scopes we should search in. | ||||
}; | }; | ||||
/// Records the last unresolved name seen by Sema. | /// Records the last unresolved name seen by Sema. | ||||
Show All 34 Lines |