This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show (first): | |
jq -r '(.[0].arguments | join(" ")) + " PWD=" + .[0].directory' compile_commands.json | |
Show (by file, all args): | |
jq -r '(.[] | select(.file | endswith("dir/file.c"))) | .arguments | join(" ")' compile_commands.json | |
Show (by file, filtered args): | |
jq -r '(.[] | select(.file | endswith("dir/file.c"))) | .arguments[] | select(startswith("-m"))' compile_commands.json | |
Run (first, better): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Get the newest version from https://gist.github.com/Str1ker17/3addcd2c768bc96fd7c1487594eae582 */ | |
#pragma once | |
/* | |
* Preparations to enter full GCC mode | |
*/ | |
// ensure we completely hid IDE identity | |
#undef _WIN32 |