From: Bruno Cardoso Lopes Date: Wed, 13 Apr 2016 19:28:16 +0000 (+0000) Subject: [VFS] Move default values to in-class member initialization. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c75624a1661a906a8cb4de7056b0119f002c586;p=clang [VFS] Move default values to in-class member initialization. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266233 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/VirtualFileSystem.cpp b/lib/Basic/VirtualFileSystem.cpp index a44111a388..dd41ed2651 100644 --- a/lib/Basic/VirtualFileSystem.cpp +++ b/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 ExternalFS) - : ExternalFS(ExternalFS), CaseSensitive(true), UseExternalNames(true) {} + : ExternalFS(ExternalFS) {} /// \brief Looks up \p Path in \c Roots. ErrorOr lookupPath(const Twine &Path);