You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found that certain settings like code coverage make clangd unable to parse the compilation database.
I remove some lines from the compile_commands.json:
# Remove the line `-index-store-path``
sed -i'.bak' -E 's/-index-store-path//g' "$PWD/compile_commands.json"
# Remove the line `-fcoverage-mapping /Library/Developer/Xcode/DerivedData/ZwiftApp-fvbwgpierwmunfewgneckttafcun/Index/DataStore`
# This could be a one-liner but I couldn't figure out how to do so.
sed -i'.bak' -E 's/-fcoverage-mapping//g' "$PWD/compile_commands.json"
sed -i'.bak' -E 's/[[:space:]][[:space:]]\/[^[:space:]]+\/Index\/DataStore[[:space:]]//g' "$PWD/compile_commands.json"
I use clangd for autocompletion,but the xcpretty outout compiler_json_file can not parse in clangd
The text was updated successfully, but these errors were encountered: