summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-04-13 19:28:16 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-04-13 19:28:16 +0000
commitf6f1def558b8425245d820c37b2c3dbfed3c3b63 (patch)
tree984370cb67d97e5b2482e94ffa4e3f78dc2ea25b
parent3fa7352fc75ed76d04340339cbf7b60d0def4a5f (diff)
downloadbcm5719-llvm-f6f1def558b8425245d820c37b2c3dbfed3c3b63.tar.gz
bcm5719-llvm-f6f1def558b8425245d820c37b2c3dbfed3c3b63.zip
[VFS] Move default values to in-class member initialization. NFC
llvm-svn: 266233
-rw-r--r--clang/lib/Basic/VirtualFileSystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp
index a44111a3885..dd41ed2651e 100644
--- a/clang/lib/Basic/VirtualFileSystem.cpp
+++ b/clang/lib/Basic/VirtualFileSystem.cpp
@@ -834,7 +834,7 @@ class RedirectingFileSystem : public vfs::FileSystem {
/// \brief Whether to perform case-sensitive comparisons.
///
/// Currently, case-insensitive matching only works correctly with ASCII.
- bool CaseSensitive;
+ bool CaseSensitive = true;
/// IsRelativeOverlay marks whether a IsExternalContentsPrefixDir path must
/// be prefixed in every 'external-contents' when reading from YAML files.
@@ -842,7 +842,7 @@ class RedirectingFileSystem : public vfs::FileSystem {
/// \brief Whether to use to use the value of 'external-contents' for the
/// names of files. This global value is overridable on a per-file basis.
- bool UseExternalNames;
+ bool UseExternalNames = true;
/// @}
/// Virtual file paths and external files could be canonicalized without "..",
@@ -859,7 +859,7 @@ class RedirectingFileSystem : public vfs::FileSystem {
private:
RedirectingFileSystem(IntrusiveRefCntPtr<FileSystem> ExternalFS)
- : ExternalFS(ExternalFS), CaseSensitive(true), UseExternalNames(true) {}
+ : ExternalFS(ExternalFS) {}
/// \brief Looks up \p Path in \c Roots.
ErrorOr<Entry *> lookupPath(const Twine &Path);
OpenPOWER on IntegriCloud