clangd: Disable no return statement warning for unlinked TUs

This commit is contained in:
LagoLunatic 2024-10-17 20:44:42 -04:00
parent f7d2413a42
commit f1d73f7fc7

View File

@ -1743,6 +1743,12 @@ config.progress_categories = [
]
config.progress_each_module = args.verbose
# Disable missing return type warnings for incomplete objects
for lib in config.libs:
for obj in lib["objects"]:
if not obj.completed:
obj.options["extra_clang_flags"].append("-Wno-return-type")
if args.mode == "configure":
# Write build.ninja and objdiff.json
generate_build(config)