Lines Matching refs:ErrorMessage
122 loadFromDirectory(StringRef Directory, std::string &ErrorMessage) override { in loadFromDirectory() argument
126 JSONCompilationDatabase::loadFromFile(JSONDatabasePath, ErrorMessage)); in loadFromDirectory()
146 std::string &ErrorMessage) { in loadFromFile() argument
150 ErrorMessage = "Error while opening JSON database: " + Result.message(); in loadFromFile()
155 if (!Database->parse(ErrorMessage)) in loadFromFile()
162 std::string &ErrorMessage) { in loadFromBuffer() argument
167 if (!Database->parse(ErrorMessage)) in loadFromBuffer()
239 bool JSONCompilationDatabase::parse(std::string &ErrorMessage) { in parse() argument
242 ErrorMessage = "Error while parsing YAML."; in parse()
247 ErrorMessage = "Error while parsing YAML."; in parse()
252 ErrorMessage = "Expected array."; in parse()
258 ErrorMessage = "Expected object."; in parse()
268 ErrorMessage = "Expected strings as key."; in parse()
275 ErrorMessage = "Expected value."; in parse()
283 ErrorMessage = "Expected sequence as value."; in parse()
286 ErrorMessage = "Expected string as value."; in parse()
296 ErrorMessage = "Only strings are allowed in 'arguments'."; in parse()
307 ErrorMessage = ("Unknown key: \"" + in parse()
313 ErrorMessage = "Missing key: \"file\"."; in parse()
317 ErrorMessage = "Missing key: \"command\" or \"arguments\"."; in parse()
321 ErrorMessage = "Missing key: \"directory\"."; in parse()