The diagnostic printer expects the LangOptions to still be alive. Give it one that...
authorNick Lewycky <nicholas@mxc.ca>
Thu, 6 Feb 2014 22:57:16 +0000 (22:57 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 6 Feb 2014 22:57:16 +0000 (22:57 +0000)
commitccf8e29060e8bfdb06ce4197167d92b09020a10e
treea0adbc6eb7ba226bfb923c28b4aa622821f3f8e6
parent7c435a5ede460ef8e060f0bcb0aba8064137f922
The diagnostic printer expects the LangOptions to still be alive. Give it one that lives at least as long as all the uses of it. This is still wrong though, we should be passing in the correct LangOpts for a given source file.

llvm-svn: 200952
clang-tools-extra/clang-tidy/ClangTidy.cpp