summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/ClangTidyModule.h
diff options
context:
space:
mode:
authorMandeep Singh Grang <mgrang@codeaurora.org>2016-11-08 07:50:19 +0000
committerMandeep Singh Grang <mgrang@codeaurora.org>2016-11-08 07:50:19 +0000
commit7c7ea7d0ae4041e92a4d510874e78da9f5e3bc1c (patch)
tree58745ba1b5123ed61711bbf23879bf5350c74e81 /clang-tools-extra/clang-tidy/ClangTidyModule.h
parentd700c357d4689abb48121f61690a4080e39c326d (diff)
downloadbcm5719-llvm-7c7ea7d0ae4041e92a4d510874e78da9f5e3bc1c.tar.gz
bcm5719-llvm-7c7ea7d0ae4041e92a4d510874e78da9f5e3bc1c.zip
[clang-tools-extra] Format sources with clang-format. NFC.
Summary: Ran clang-format on all .c/.cpp/.h files in clang-tools-extra. Excluded the test, unittests, clang-reorder-fields, include-fixer, modularize and pptrace directories. Reviewers: klimek, alexfh Subscribers: nemanjai Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D26329 llvm-svn: 286221
Diffstat (limited to 'clang-tools-extra/clang-tidy/ClangTidyModule.h')
-rw-r--r--clang-tools-extra/clang-tidy/ClangTidyModule.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidyModule.h b/clang-tools-extra/clang-tidy/ClangTidyModule.h
index 58e833c0e87..47216368e15 100644
--- a/clang-tools-extra/clang-tidy/ClangTidyModule.h
+++ b/clang-tools-extra/clang-tidy/ClangTidyModule.h
@@ -26,8 +26,9 @@ namespace tidy {
/// this object.
class ClangTidyCheckFactories {
public:
- typedef std::function<ClangTidyCheck *(
- StringRef Name, ClangTidyContext *Context)> CheckFactory;
+ typedef std::function<ClangTidyCheck *(StringRef Name,
+ ClangTidyContext *Context)>
+ CheckFactory;
/// \brief Registers check \p Factory with name \p Name.
///
@@ -58,8 +59,8 @@ public:
template <typename CheckType> void registerCheck(StringRef CheckName) {
registerCheckFactory(CheckName,
[](StringRef Name, ClangTidyContext *Context) {
- return new CheckType(Name, Context);
- });
+ return new CheckType(Name, Context);
+ });
}
/// \brief Create instances of all checks matching \p CheckRegexString and
OpenPOWER on IntegriCloud