This is an archive of the discontinued LLVM Phabricator instance.

[format] Add overload to parseConfiguration that accept llvm::MemoryBufferRef
ClosedPublic

Authored by njames93 on Dec 21 2020, 6:22 AM.

Details

Summary

This overload should be used for better diagnostics when parsing configurations.
Now a failure to parse will list the filename (or <command-line>) instead of just YAML.

Diff Detail

Event Timeline

njames93 requested review of this revision.Dec 21 2020, 6:22 AM
njames93 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 21 2020, 6:22 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
njames93 added inline comments.Dec 21 2020, 3:56 PM
clang/include/clang/Format/Format.h
2946–2951

I think this will only be used for test cases now, Is it wise to remove or deprecate this?

This revision is now accepted and ready to land.Dec 22 2020, 6:43 AM