Lines Matching refs:ErrorMessage
124 StringRef Directory, std::string &ErrorMessage) { in loadFromDirectory() argument
128 JSONCompilationDatabase::loadFromFile(JSONDatabasePath, ErrorMessage)); in loadFromDirectory()
146 std::string &ErrorMessage) { in loadFromFile() argument
151 ErrorMessage = "Error while opening JSON database: " + Result.message(); in loadFromFile()
156 if (!Database->parse(ErrorMessage)) in loadFromFile()
163 std::string &ErrorMessage) { in loadFromBuffer() argument
168 if (!Database->parse(ErrorMessage)) in loadFromBuffer()
231 bool JSONCompilationDatabase::parse(std::string &ErrorMessage) { in parse() argument
234 ErrorMessage = "Error while parsing YAML."; in parse()
239 ErrorMessage = "Error while parsing YAML."; in parse()
244 ErrorMessage = "Expected array."; in parse()
252 ErrorMessage = "Expected object."; in parse()
263 ErrorMessage = "Expected value."; in parse()
269 ErrorMessage = "Expected string as value."; in parse()
275 ErrorMessage = "Expected strings as key."; in parse()
286 ErrorMessage = ("Unknown key: \"" + in parse()
292 ErrorMessage = "Missing key: \"file\"."; in parse()
296 ErrorMessage = "Missing key: \"command\"."; in parse()
300 ErrorMessage = "Missing key: \"directory\"."; in parse()