jerrymarino / XcodeCompilationDatabase

Generate a Compilation Database from Xcode's build log - nothing more :).
38 stars 7 forks source link

Adds quick-and-dirty escaping of spaces in CLIArgs #3

Closed AndreasVerhoeven closed 6 years ago

AndreasVerhoeven commented 6 years ago

This fixes an issue (#2) whereby using file paths with embedded spaces would have invalid "command" entries in the compile database, for files processed thru clang.

jerrymarino commented 6 years ago

@AndreasVerhoeven thank you so much for taking the time to add this - very much appreciated. The quick and dirty approach is perfect for this program!

I think it should work for mostly all cases. After some quick testing, it looks like Xcode is doing some level of processing build settings inputted by the user already ( i.e. stripping quotes )