mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1650804 - Update clang-tidy code for new ClangTidyCheck.h header in recent clangs r=static-analysis-reviewers,andi
Ine9087fe75c
, the definition of ClangTidyCheck moved into a new header ClangTidyCheck.h. And later, in860aefd078
, ClangTidyCheck.h is no longer automatically included from ClangTidy.h. Differential Revision: https://phabricator.services.mozilla.com/D82392
This commit is contained in:
parent
e1f7ae82ed
commit
a4c2414404
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user