[PATCH] D58731: [clang-tidy] added cppcoreguidelines-explicit-virtual-functions

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 27 14:25:34 PST 2019


alexfh added inline comments.


================
Comment at: clang-tidy/modernize/UseOverrideCheck.h:23
+      : ClangTidyCheck(Name, Context),
+        IgnoreDestructors(Options.get("IgnoreDestructors", false)) {}
   void registerMatchers(ast_matchers::MatchFinder *Finder) override;
----------------
lewmpk wrote:
> JonasToth wrote:
> > That requires additional methods for the function for the configuration to function properly. Please see other checks and implement that the same way.
> Could you elaborate? I looked at other checks and they seem to implement it the same way.
> 
> /llvm/tools/clang/tools/extra/clang-tidy/bugprone/AssertSideEffectCheck.cpp:74
> 
> ```
>     CheckFunctionCalls(Options.get("CheckFunctionCalls", false)),
> ```
>   
You need to override the `storeOptions()` method.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58731/new/

https://reviews.llvm.org/D58731





More information about the cfe-commits mailing list