[clang-tools-extra] r202710 - Normalized the usage of override in the doc.
Alexander Kornienko
alexfh at google.com
Mon Mar 3 05:36:30 PST 2014
Author: alexfh
Date: Mon Mar 3 07:36:30 2014
New Revision: 202710
URL: http://llvm.org/viewvc/llvm-project?rev=202710&view=rev
Log:
Normalized the usage of override in the doc.
Modified:
clang-tools-extra/trunk/docs/clang-tidy.rst
Modified: clang-tools-extra/trunk/docs/clang-tidy.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy.rst?rev=202710&r1=202709&r2=202710&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy.rst Mon Mar 3 07:36:30 2014
@@ -215,8 +215,8 @@ In this case we need to override two met
...
class ExplicitConstructorCheck : public ClangTidyCheck {
public:
- void registerMatchers(ast_matchers::MatchFinder *Finder);
- void check(ast_matchers::MatchFinder::MatchResult &Result);
+ void registerMatchers(ast_matchers::MatchFinder *Finder) override;
+ void check(ast_matchers::MatchFinder::MatchResult &Result) override;
};
In the ``registerMatchers`` method we create an AST Matcher (see `AST Matchers`_
@@ -259,8 +259,7 @@ The check should be registered in the co
class MyModule : public ClangTidyModule {
public:
- virtual void
- addCheckFactories(ClangTidyCheckFactories &CheckFactories) override {
+ void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override {
CheckFactories.addCheckFactory(
"my-explicit-constructor",
new ClangTidyCheckFactory<ExplicitConstructorCheck>());
More information about the cfe-commits
mailing list