diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-07-16 15:25:05 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-07-16 15:25:05 +0000 |
commit | 94bad22c2c66f2178e0364c5f502f0225c1ede8e (patch) | |
tree | ba3911e18bd3da2f96290dcc3048287946fa5f31 /lldb/packages/Python/lldbsuite/test/expression_command/inline-namespace | |
parent | cc909812a39d26ba4bcc8aaa49096155802c4521 (diff) | |
download | bcm5719-llvm-94bad22c2c66f2178e0364c5f502f0225c1ede8e.tar.gz bcm5719-llvm-94bad22c2c66f2178e0364c5f502f0225c1ede8e.zip |
[Remarks] Simplify and refactor the RemarkParser interface
Before, everything was based on some kind of type erased parser
implementation which container a lot of boilerplate code when multiple
formats were to be supported.
This simplifies it by:
* the remark now owns its arguments
* *always* returning an error from the implementation side
* working around the way the YAML parser reports errors: catch them through
callbacks and re-insert them in a proper llvm::Error
* add a CParser wrapper that is used when implementing the C API to
avoid cluttering the C++ API with useless state
* LLVMRemarkParserGetNext now returns an object that needs to be
released to avoid leaking resources
* add a new API to dispose of a remark entry: LLVMRemarkEntryDispose
llvm-svn: 366217
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/inline-namespace')
0 files changed, 0 insertions, 0 deletions