Mercurial > hg > CbC > CbC_llvm
diff clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.h @ 173:0572611fdcc8 llvm10 llvm12
reorgnization done
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 11:55:54 +0900 |
parents | 1d019706d866 |
children | 2e18cbf3894f |
line wrap: on
line diff
--- a/clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.h Mon May 25 11:50:15 2020 +0900 +++ b/clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.h Mon May 25 11:55:54 2020 +0900 @@ -40,6 +40,10 @@ Preprocessor *ModuleExpanderPP) override final; void onEndOfTranslationUnit() override final; + /// Derived classes that override this function should call this method from + /// the overridden method. + void storeOptions(ClangTidyOptions::OptionMap &Opts) override; + /// This enum will be used in %select of the diagnostic message. /// Each value below IgnoreFailureThreshold should have an error message. enum class ShouldFixStatus { @@ -108,6 +112,13 @@ /// Add a usage of a macro if it already has a violation. void expandMacro(const Token &MacroNameTok, const MacroInfo *MI); + void addUsage(const RenamerClangTidyCheck::NamingCheckId &Decl, + SourceRange Range, SourceManager *SourceMgr = nullptr); + + /// Convenience method when the usage to be added is a NamedDecl. + void addUsage(const NamedDecl *Decl, SourceRange Range, + SourceManager *SourceMgr = nullptr); + protected: /// Overridden by derived classes, returns information about if and how a Decl /// failed the check. A 'None' result means the Decl did not fail the check. @@ -142,6 +153,7 @@ private: NamingCheckFailureMap NamingCheckFailures; + const bool AggressiveDependentMemberLookup; }; } // namespace tidy