Re: Generating compile_commands.json for GCC source code

2025-05-13 Thread Yuao Ma via Gcc
f the overall build process being tracked by bear. For now I only have less than 50 lines. Best regards, Yuao From: Sam James Sent: Wednesday, May 14, 2025 10:32 To: Yuao Ma via Gcc Cc: Yuao Ma Subject: Re: Generating compile_commands.json for GCC source code Yu

Re: Generating compile_commands.json for GCC source code

2025-05-13 Thread Sam James via Gcc
Yuao Ma via Gcc writes: > Hello GCC developers, > I am trying to generate a compile_commands.json file for the GCC source code. > This file is very useful for various development tools and IDE integrations. > Since GCC uses a Makefile-based build system, I attempted to use bear > (https://githu

Generating compile_commands.json for GCC source code

2025-05-13 Thread Yuao Ma via Gcc
Hello GCC developers, I am trying to generate a compile_commands.json file for the GCC source code. This file is very useful for various development tools and IDE integrations. Since GCC uses a Makefile-based build system, I attempted to use bear (https://github.com/rizsotto/Bear) to capture the