Bug 1650804 - Update clang-tidy code for new ClangTidyCheck.h header in recent clangs r=static-analysis-reviewers,andi

In e9087fe75c, the definition of ClangTidyCheck moved into a new header ClangTidyCheck.h.

And later, in 860aefd078, ClangTidyCheck.h is no longer automatically included from ClangTidy.h.

Differential Revision: https://phabricator.services.mozilla.com/D82392
This commit is contained in:
David Major 2020-07-06 16:31:17 +00:00
parent e1f7ae82ed
commit a4c2414404

View File

@ -43,7 +43,11 @@ typedef ASTConsumer *ASTConsumerPtr;
// source compatible base check class called BaseCheck, and we use the
// preprocessor to decide which base class to pick.
#ifdef CLANG_TIDY
#if CLANG_VERSION_FULL >= 900
#include "../ClangTidyCheck.h"
#else
#include "../ClangTidy.h"
#endif
typedef clang::tidy::ClangTidyCheck BaseCheck;
typedef clang::tidy::ClangTidyContext ContextType;
#else