diff options
author | Jason Molenda <jmolenda@apple.com> | 2014-10-15 03:04:33 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2014-10-15 03:04:33 +0000 |
commit | 68c8521e71b7c6e6c95e087207c9f7fae70fd7ae (patch) | |
tree | 9074d8688a7770e596e25c211447d7cea920a5f2 /lldb/source/Host/common/FileSpec.cpp | |
parent | e9ff4c29b959f9d900b94639f6c544942b17eefc (diff) | |
download | bcm5719-llvm-68c8521e71b7c6e6c95e087207c9f7fae70fd7ae.tar.gz bcm5719-llvm-68c8521e71b7c6e6c95e087207c9f7fae70fd7ae.zip |
Ensure that m_syntax is initialized in all the FileSpec
constructors.
clang static analyzer fixit.
llvm-svn: 219768
Diffstat (limited to 'lldb/source/Host/common/FileSpec.cpp')
-rw-r--r-- | lldb/source/Host/common/FileSpec.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp index 7c5a5ccc48e..66c104503d4 100644 --- a/lldb/source/Host/common/FileSpec.cpp +++ b/lldb/source/Host/common/FileSpec.cpp @@ -167,10 +167,10 @@ FileSpec::Resolve (llvm::SmallVectorImpl<char> &path) llvm::sys::fs::make_absolute(path); } -FileSpec::FileSpec() - : m_directory() - , m_filename() - , m_syntax(FileSystem::GetNativePathSyntax()) +FileSpec::FileSpec() : + m_directory(), + m_filename(), + m_syntax(FileSystem::GetNativePathSyntax()) { } @@ -181,7 +181,8 @@ FileSpec::FileSpec() FileSpec::FileSpec(const char *pathname, bool resolve_path, PathSyntax syntax) : m_directory(), m_filename(), - m_is_resolved(false) + m_is_resolved(false), + m_syntax(syntax) { if (pathname && pathname[0]) SetFile(pathname, resolve_path, syntax); |