diff options
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/GTestChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/GTestChecker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/GTestChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/GTestChecker.cpp index f4308f510f0b..8d9afbe88aa8 100644 --- a/clang/lib/StaticAnalyzer/Checkers/GTestChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/GTestChecker.cpp @@ -291,8 +291,9 @@ void ento::registerGTestChecker(CheckerManager &Mgr) { Mgr.registerChecker<GTestChecker>(); } -bool ento::shouldRegisterGTestChecker(const LangOptions &LO) { +bool ento::shouldRegisterGTestChecker(const CheckerManager &mgr) { // gtest is a C++ API so there is no sense running the checker // if not compiling for C++. + const LangOptions &LO = mgr.getLangOpts(); return LO.CPlusPlus; } |