From 62cef2c383f67161753a0696dfa219558cebe8ef Mon Sep 17 00:00:00 2001 From: mpilman Date: Wed, 16 Oct 2019 11:30:12 -0700 Subject: [PATCH] Fixes compilation errors in header files with clangd --- build/gen_compile_db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/gen_compile_db.py b/build/gen_compile_db.py index af83d82439..686fc965f9 100755 --- a/build/gen_compile_db.py +++ b/build/gen_compile_db.py @@ -39,7 +39,8 @@ with open(args.input) as f: result = [] for cmd in cmds: - cmd['command'] = cmd['command'].replace(' -DNO_INTELLISENSE ', ' ') + additional_flags = ['-Wno-unknown-attributes'] + cmd['command'] = cmd['command'].replace(' -DNO_INTELLISENSE ', ' {} '.format(' '.join(additional_flags))) if cmd['file'].endswith('actor.g.cpp'): # here we need to rewrite the rule cmd['command'] = actorCommand(cmd['command'], args.builddir, args.srcdir)