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

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 21 06:22:40 PST 2020


njames93 created this revision.
njames93 added reviewers: MyDeveloperDay, fodinabor, JakeMerdichAMD.
njames93 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93633

Files:
  clang/include/clang/Format/Format.h
  clang/lib/Format/Format.cpp
  clang/test/Format/error-config.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93633.313096.patch
Type: text/x-patch
Size: 4588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201221/27ec6f73/attachment.bin>


More information about the cfe-commits mailing list