-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to use the compilation database with clang-expand #5
Comments
It should be possible because the compilation database was really made for this, but when I tried it I ran into some difficulties. Have you tried passing the db to the |
If you run clang-expand with just -p, clang-expand complains about not enough positional parameters --- and it looks like this is coming from within clang. How does adding an option that tells clang expand to use all of the entries in the build database for the source files sound? |
You still have to pass the source file of the code you have to expand, so I think you're just missing that positional location? Try something like: const auto& sources = options.getSourcePathList();
auto& db = options.getCompilations(); Will look into it. |
If you add the positional argument, you do get further: It is reading in the compilation database --- as you can see by the debug output I've added. |
My list of source files is larger than can be passed on the command line; is there a way to use a LLVM compilation database?
The text was updated successfully, but these errors were encountered: