mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 14:04:04 -05:00
Colour the AST view with the same colors as the source code * Add a couple of trivial test cases for processAstOutput * Fix the processAstOutput test, ad a test for a file with #include * Send individual lines for the AST output * Parse the source lines for AST * Register as a contributor * Factor out the LlvmAstParser into a separate file Co-authored-by: Arseniy Zaostrovnykh <arseniy.zaostrovnykh@sonarsource.com>
5 lines
90 B
C++
5 lines
90 B
C++
// Type your code here, or load an example.
|
|
int square(int num) {
|
|
return num * num;
|
|
}
|