Open briandw opened 1 year ago
@llvm/issue-subscribers-clang-frontend
I believe the issue is around: https://github.com/llvm/llvm-project/blob/main/clang/lib/AST/JSONNodeDumper.cpp#L276; we're getting the presumed location so we properly handle GNU linemarkers and whatnot, but it seems we're getting an unexpected source location in this case.
The ast-dump command attributes the struct
foo
to the wrong include file when dumping to JSON.Here's the setup:
secondary.h
:primary.h
:test.c
:Normal ast-dump lists
secondary.h
:JSON ast-dump lists
primary.h
: