vscode-linux-kernel icon indicating copy to clipboard operation
vscode-linux-kernel copied to clipboard

Visual Studio Code project/compile_commands.json generator for Linux kernel sources and out-of-tree modules

Results 11 vscode-linux-kernel issues
Sort by recently updated
recently updated
newest added

This would give a cool devcontainer

I have clone it on remote server ,but not working

I am just curious: I just realized that you implemented `generate_compdb.py` on your own. So far I was using [gen_compile_commands.py](https://github.com/torvalds/linux/blob/master/scripts/clang-tools/gen_compile_commands.py) from upstream Is there is anything missing in the upstream...

1. OK, I've generated compile_commands.json, but what's next? How to use it? I expect it should be another way to build module/kernel from VS Code rather than running 'make' in...

Generate a .json file for every .cmd.* file, then join them. So the Python script will only handle one .cmd.* at a time, and a Makefile will run the script...

parse_cmd_file with ./kernel/.kmod.o.cmd results: command match result: {'kernel/kmod.o': 'gcc -Wp,-MD,kernel/.kmod.o.d -nostdinc -isystem /usr/lib/gcc-lib/i486-linux/3.3.5/include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -DKBUILD_BASENAME=kmod -DKBUILD_MODNAME=kmod...

I have added some comments for better understanding of code, and I have removed some unwanted space and brackets

`compile_commands.json` contains things like ```json { "directory": "/Users/tamird/src/linux", "command": "OBJTREE=/Users/tamird/src/linux rustc --edition=2021 -Zbinary_dep_depinfo=y -Astable_features -Dunsafe_op_in_unsafe_fn -Dnon_ascii_idents -Wrust_2018_idioms -Wunreachable_pub -Wmissing_docs -Wrustdoc::missing_crate_level_docs -Wclippy::all -Wclippy::mut_mut -Wclippy::needless_bitwise_bool -Wclippy::needless_continue -Wclippy::no_mangle_with_rust_abi -Wclippy::dbg_macro -Cpanic=abort -Cembed-bitcode=n -Clto=n -Cforce-unwind-tables=n...