What can clang-repl do

I can’t seem to run std::cout << "Hello world" on a REPL session. Is it possible to run anything useful on it (rather than just defining/declaring)? I couldn’t find any directives for code execution (other than %quit, %undo)

I’m not expecting feature parity with xeus-cling, just wanted to see if it’s useful for playing with C++20.

Apologies if I missed anything obvious.

clang-repl> #include <iostream>
clang-repl> std::cout << "Hello world"
In file included from <<< inputs >>>:1:
input_line_1:1:6: error: no type named 'cout' in namespace 'std'
std::cout << "Hello world"
input_line_1:1:11: error: expected unqualified-id
std::cout << "Hello world"
error: Parsing failed.
root@952072f39a48:/# clang-repl-15 --version
Debian LLVM version 15.0.5
  Optimized build.
  Default target: x86_64-pc-linux-gnu
  Host CPU: skylake-avx512

Hi, clang-repl is still in its early stage and there’s a lot of work to do, so it doesn’t surprise me if you can’t even print hello world using std::cout (But printf("Hello, world") actually works :grin:)