Skip to content

Commit 8d41dd9

Browse files
committed
Update LSP request methods and clang-format standard
This commit updates the LSP Request class by changing the ToJSON and FromJSON methods to use the override keyword instead of virtual, ensuring proper method overriding in derived classes. Additionally, the clang-format configuration is updated to use C++11 standard instead of C++20 (which does not exist on certain versions of clang-format) * LSP/Request.h * .clang-format ** Generated by CodeLite. ** Signed-off-by: Eran Ifrah <eran@codelite.org>
1 parent 8f30833 commit 8d41dd9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ SpacesInAngles: false
4444
SpacesInContainerLiterals: true
4545
SpacesInCStyleCastParentheses: false
4646
SpacesInParentheses: false
47-
Standard: C++20
47+
Standard: C++11
4848
TabWidth: 4
4949
UseTab: Never
5050
SortIncludes: true

CodeLite/LSP/Request.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class WXDLLIMPEXP_CL Request : public LSP::MessageWithParams
2121
void SetId(int id) { this->m_id = id; }
2222
int GetId() const { return m_id; }
2323

24-
virtual JSONItem ToJSON(const wxString& name) const;
25-
virtual void FromJSON(const JSONItem& json);
24+
JSONItem ToJSON(const wxString& name) const override;
25+
void FromJSON(const JSONItem& json) override;
2626

2727
/**
2828
* @brief is this request position dependent? (i.e. the response should be displayed where the request was

0 commit comments

Comments
 (0)