]> granicus.if.org Git - clang/commit
Added support for different VFSs in format::getStyle.
authorEric Liu <ioeric@google.com>
Thu, 24 Mar 2016 10:50:17 +0000 (10:50 +0000)
committerEric Liu <ioeric@google.com>
Thu, 24 Mar 2016 10:50:17 +0000 (10:50 +0000)
commit60fce8273c8aa07369de84ce2ea80889aefd3963
tree22ea44bf2b59c53fd7241ee89a73c398cc6b9dbd
parentcedefead18159bdf9d6c7d5cc79e2ed78ae6e984
Added support for different VFSs in format::getStyle.

Summary:
Previously, format::getStyle assumes that the given file resides in
the real file system, which prevents the use of virtual file system in testing etc.
This patch adds a parameter in format::getStyle interface so that users can specify
the right file system. By default, the file system is the real file system.

Reviewers: djasper, klimek

Subscribers: cfe-commits, klimek

Differential Revision: http://reviews.llvm.org/D18399

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264253 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Format/Format.h
lib/Format/Format.cpp
unittests/Format/FormatTest.cpp