Fixes compilation errors in header files with clangd

This commit is contained in:
mpilman 2019-10-16 11:30:12 -07:00 committed by Alex Miller
parent b149aee260
commit 62cef2c383
1 changed files with 2 additions and 1 deletions

View File

@ -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)