Generate compile_commands.json #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Option to generate compile_commands.json or compile_flags.txt
Implementing generation of these files requires a rewrite of the script since it was originally intended to generate one file.
Intended purpose of each file
Figuring out what info goes in each file
.clangd
If the passed in flags are explicitly for all files and a .clangd should be generated, then they all can be added to .clangd regardless of if we also generate a compile_commands.json.
If the passed in config data specifies file(s) for groups of flags, then there should be a key that the user puts in place of the specified file which means 'this group of flags is meant for all files' and the config data there can be placed into .clangd
compile_commands.json
If a compile_commands.json should be generated, all flags should be used to generate it.
compile_flags.txt
Similar to .clangd, any flags meant for all files should be placed in here.
Note to self: in the generic type checker implementation, __handle_optional should check for NoneType as one of the arguments and if so, handle the arguments as if it is ‘Optional[Union[…]]’
When a specified path in "include" points at a directory, it should be assumed that all of the files contained inside (none recursive?) should also be included as well.
Verify the clangd lsp is able to find references to a function in all files.
Reviewed in #8