Skip to content

Commit

Permalink
WIP: clangd improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Sep 5, 2024
1 parent 7e36aa9 commit 6f804b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/examples/clangd.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<body>
<h2>Cpp Language Client & Clangd Language Server (Worker/Wasm)</h2>
This example has been derived from: <a href="https://github.com/guyutongxue/clangd-in-browser">clangd-in-browser</a><br>
<button type="button" id="button-start">Start</button>
<button type="button" id="button-dispose">Dispose</button>
<div id="monaco-editor-root" style="width:800px;height:600px;border:1px solid grey"></div>
Expand Down
7 changes: 5 additions & 2 deletions packages/examples/src/clangd/client/hello.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#include <print>
#include <iostream>
using namespace std;

#include "tester.h"

int main() {
std::println("Hello, {}!", "world");
cout << "Hello World!";
return 0;
}

0 comments on commit 6f804b7

Please sign in to comment.