[all-commits] [llvm/llvm-project] eb9483: [format] Add overload to parseConfiguration that a...

Nathan James via All-commits all-commits at lists.llvm.org
Wed Dec 23 04:08:48 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb9483b21053656b885f13ccfe41bfa76eb3df45
      https://github.com/llvm/llvm-project/commit/eb9483b21053656b885f13ccfe41bfa76eb3df45
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2020-12-23 (Wed, 23 Dec 2020)

  Changed paths:
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/Format.cpp
    M clang/test/Format/error-config.cpp

  Log Message:
  -----------
  [format] Add overload to parseConfiguration that accept llvm::MemoryBufferRef

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

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D93633




More information about the All-commits mailing list