Closed zwyyy456 closed 1 year ago
My code is as follows:
struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode() : val(0), left(nullptr), right(nullptr) {} TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {} };
However, lsp-clangd shows that nullptr is an undeclared identifier. It seems that lsp-clangd checks the code based on c++98, how to change the standard to c++17?
See https://github.com/sublimelsp/LSP-clangd#usage
My code is as follows:
However, lsp-clangd shows that nullptr is an undeclared identifier. It seems that lsp-clangd checks the code based on c++98, how to change the standard to c++17?