summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/FormattedString.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/FormattedString.h')
-rw-r--r--clang-tools-extra/clangd/FormattedString.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/FormattedString.h b/clang-tools-extra/clangd/FormattedString.h
index 1b7e9fc7521..effd0372592 100644
--- a/clang-tools-extra/clangd/FormattedString.h
+++ b/clang-tools-extra/clangd/FormattedString.h
@@ -33,6 +33,7 @@ public:
std::string asMarkdown() const;
std::string asPlainText() const;
+ virtual bool isRuler() const { return false; }
virtual ~Block() = default;
};
@@ -82,8 +83,8 @@ class Document {
public:
/// Adds a semantical block that will be separate from others.
Paragraph &addParagraph();
- /// Inserts a vertical space into the document.
- void addSpacer();
+ /// Inserts a horizontal separator to the document.
+ void addRuler();
/// Adds a block of code. This translates to a ``` block in markdown. In plain
/// text representation, the code block will be surrounded by newlines.
void addCodeBlock(std::string Code, std::string Language = "cpp");
OpenPOWER on IntegriCloud