C++
CMake
c++ source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
CPP Meta
Clang 18.1.8
Options
Source code
using namespace std::meta; #include <iostream> consteval expr log_invoke(call_expr ce) { std::meta::ostream os; os << "calling " << ce; auto res = make_operator_expr(operator_kind::comma, make_operator_expr(operator_kind::shl, ^(std::cout), make_literal_expr(os) ), ce ); return res; } [[nodiscard]] int foo(int x, int) { return x; } void test() { (%log_invoke(^(foo(1, 2)))); } int main() { test(); }
Become a Patron
Sponsor on GitHub
Donate via PayPal
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
About the author
Statistics
Changelog
Version tree