diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-03-11 07:00:24 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-03-11 07:00:24 +0000 |
commit | 4e4d08403ca5cfd4d558fa2936215d3a4e5a528d (patch) | |
tree | bc9bf6ce1639dc8a7ba02d0e3046ab14b5329d8c /examples | |
parent | 7c02cfeb0861278c09ba05d1b92bd2a996bbe2e0 (diff) |
Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST).
The member variable is always "LangOpts" and the member function is always "getLangOpts".
Reviewed by Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/wpa/clang-wpa.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/wpa/clang-wpa.cpp b/examples/wpa/clang-wpa.cpp index 8e29090fe7..f8a3e5cb96 100644 --- a/examples/wpa/clang-wpa.cpp +++ b/examples/wpa/clang-wpa.cpp @@ -151,16 +151,16 @@ int main(int argc, char **argv) { Opts.CheckersControlList.push_back(std::make_pair("macosx", true)); // Checks to perform for Objective-C/Objective-C++. - if (PP.getLangOptions().ObjC1) + if (PP.getLangOpts().ObjC1) Opts.CheckersControlList.push_back(std::make_pair("cocoa", true)); OwningPtr<ento::CheckerManager> checkerMgr; - checkerMgr.reset(ento::registerCheckers(Opts, PP.getLangOptions(), + checkerMgr.reset(ento::registerCheckers(Opts, PP.getLangOpts(), PP.getDiagnostics())); using namespace clang::ento; AnalysisManager AMgr(TU->getASTContext(), PP.getDiagnostics(), - PP.getLangOptions(), /* PathDiagnostic */ 0, + PP.getLangOpts(), /* PathDiagnostic */ 0, CreateRegionStoreManager, CreateRangeConstraintManager, checkerMgr.get(), &Idxer, Opts.MaxNodes, Opts.MaxLoop, @@ -172,7 +172,7 @@ int main(int argc, char **argv) { Opts.EagerlyTrimEGraph); TransferFuncs* TF = MakeCFRefCountTF(AMgr.getASTContext(), /*GC*/false, - AMgr.getLangOptions()); + AMgr.getLangOpts()); ExprEngine Eng(AMgr, TF); Eng.ExecuteWorkList(AMgr.getStackFrame(FD, TU), AMgr.getMaxNodes()); |