This is an automated email from the git hooks/post-receive script.
unknown user pushed a change to branch testing in repository clang-tools-extra.
from 08f81ea Updating branches/google/testing to r285906 adds c3c3ead [clang-tidy] Ignore forward declarations without definitions [...] adds 34c7f21 [clang-tidy] Fixed readability-else-after-return for cascade [...] adds 9db711c [clang-tidy] Ignore incomplete types when determining whether [...] adds c738784 [ClangTidy - performance-unnecessary-value-param] Only add "c [...] adds a24d1a0 [clang-tidy] Move incomplete type test into separate test file adds 3cf5151 [clang-tidy] Fix a regression issue introduced by r285239. adds c34fad4 [clang-tidy] Don't warn implicit variables in peformance-unne [...] adds 4b3d0b3 [clang-tidy] Simplify matchers adds 9234817 Use AnalyzerOptions::getRegisteredCheckers() instead of clang [...] adds 5242a87 [clang-tools-extra] Format sources with clang-format. NFC. adds b705b10 [clang-tidy] clang-analyzer-alpha* checks are not registered, [...] adds 5be0b2a [clang-tidy] Improve rename_check.py. adds 4a36aab Remove mentions of clang-analyzer-alpha adds bf68229 [clang-move] Move all code from old.h/cc directly when moving [...] adds b15e38b [change-namespace] shorten namespace qualifier based on Using [...] adds 31c15ba Fix grammar adds 229d804 [clang-tidy docs] Recommend using add_new_check.py more adds c3a988d [clang-tidy docs] Minor formatting changes. adds 9c841cd [clang-tidy] Do not issue fix for functions that are referenc [...] adds 14df6e7 [clang-move] Support template class. adds f50e423 Fix -Wdocumentation warning adds a03cb03 [clang-tidy] Add missing meta refresh for cert-msc30-c doc. NFC adds 366503f [clang-tidy] Add modernize-use-equals-delete check adds 643ba0a [change-namespace] dyn_cast -> cast. adds c84d1f7 Handle adding new nested namespace in old namespace. adds 20dab83 [clang-move] Abstract a ClassMather for matching class declarations. adds 3fe321b [clang-move] Fix an incorrect range for the functions whose r [...] adds 69a969d [change-namespace] consider typedef/using alias decls in the [...] adds 99bcb3c [clang-move] Make the output code look more pretty. adds 5f8641f [clang-tidy] Change readability-redundant-member-init to get [...] adds af0311c [clang-tidy] Handle template instantiations in modenize-use-d [...] adds dff1c9b [clang-move] Support moving function. adds 248b903 [clang-tidy] New check to prefer transparent functors to non- [...] adds 236050c [change-namespace] handle constructor initializer: Derived : [...] adds 4ca00f8 [clang-tidy] Fix identifier naming for initializer list membe [...] adds c8166d4 [clang-tidy] Changes to modernize-use-default check adds c535328 [clang-tidy] Ignore template instantiations in modernize-use- [...] adds a00b86e [docs] Remove doubled spaces adds 9898b31 [include-fixer] Refactor include fixer to be usable as a plugin adds 758a448 [include-fixer] Add a test for the full round trip through li [...] adds e775a55 [clang-move] Fix not moving using-decls in global namespace i [...] adds d6d47de readability-redundant-declaration: Fix crash adds 8eac085 [include-fixer plugin] Make the plugin emit proper fixits in [...] adds f6be33f clang-tidy: Attempt to fix build bot failure with mismatching [...] adds 2df3d50 clang-tidy: improve my test for readability-redundant-declaration adds 4456ea7 [clang-rename] Prune away AST nodes more correctly and effect [...] adds 944c6d5 [clang-move] Add some options allowing to add old/new.h to ne [...] adds a369488 [clang-rename] Fix non-functional offset check. adds f3f19f4 [clang-rename] Add test case for r287758. adds af69684 [clang-move] Enable dump all declarations in old header. adds 518a489 ClangMoveTests.cpp: Fix a bogus comparison of iterator. adds 40585ee [include-fixer] Don't interfere with typo correction if we fo [...] adds 2b5443f [change-namespace] fix non-calling function references. adds 950b766 [include-fixer] Don't eat one token too many when replacing a [...] adds fc1f0ce Fix some Clang-tidy modernize-use-default and Include What Yo [...] adds b24beea [include-fixer] Don't skip repeated lookups in plugin mode. adds de666a7 [clang-tidy] Make format style customizable adds ea616a2 [clang-tidy] Rename modernize-use-default to modernize-use-eq [...] adds fc8d8bc [change-namespace] don't generate replacements for files that [...] adds 6f72546 Add a blank line to make sphinx happy. adds 3e84024 Fix a buildbot failure in include-fixer. adds f0f75fd [clang-move] some tweaks. adds d048dbf [clang-tidy] Do not trigger unnecessary-value-param check on [...] adds d5fcd06 [clang-move] don't miss ',' in json output when there are dup [...] adds d963170 [change-namespace] get changing namespace to global correct. new c868a53 Updating branches/google/testing to r288672
The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference.
Summary of changes: change-namespace/ChangeNamespace.cpp | 300 +++++++-- change-namespace/ChangeNamespace.h | 19 +- .../Tooling/ApplyReplacements.h | 13 +- .../lib/Tooling/ApplyReplacements.cpp | 14 +- .../tool/ClangApplyReplacementsMain.cpp | 15 +- clang-move/ClangMove.cpp | 548 +++++++++++----- clang-move/ClangMove.h | 194 ++++-- clang-move/tool/ClangMoveMain.cpp | 69 +- clang-query/Query.cpp | 11 +- clang-query/Query.h | 6 +- clang-query/QueryParser.cpp | 18 +- clang-query/QueryParser.h | 3 +- clang-rename/USRFinder.cpp | 15 +- clang-rename/USRFindingAction.cpp | 13 +- clang-rename/USRLocFinder.cpp | 12 +- clang-tidy/ClangTidy.cpp | 82 +-- clang-tidy/ClangTidy.h | 8 +- clang-tidy/ClangTidyDiagnosticConsumer.cpp | 17 +- clang-tidy/ClangTidyModule.h | 9 +- clang-tidy/ClangTidyOptions.cpp | 3 +- clang-tidy/ClangTidyOptions.h | 3 +- clang-tidy/add_new_check.py | 7 +- clang-tidy/cert/CERTTidyModule.cpp | 37 +- clang-tidy/cert/LimitedRandomnessCheck.cpp | 4 +- clang-tidy/cert/StaticObjectExceptionCheck.cpp | 2 +- clang-tidy/cert/StrToNumCheck.cpp | 2 +- clang-tidy/cert/ThrownExceptionTypeCheck.h | 2 +- .../CppCoreGuidelinesTidyModule.cpp | 5 +- .../ProBoundsConstantArrayIndexCheck.cpp | 20 +- .../ProBoundsPointerArithmeticCheck.cpp | 4 +- .../ProBoundsPointerArithmeticCheck.h | 3 +- .../cppcoreguidelines/ProTypeMemberInitCheck.cpp | 5 +- .../ProTypeStaticCastDowncastCheck.cpp | 3 +- .../ProTypeStaticCastDowncastCheck.h | 3 +- .../cppcoreguidelines/ProTypeUnionAccessCheck.cpp | 9 +- .../cppcoreguidelines/ProTypeUnionAccessCheck.h | 1 - .../cppcoreguidelines/ProTypeVarargCheck.cpp | 4 +- clang-tidy/google/AvoidCStyleCastsCheck.cpp | 9 +- clang-tidy/google/ExplicitMakePairCheck.cpp | 13 +- clang-tidy/google/GlobalNamesInHeadersCheck.cpp | 17 +- clang-tidy/google/GoogleTidyModule.cpp | 2 +- clang-tidy/google/IntegerTypesCheck.cpp | 1 - clang-tidy/google/MemsetZeroLengthCheck.cpp | 13 +- clang-tidy/google/NonConstReferences.cpp | 9 +- clang-tidy/google/OverloadedUnaryAndCheck.cpp | 12 +- clang-tidy/google/StringReferenceMemberCheck.cpp | 10 +- .../google/UnnamedNamespaceInHeaderCheck.cpp | 7 +- clang-tidy/google/UsingNamespaceDirectiveCheck.cpp | 4 +- clang-tidy/llvm/HeaderGuardCheck.cpp | 2 +- clang-tidy/misc/ArgumentCommentCheck.cpp | 4 +- clang-tidy/misc/ArgumentCommentCheck.h | 2 +- .../misc/BoolPointerImplicitConversionCheck.cpp | 3 +- .../misc/BoolPointerImplicitConversionCheck.h | 1 - clang-tidy/misc/DefinitionsInHeadersCheck.cpp | 3 +- .../misc/ForwardDeclarationNamespaceCheck.cpp | 4 +- clang-tidy/misc/ForwardDeclarationNamespaceCheck.h | 4 +- clang-tidy/misc/IncorrectRoundings.cpp | 1 - clang-tidy/misc/IncorrectRoundings.h | 2 +- clang-tidy/misc/MacroParenthesesCheck.cpp | 11 +- clang-tidy/misc/MacroRepeatedSideEffectsCheck.cpp | 2 +- clang-tidy/misc/MiscTidyModule.cpp | 21 +- clang-tidy/misc/MisplacedWideningCastCheck.cpp | 5 +- clang-tidy/misc/MoveConstantArgumentCheck.cpp | 4 +- clang-tidy/misc/MoveConstructorInitCheck.cpp | 3 +- clang-tidy/misc/MultipleStatementMacroCheck.cpp | 4 +- clang-tidy/misc/NewDeleteOverloadsCheck.cpp | 19 +- clang-tidy/misc/NewDeleteOverloadsCheck.h | 5 +- clang-tidy/misc/NoexceptMoveConstructorCheck.cpp | 5 +- clang-tidy/misc/NoexceptMoveConstructorCheck.h | 1 - clang-tidy/misc/NonCopyableObjects.cpp | 47 +- clang-tidy/misc/NonCopyableObjects.h | 2 +- clang-tidy/misc/SizeofContainerCheck.cpp | 1 - clang-tidy/misc/SizeofContainerCheck.h | 1 - clang-tidy/misc/SizeofExpressionCheck.cpp | 2 +- clang-tidy/misc/StringIntegerAssignmentCheck.h | 1 - clang-tidy/misc/SuspiciousMissingCommaCheck.cpp | 29 +- clang-tidy/misc/SuspiciousMissingCommaCheck.h | 3 +- clang-tidy/misc/SuspiciousStringCompareCheck.cpp | 13 +- .../misc/ThrowByValueCatchByReferenceCheck.cpp | 2 +- .../misc/UnconventionalAssignOperatorCheck.cpp | 6 +- clang-tidy/misc/UndelegatedConstructor.cpp | 3 +- clang-tidy/misc/UniqueptrResetReleaseCheck.cpp | 7 +- clang-tidy/misc/UnusedAliasDeclsCheck.h | 1 - clang-tidy/misc/UnusedParametersCheck.cpp | 3 +- clang-tidy/misc/UnusedParametersCheck.h | 1 - clang-tidy/misc/UnusedUsingDeclsCheck.cpp | 7 +- clang-tidy/misc/UseAfterMoveCheck.cpp | 14 +- clang-tidy/modernize/AvoidBindCheck.cpp | 22 +- clang-tidy/modernize/CMakeLists.txt | 4 +- clang-tidy/modernize/LoopConvertCheck.cpp | 14 +- clang-tidy/modernize/LoopConvertUtils.cpp | 21 +- clang-tidy/modernize/LoopConvertUtils.h | 13 +- clang-tidy/modernize/MakeUniqueCheck.h | 1 - clang-tidy/modernize/ModernizeTidyModule.cpp | 13 +- clang-tidy/modernize/RawStringLiteralCheck.cpp | 2 +- clang-tidy/modernize/UseAutoCheck.cpp | 23 +- ...eDefaultCheck.cpp => UseEqualsDefaultCheck.cpp} | 34 +- .../{UseDefaultCheck.h => UseEqualsDefaultCheck.h} | 15 +- clang-tidy/modernize/UseEqualsDeleteCheck.cpp | 70 ++ .../{UseDefaultCheck.h => UseEqualsDeleteCheck.h} | 29 +- clang-tidy/modernize/UseNullptrCheck.cpp | 11 +- .../modernize/UseTransparentFunctorsCheck.cpp | 131 ++++ ...teralsCheck.h => UseTransparentFunctorsCheck.h} | 20 +- clang-tidy/mpi/TypeMismatchCheck.h | 3 +- clang-tidy/performance/FasterStringFindCheck.cpp | 9 +- clang-tidy/performance/ImplicitCastInLoopCheck.cpp | 2 +- clang-tidy/performance/ImplicitCastInLoopCheck.h | 14 +- .../performance/UnnecessaryCopyInitialization.cpp | 18 +- .../performance/UnnecessaryValueParamCheck.cpp | 28 +- clang-tidy/readability/AvoidConstParamsInDecls.cpp | 2 +- .../readability/BracesAroundStatementsCheck.cpp | 8 +- .../readability/BracesAroundStatementsCheck.h | 2 +- clang-tidy/readability/ElseAfterReturnCheck.cpp | 2 +- clang-tidy/readability/IdentifierNamingCheck.cpp | 24 +- clang-tidy/readability/ImplicitBoolCastCheck.cpp | 3 +- .../InconsistentDeclarationParameterNameCheck.cpp | 17 +- clang-tidy/readability/NamespaceCommentCheck.cpp | 3 +- .../readability/RedundantControlFlowCheck.cpp | 7 +- .../readability/RedundantDeclarationCheck.cpp | 12 +- .../readability/RedundantMemberInitCheck.cpp | 4 +- .../readability/RedundantStringCStrCheck.cpp | 75 +-- .../readability/RedundantStringInitCheck.cpp | 7 +- .../StaticDefinitionInAnonymousNamespaceCheck.h | 3 +- .../readability/UniqueptrDeleteReleaseCheck.cpp | 1 - .../readability/UniqueptrDeleteReleaseCheck.h | 1 - clang-tidy/rename_check.py | 61 +- clang-tidy/tool/ClangTidyMain.cpp | 33 +- clang-tidy/utils/IncludeInserter.cpp | 5 +- clang-tidy/utils/Matchers.h | 6 +- clang-tidy/utils/NamespaceAliaser.cpp | 2 - clang-tidy/utils/TypeTraits.cpp | 8 +- clang-tidy/utils/UsingInserter.cpp | 3 +- docs/ModularizeUsage.rst | 20 +- docs/ReleaseNotes.rst | 13 + docs/clang-tidy/checks/cert-msc30-c.rst | 2 + .../cppcoreguidelines-pro-type-cstyle-cast.rst | 2 +- .../cppcoreguidelines-pro-type-member-init.rst | 2 +- docs/clang-tidy/checks/list.rst | 6 +- docs/clang-tidy/checks/misc-sizeof-expression.rst | 2 +- .../checks/modernize-raw-string-literal.rst | 6 +- docs/clang-tidy/checks/modernize-use-auto.rst | 2 +- docs/clang-tidy/checks/modernize-use-default.rst | 30 +- docs/clang-tidy/checks/modernize-use-emplace.rst | 2 +- ...efault.rst => modernize-use-equals-default.rst} | 11 +- .../checks/modernize-use-equals-delete.rst | 25 + .../checks/modernize-use-transparent-functors.rst | 39 ++ .../checks/performance-faster-string-find.rst | 2 +- .../readability-braces-around-statements.rst | 2 +- docs/clang-tidy/index.rst | 116 ++-- docs/include-fixer.rst | 2 +- docs/index.rst | 2 +- docs/modularize.rst | 16 +- docs/pp-trace.rst | 48 +- include-fixer/CMakeLists.txt | 1 + include-fixer/IncludeFixer.cpp | 533 ++++++++------- include-fixer/IncludeFixer.h | 72 ++ include-fixer/plugin/CMakeLists.txt | 12 + include-fixer/plugin/IncludeFixerPlugin.cpp | 97 +++ include-fixer/tool/clang-include-fixer.el | 4 +- pp-trace/PPCallbacksTracker.h | 16 +- test/change-namespace/lambda-function.cpp | 22 + test/change-namespace/macro.cpp | 29 + test/clang-move/Inputs/function_test.cpp | 5 + test/clang-move/Inputs/function_test.h | 14 + test/clang-move/Inputs/multiple_class_test.cpp | 5 + test/clang-move/Inputs/template_class_test.cpp | 13 + test/clang-move/Inputs/template_class_test.h | 30 + test/clang-move/Inputs/test.h | 3 + test/clang-move/move-class.cpp | 17 +- test/clang-move/move-function.cpp | 67 ++ test/clang-move/move-multiple-classes.cpp | 12 +- test/clang-move/move-template-class.cpp | 86 +++ test/clang-rename/InvalidOffset.cpp | 9 + test/clang-rename/Variable.cpp | 11 +- ...y.cpp => modernize-use-equals-default-copy.cpp} | 48 +- ...pp => modernize-use-equals-default-delayed.cpp} | 2 +- ...efault.cpp => modernize-use-equals-default.cpp} | 42 +- test/clang-tidy/modernize-use-equals-delete.cpp | 160 +++++ test/clang-tidy/modernize-use-nullptr.cpp | 11 + .../modernize-use-transparent-functors.cpp | 107 +++ ...performance-unnecessary-copy-initialization.cpp | 19 + ...nce-unnecessary-value-param-incomplete-type.cpp | 9 + .../performance-unnecessary-value-param.cpp | 52 ++ test/clang-tidy/readability-else-after-return.cpp | 44 +- test/clang-tidy/readability-identifier-naming.cpp | 38 ++ .../readability-redundant-declaration.cpp | 7 + .../readability-redundant-member-init.cpp | 18 + test/clang-tidy/static-analyzer.cpp | 2 +- test/include-fixer/yamldb_plugin.cpp | 24 + tool-template/ToolTemplate.cpp | 2 +- .../change-namespace/ChangeNamespaceTests.cpp | 729 ++++++++++++++++++--- unittests/clang-move/ClangMoveTests.cpp | 290 +++++++- unittests/include-fixer/IncludeFixerTest.cpp | 11 +- 193 files changed, 4148 insertions(+), 1490 deletions(-) rename clang-tidy/modernize/{UseDefaultCheck.cpp => UseEqualsDefaultCheck.cpp} (91%) copy clang-tidy/modernize/{UseDefaultCheck.h => UseEqualsDefaultCheck.h} (69%) create mode 100644 clang-tidy/modernize/UseEqualsDeleteCheck.cpp rename clang-tidy/modernize/{UseDefaultCheck.h => UseEqualsDeleteCheck.h} (55%) create mode 100644 clang-tidy/modernize/UseTransparentFunctorsCheck.cpp copy clang-tidy/modernize/{UseBoolLiteralsCheck.h => UseTransparentFunctorsCheck.h} (52%) copy docs/clang-tidy/checks/{modernize-use-default.rst => modernize-use-equals-def [...] create mode 100644 docs/clang-tidy/checks/modernize-use-equals-delete.rst create mode 100644 docs/clang-tidy/checks/modernize-use-transparent-functors.rst create mode 100644 include-fixer/plugin/CMakeLists.txt create mode 100644 include-fixer/plugin/IncludeFixerPlugin.cpp create mode 100644 test/change-namespace/lambda-function.cpp create mode 100644 test/change-namespace/macro.cpp create mode 100644 test/clang-move/Inputs/function_test.cpp create mode 100644 test/clang-move/Inputs/function_test.h create mode 100644 test/clang-move/Inputs/template_class_test.cpp create mode 100644 test/clang-move/Inputs/template_class_test.h create mode 100644 test/clang-move/move-function.cpp create mode 100644 test/clang-move/move-template-class.cpp create mode 100644 test/clang-rename/InvalidOffset.cpp rename test/clang-tidy/{modernize-use-default-copy.cpp => modernize-use-equals-def [...] rename test/clang-tidy/{modernize-use-default-delayed.cpp => modernize-use-equals- [...] rename test/clang-tidy/{modernize-use-default.cpp => modernize-use-equals-default. [...] create mode 100644 test/clang-tidy/modernize-use-equals-delete.cpp create mode 100644 test/clang-tidy/modernize-use-transparent-functors.cpp create mode 100644 test/clang-tidy/performance-unnecessary-value-param-incomplete- [...] create mode 100644 test/include-fixer/yamldb_plugin.cpp