Home
last modified time | relevance | path

Searched refs:ErrorMessage (Results 1 – 25 of 107) sorted by relevance

12345

/external/clang/unittests/Tooling/
DCompilationDatabaseTest.cpp24 std::string ErrorMessage; in expectFailure() local
26 ErrorMessage)) in expectFailure()
50 std::string &ErrorMessage) { in getAllFiles() argument
52 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage)); in getAllFiles()
54 ADD_FAILURE() << ErrorMessage; in getAllFiles()
61 std::string &ErrorMessage) { in getAllCompileCommands() argument
63 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage)); in getAllCompileCommands()
65 ADD_FAILURE() << ErrorMessage; in getAllCompileCommands()
72 std::string ErrorMessage; in TEST() local
74 getAllFiles("[]", ErrorMessage)) << ErrorMessage; in TEST()
[all …]
/external/llvm-project/clang/unittests/Tooling/
DCompilationDatabaseTest.cpp28 std::string ErrorMessage; in expectFailure() local
30 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage, in expectFailure()
56 std::string &ErrorMessage, in getAllFiles() argument
59 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage, in getAllFiles()
62 ADD_FAILURE() << ErrorMessage; in getAllFiles()
70 std::string &ErrorMessage) { in getAllCompileCommands() argument
72 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage, in getAllCompileCommands()
75 ADD_FAILURE() << ErrorMessage; in getAllCompileCommands()
82 std::string ErrorMessage; in TEST() local
84 getAllFiles("[]", ErrorMessage, JSONCommandLineSyntax::Gnu)) in TEST()
[all …]
/external/clang/lib/Tooling/
DJSONCompilationDatabase.cpp122 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()
[all …]
DCompilationDatabase.cpp39 std::string &ErrorMessage) { in loadFromDirectory() argument
52 ErrorMessage = ErrorStream.str(); in loadFromDirectory()
58 std::string &ErrorMessage) { in findCompilationDatabaseFromDirectory() argument
76 ErrorMessage = ErrorStream.str(); in findCompilationDatabaseFromDirectory()
82 std::string &ErrorMessage) { in autoDetectFromSource() argument
87 findCompilationDatabaseFromDirectory(Directory, ErrorMessage); in autoDetectFromSource()
90 ErrorMessage = ("Could not auto-detect compilation database for file \"" + in autoDetectFromSource()
91 SourceFile + "\"\n" + ErrorMessage).str(); in autoDetectFromSource()
97 std::string &ErrorMessage) { in autoDetectFromDirectory() argument
101 findCompilationDatabaseFromDirectory(AbsolutePath, ErrorMessage); in autoDetectFromDirectory()
[all …]
DCommonOptionsParser.cpp128 std::string ErrorMessage; in CommonOptionsParser() local
131 CompilationDatabase::autoDetectFromDirectory(BuildPath, ErrorMessage); in CommonOptionsParser()
134 ErrorMessage); in CommonOptionsParser()
138 << ErrorMessage << "Running without flags.\n"; in CommonOptionsParser()
/external/llvm-project/clang/lib/Tooling/
DJSONCompilationDatabase.cpp166 loadFromDirectory(StringRef Directory, std::string &ErrorMessage) override { in loadFromDirectory() argument
170 JSONDatabasePath, ErrorMessage, JSONCommandLineSyntax::AutoDetect); in loadFromDirectory()
197 std::string &ErrorMessage, in loadFromFile() argument
205 ErrorMessage = "Error while opening JSON database: " + Result.message(); in loadFromFile()
210 if (!Database->parse(ErrorMessage)) in loadFromFile()
217 std::string &ErrorMessage, in loadFromBuffer() argument
223 if (!Database->parse(ErrorMessage)) in loadFromBuffer()
332 bool JSONCompilationDatabase::parse(std::string &ErrorMessage) { in parse() argument
335 ErrorMessage = "Error while parsing YAML."; in parse()
340 ErrorMessage = "Error while parsing YAML."; in parse()
[all …]
DCommonOptionsParser.cpp109 std::string ErrorMessage; in init() local
111 FixedCompilationDatabase::loadFromCommandLine(argc, argv, ErrorMessage); in init()
112 if (!ErrorMessage.empty()) in init()
113 ErrorMessage.append("\n"); in init()
114 llvm::raw_string_ostream OS(ErrorMessage); in init()
119 ErrorMessage, in init()
132 CompilationDatabase::autoDetectFromDirectory(BuildPath, ErrorMessage); in init()
135 ErrorMessage); in init()
139 << ErrorMessage << "Running without flags.\n"; in init()
DCompilationDatabase.cpp65 std::string &ErrorMessage) { in loadFromDirectory() argument
66 llvm::raw_string_ostream ErrorStream(ErrorMessage); in loadFromDirectory()
81 std::string &ErrorMessage) { in findCompilationDatabaseFromDirectory() argument
99 ErrorMessage = ErrorStream.str(); in findCompilationDatabaseFromDirectory()
105 std::string &ErrorMessage) { in autoDetectFromSource() argument
110 findCompilationDatabaseFromDirectory(Directory, ErrorMessage); in autoDetectFromSource()
113 ErrorMessage = ("Could not auto-detect compilation database for file \"" + in autoDetectFromSource()
114 SourceFile + "\"\n" + ErrorMessage).str(); in autoDetectFromSource()
120 std::string &ErrorMessage) { in autoDetectFromDirectory() argument
124 findCompilationDatabaseFromDirectory(AbsolutePath, ErrorMessage); in autoDetectFromDirectory()
[all …]
/external/rust/crates/syn/src/
Derror.rs83 messages: Vec<ErrorMessage>,
86 struct ErrorMessage { struct
135 messages: vec![ErrorMessage { in new()
162 messages: vec![ErrorMessage { in new_spanned()
196 .map(ErrorMessage::to_compile_error) in to_compile_error()
243 impl ErrorMessage { impl
288 messages: vec![ErrorMessage { in new2()
312 impl Debug for ErrorMessage { implementation
332 impl Clone for ErrorMessage { implementation
340 ErrorMessage { in clone()
[all …]
/external/llvm/lib/Target/
DTargetMachineC.cpp69 char **ErrorMessage) { in LLVMGetTargetFromTriple() argument
75 if (ErrorMessage) in LLVMGetTargetFromTriple()
76 *ErrorMessage = strdup(Error.c_str()); in LLVMGetTargetFromTriple()
180 char **ErrorMessage) { in LLVMTargetMachineEmit() argument
201 *ErrorMessage = strdup(error.c_str()); in LLVMTargetMachineEmit()
212 char* Filename, LLVMCodeGenFileType codegen, char** ErrorMessage) { in LLVMTargetMachineEmitToFile() argument
216 *ErrorMessage = strdup(EC.message().c_str()); in LLVMTargetMachineEmitToFile()
219 bool Result = LLVMTargetMachineEmit(T, M, dest, codegen, ErrorMessage); in LLVMTargetMachineEmitToFile()
225 LLVMModuleRef M, LLVMCodeGenFileType codegen, char** ErrorMessage, in LLVMTargetMachineEmitToMemoryBuffer() argument
229 bool Result = LLVMTargetMachineEmit(T, M, OStream, codegen, ErrorMessage); in LLVMTargetMachineEmitToMemoryBuffer()
/external/lzma/CPP/Common/
DCommandLineParser.cpp93 ErrorMessage = "Unknown switch:"; in ParseString()
104 ErrorMessage = "Multiple instances for switch:"; in ParseString()
113 ErrorMessage = "Too short switch:"; in ParseString()
128 ErrorMessage = "Incorrect switch postfix:"; in ParseString()
143 ErrorMessage = "Incorrect switch postfix:"; in ParseString()
157 ErrorMessage = "Too long switch:"; in ParseString()
167 ErrorMessage.Empty(); in ParseStrings()
/external/llvm-project/llvm/lib/Target/
DTargetMachineC.cpp67 char **ErrorMessage) { in LLVMGetTargetFromTriple() argument
73 if (ErrorMessage) in LLVMGetTargetFromTriple()
74 *ErrorMessage = strdup(Error.c_str()); in LLVMGetTargetFromTriple()
188 char **ErrorMessage) { in LLVMTargetMachineEmit() argument
209 *ErrorMessage = strdup(error.c_str()); in LLVMTargetMachineEmit()
220 char* Filename, LLVMCodeGenFileType codegen, char** ErrorMessage) { in LLVMTargetMachineEmitToFile() argument
224 *ErrorMessage = strdup(EC.message().c_str()); in LLVMTargetMachineEmitToFile()
227 bool Result = LLVMTargetMachineEmit(T, M, dest, codegen, ErrorMessage); in LLVMTargetMachineEmitToFile()
233 LLVMModuleRef M, LLVMCodeGenFileType codegen, char** ErrorMessage, in LLVMTargetMachineEmitToMemoryBuffer() argument
237 bool Result = LLVMTargetMachineEmit(T, M, OStream, codegen, ErrorMessage); in LLVMTargetMachineEmitToMemoryBuffer()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/
DTargetMachineC.cpp67 char **ErrorMessage) { in LLVMGetTargetFromTriple() argument
73 if (ErrorMessage) in LLVMGetTargetFromTriple()
74 *ErrorMessage = strdup(Error.c_str()); in LLVMGetTargetFromTriple()
188 char **ErrorMessage) { in LLVMTargetMachineEmit() argument
209 *ErrorMessage = strdup(error.c_str()); in LLVMTargetMachineEmit()
220 char* Filename, LLVMCodeGenFileType codegen, char** ErrorMessage) { in LLVMTargetMachineEmitToFile() argument
224 *ErrorMessage = strdup(EC.message().c_str()); in LLVMTargetMachineEmitToFile()
227 bool Result = LLVMTargetMachineEmit(T, M, dest, codegen, ErrorMessage); in LLVMTargetMachineEmitToFile()
233 LLVMModuleRef M, LLVMCodeGenFileType codegen, char** ErrorMessage, in LLVMTargetMachineEmitToMemoryBuffer() argument
237 bool Result = LLVMTargetMachineEmit(T, M, OStream, codegen, ErrorMessage); in LLVMTargetMachineEmitToMemoryBuffer()
/external/easymock/src/org/easymock/internal/
DUnorderedBehavior.java78 public List<ErrorMessage> getMessages(Invocation invocation) { in getMessages()
79 List<ErrorMessage> messages = new ArrayList<ErrorMessage>(results in getMessages()
91 ErrorMessage message = new ErrorMessage(match, entry.toString(), in getMessages()
DMocksBehavior.java133 List<ErrorMessage> messages = new ArrayList<ErrorMessage>(); in addActual()
139 List<ErrorMessage> thisListMessages = behaviorLists.get(i) in addActual()
142 for (ErrorMessage m : thisListMessages) { in addActual()
156 for (ErrorMessage m : messages) { in addActual()
184 for (ErrorMessage m : behaviorList.getMessages(null)) { in verify()
/external/doclava/src/com/google/doclava/
DErrors.java28 private static TreeSet<ErrorMessage> allErrors = new TreeSet<ErrorMessage>();
30 public static class ErrorMessage implements Comparable<ErrorMessage> { class in Errors
36 ErrorMessage(int r, Error e, SourcePositionInfo p, String m) { in ErrorMessage() method in Errors.ErrorMessage
44 public int compareTo(ErrorMessage other) { in compareTo()
121 allErrors.add(new ErrorMessage(resolvedLevel, error, where, text)); in error()
137 public static void printErrors(Set<ErrorMessage> errors) { in printErrors()
138 for (ErrorMessage m : errors) { in printErrors()
144 public static Set<ErrorMessage> getErrors() { in getErrors()
/external/lzma/CPP/7zip/Bundles/SFXSetup/
DExtractEngine.cpp35 UString ErrorMessage; member
42 ErrorMessage = kCantFindArchive; in Process2()
58 ErrorMessage = kCantOpenArchive; in Process2()
67 ErrorMessage = MyFormatNew(IDS_CANNOT_CREATE_FOLDER, in Process2()
132 errorMessage = t.ErrorMessage; in ExtractArchive()
/external/llvm-project/libclc/utils/
Dprepare-builtins.cpp38 std::string ErrorMessage; in main() local
45 ErrorMessage = ec.message(); in main()
56 ErrorMessage = ec.message(); in main()
64 if (ErrorMessage.size()) in main()
65 errs() << ErrorMessage << "\n"; in main()
/external/clang/include/clang/Tooling/
DCompilationDatabase.h94 loadFromDirectory(StringRef BuildDirectory, std::string &ErrorMessage);
101 autoDetectFromSource(StringRef SourceFile, std::string &ErrorMessage);
108 autoDetectFromDirectory(StringRef SourceDir, std::string &ErrorMessage);
152 loadFromDirectory(StringRef Directory, std::string &ErrorMessage) = 0;
DJSONCompilationDatabase.h65 loadFromFile(StringRef FilePath, std::string &ErrorMessage);
71 loadFromBuffer(StringRef DatabaseString, std::string &ErrorMessage);
100 bool parse(std::string &ErrorMessage);
/external/llvm-project/llvm/unittests/TextAPI/
DTextStubV2Tests.cpp381 std::string ErrorMessage = toString(Result.takeError()); in TEST() local
384 ErrorMessage); in TEST()
439 std::string ErrorMessage = toString(Result.takeError()); in TEST() local
442 ErrorMessage); in TEST()
455 std::string ErrorMessage = toString(Result.takeError()); in TEST() local
458 ErrorMessage); in TEST()
470 std::string ErrorMessage = toString(Result.takeError()); in TEST() local
473 ErrorMessage); in TEST()
487 std::string ErrorMessage = toString(Result.takeError()); in TEST() local
491 ErrorMessage); in TEST()
/external/llvm/include/llvm-c/
DTargetMachine.h73 char **ErrorMessage);
129 char *Filename, LLVMCodeGenFileType codegen, char **ErrorMessage);
133 LLVMCodeGenFileType codegen, char** ErrorMessage, LLVMMemoryBufferRef *OutMemBuf);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DTargetMachine.h77 char **ErrorMessage);
133 char *Filename, LLVMCodeGenFileType codegen, char **ErrorMessage);
137 LLVMCodeGenFileType codegen, char** ErrorMessage, LLVMMemoryBufferRef *OutMemBuf);
/external/llvm-project/llvm/include/llvm-c/
DTargetMachine.h77 char **ErrorMessage);
133 char *Filename, LLVMCodeGenFileType codegen, char **ErrorMessage);
137 LLVMCodeGenFileType codegen, char** ErrorMessage, LLVMMemoryBufferRef *OutMemBuf);
/external/llvm-project/clang/include/clang/Tooling/
DJSONCompilationDatabase.h68 loadFromFile(StringRef FilePath, std::string &ErrorMessage,
75 loadFromBuffer(StringRef DatabaseString, std::string &ErrorMessage,
106 bool parse(std::string &ErrorMessage);

12345