Changeset View
Changeset View
Standalone View
Standalone View
clangd/ClangdUnit.h
Show First 20 Lines • Show All 250 Lines • ▼ Show 20 Line(s) | 212 | private: | |||
---|---|---|---|---|---|
251 | /// waiting for rebuild to finish. | 251 | /// waiting for rebuild to finish. | ||
252 | std::shared_ptr<const PreambleData> LatestAvailablePreamble; | 252 | std::shared_ptr<const PreambleData> LatestAvailablePreamble; | ||
253 | /// Utility class, required by clang. | 253 | /// Utility class, required by clang. | ||
254 | std::shared_ptr<PCHContainerOperations> PCHs; | 254 | std::shared_ptr<PCHContainerOperations> PCHs; | ||
255 | /// Used for logging various messages. | 255 | /// Used for logging various messages. | ||
256 | clangd::Logger &Logger; | 256 | clangd::Logger &Logger; | ||
257 | }; | 257 | }; | ||
258 | 258 | | |||
259 | | ||||
260 | /// Get the beginning SourceLocation at a specified \p Pos. | 259 | /// Get the beginning SourceLocation at a specified \p Pos. | ||
261 | SourceLocation getBeginningOfIdentifier(ParsedAST &Unit, const Position &Pos, | 260 | SourceLocation getBeginningOfIdentifier(ParsedAST &Unit, const Position &Pos, | ||
262 | const FileEntry *FE); | 261 | const FileEntry *FE); | ||
263 | 262 | | |||
264 | /// Get definition of symbol at a specified \p Pos. | 263 | /// Get definition of symbol at a specified \p Pos. | ||
malaperle: remove? | |||||
265 | std::vector<Location> findDefinitions(ParsedAST &AST, Position Pos, | 264 | std::vector<Location> findDefinitions(ParsedAST &AST, Position Pos, | ||
266 | clangd::Logger &Logger); | 265 | clangd::Logger &Logger); | ||
267 | 266 | | |||
267 | std::vector<DocumentHighlight> | ||||
268 | findDocumentHighlights(ParsedAST &AST, Position Pos, clangd::Logger &Logger); | ||||
Done ReplyPlease clang-format the code on every submission! ilya-biryukov: Please `clang-format` the code on every submission! | |||||
269 | | ||||
268 | /// For testing/debugging purposes. Note that this method deserializes all | 270 | /// For testing/debugging purposes. Note that this method deserializes all | ||
269 | /// unserialized Decls, so use with care. | 271 | /// unserialized Decls, so use with care. | ||
270 | void dumpAST(ParsedAST &AST, llvm::raw_ostream &OS); | 272 | void dumpAST(ParsedAST &AST, llvm::raw_ostream &OS); | ||
271 | 273 | | |||
272 | } // namespace clangd | 274 | } // namespace clangd | ||
273 | } // namespace clang | 275 | } // namespace clang | ||
274 | #endif | 276 | #endif |
remove?