diff options
author | Alexander Kornienko <alexfh@google.com> | 2021-01-29 00:49:53 +0100 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2021-01-29 01:01:19 +0100 |
commit | ab2d3ce47d6fead7fb79b3c0c7c4c6ac2b930d45 (patch) | |
tree | e0508e1690f4d6d8b3b93b4cc68d67f0bc0d8914 /clang-tools-extra/clang-tidy/modernize/UseNullptrCheck.cpp | |
parent | a1a3fdcdba52c9d0a045af5f68365c273467b127 (diff) | |
download | llvm-ab2d3ce47d6fead7fb79b3c0c7c4c6ac2b930d45.zip llvm-ab2d3ce47d6fead7fb79b3c0c7c4c6ac2b930d45.tar.gz llvm-ab2d3ce47d6fead7fb79b3c0c7c4c6ac2b930d45.tar.bz2 |
[clang-tidy] Applied clang-tidy fixes. NFC
Applied fixes enabled by the LLVM's .clang-tidy configs. Reverted files where
fixes introduced compile errors:
clang-tools-extra/clang-tidy/hicpp/NoAssemblerCheck.cpp
clang-tools-extra/clang-tidy/misc/ThrowByValueCatchByReferenceCheck.cpp
$ clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -fix clang-tools-extra/clang-tidy/
Enabled checks:
llvm-else-after-return
llvm-header-guard
llvm-include-order
llvm-namespace-comment
llvm-prefer-isa-or-dyn-cast-in-conditionals
llvm-prefer-register-over-unsigned
llvm-qualified-auto
llvm-twine-local
misc-definitions-in-headers
misc-misplaced-const
misc-new-delete-overloads
misc-no-recursion
misc-non-copyable-objects
misc-redundant-expression
misc-static-assert
misc-throw-by-value-catch-by-reference
misc-unconventional-assign-operator
misc-uniqueptr-reset-release
misc-unused-alias-decls
misc-unused-using-decls
readability-identifier-naming
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D95614
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/UseNullptrCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/modernize/UseNullptrCheck.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/UseNullptrCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseNullptrCheck.cpp index 25a789d..e32687b 100644 --- a/clang-tools-extra/clang-tidy/modernize/UseNullptrCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/UseNullptrCheck.cpp @@ -173,9 +173,9 @@ private: class CastSequenceVisitor : public RecursiveASTVisitor<CastSequenceVisitor> { public: CastSequenceVisitor(ASTContext &Context, ArrayRef<StringRef> NullMacros, - ClangTidyCheck &check) + ClangTidyCheck &Check) : SM(Context.getSourceManager()), Context(Context), - NullMacros(NullMacros), Check(check), FirstSubExpr(nullptr), + NullMacros(NullMacros), Check(Check), FirstSubExpr(nullptr), PruneSubtree(false) {} bool TraverseStmt(Stmt *S) { |