read Compilation Database
Reads the content of a character stream as a compilation database.
Note: It is the caller's responsibility to close this reader.
Return
either a compilation database, or a JSON syntax error.
Throws
in case an I/O error occurs while reading the content of a stream.
Reads the content of a JSON file as a compilation database. If the receiver is a directory, an attempt is made to read the content of its child named compile_commands.json
.
Receiver
either the compilation database JSON file, or a directory which contains a compile_commands.json
file.
Return
either a compilation database, or a JSON syntax error.
Throws
in case an I/O error occurs while reading a file.