You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that clang_getSpellingLocation function return the same value for all nodes expanded from macro.
I'd expect that it should be inside macro declaration.
For example, see attached clang-macrolocations.zip example project, file main.cpp call macro in main function which declarations contained in inner_head.h file.
When i use command clang++ -Xclang -ast-dump main.cpp it provide me astdump.txt in which i see that it referenced to ./inner_head.h
The problem is that clang_getSpellingLocation function return the same value for all nodes expanded from macro.
I'd expect that it should be inside macro declaration.
For example, see attached clang-macrolocations.zip example project, file main.cpp call macro in main function which declarations contained in inner_head.h file.
When i use command clang++ -Xclang -ast-dump main.cpp it provide me astdump.txt in which i see that it referenced to ./inner_head.h
using clang_getSpellingLocation on the same nodes in ClangASTVisitorExample it referenced to macro expansion location.
How can i get the same location as in ast dump using javacpp=persets for clang?
clang version i used is 14.0.4
The text was updated successfully, but these errors were encountered: