~bigbes/tarantool

tarantool-protobuf

fb7a1e0397e682d6fb43d451edf7f46497e082ca — Eugene Blikh 2 months ago 956bf2a
c-accel: add compile_flags.txt for clangd

Without the Tarantool include path, clangd can't find <module.h> and
the entire file cascades into undefined-symbol diagnostics. The actual
make build is unaffected — only the editor experience.

List the four common Tarantool include paths (macOS Homebrew, the
Cellar-style symlink, /usr/local, /usr/include). Missing dirs are
silently ignored by the compiler, so a single file works for both
macOS and Linux.
1 files changed, 7 insertions(+), 0 deletions(-)

A runtime/pb/c/compile_flags.txt
A runtime/pb/c/compile_flags.txt => runtime/pb/c/compile_flags.txt +7 -0
@@ 0,0 1,7 @@
-std=c99
-Wall
-Wextra
-I/opt/homebrew/include/tarantool
-I/opt/homebrew/opt/tarantool/include/tarantool
-I/usr/local/include/tarantool
-I/usr/include/tarantool