1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibCpp: Store filename in ASTNodes

As part of the position information, we now also store the filename the
ASTNode belongs to.
This commit is contained in:
Itamar 2021-02-20 12:23:53 +02:00 committed by Andreas Kling
parent c4139be461
commit d3ff82ba80
5 changed files with 86 additions and 73 deletions

View file

@ -48,7 +48,7 @@ int main(int argc, char** argv)
}
auto content = file->read_all();
StringView content_view(content);
::Cpp::Parser parser(content_view);
::Cpp::Parser parser(content_view, path);
if (tokens_mode) {
parser.print_tokens();
return 0;