Skip to content

Instantly share code, notes, and snippets.

@FederAndInk
Created April 30, 2022 19:14
Show Gist options
  • Save FederAndInk/951800884d81d92977c1186eb48dbe44 to your computer and use it in GitHub Desktop.
Save FederAndInk/951800884d81d92977c1186eb48dbe44 to your computer and use it in GitHub Desktop.
.ccls file for arm toolchain
%compile_commands.json
--target=arm-none-eabi
%h -x
%h c++-header
%cpp -std=c++14
%hpp
-isystem/usr/arm-none-eabi/include/c++/11.3.0
-isystem/usr/arm-none-eabi/include/c++/11.3.0/arm-none-eabi
-isystem/usr/arm-none-eabi/include/c++/11.3.0/backward
-isystem/usr/lib/gcc/arm-none-eabi/11.3.0/include
-isystem/usr/lib/gcc/arm-none-eabi/11.3.0/include-fixed
-isystem/usr/arm-none-eabi/include
@FederAndInk
Copy link
Author

default system includes generated with: $(/usr/bin/arm-none-eabi-c++ -print-prog-name=cc1plus) -v

@FederAndInk
Copy link
Author

to interpret all .h as cpp headers

%h -x
%h c++-header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment