[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 15:56:13 PST 2020
njames93 added inline comments.
================
Comment at: clang/include/clang/Format/Format.h:2946-2951
+/// Like above but accepts an unnamed buffer.
+inline std::error_code parseConfiguration(StringRef Config, FormatStyle *Style,
+ bool AllowUnknownOptions = false) {
+ return parseConfiguration(llvm::MemoryBufferRef(Config, "YAML"), Style,
+ AllowUnknownOptions);
+}
----------------
I think this will only be used for test cases now, Is it wise to remove or deprecate this?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93633/new/
https://reviews.llvm.org/D93633
More information about the cfe-commits
mailing list