Fixes compilation errors in header files with clangd
This commit is contained in:
parent
b149aee260
commit
62cef2c383
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue