This is an automated email from the git hooks/post-receive script.
unknown user pushed a change to branch stable in repository clang-tools-extra.
from c0c923fb Creating branches/google/stable and tags/google/stable/2018-1 [...] adds cb4ad676 Fix a lit test failure after MallocChecker changes adds d2d42ed6 Revert rCTE349288 'Fix a lit test failure after MallocChecker [...] adds de9aee8a [clangd] Only reduce priority of a thread for indexing. adds 436a2b50 [clangd] Change diskbackedstorage to be atomic adds 5fd9cab2 [clangd] BackgroundIndex rebuilds symbol index periodically. adds db53734a [clangd] Try to fix buildbot failure after r349496 adds 8dd66f65 [clangd] Unify path canonicalizations in the codebase adds 5be6872d [clang-tidy] use "const SourceManager&" parameter, NFC. adds c7df9581 [clangd] Fix a syntax error on the test. adds 1812d85c [clang-tidy] Diagnose abseil-duration-comparison on macro arguments adds 1790729b [clangd] Don't miss the expected type in merge. adds b0383291 [clang-tidy] Use translationUnitDecl() instead of a custom matcher. adds 83f26688 [clangd] Expose FileStatus to LSP. adds 81168f05 [clangd] Try to workaround test failure by increasing the timeouts adds 476c372a Fix warning about unused variable [NFC] adds 7e0e3b6e [clangd] Cleanup syntax errors in the test, NFC. adds 716a505d [clang-tidy] Add export-fixes flag to clang-tidy-diff adds 6de6d145 [clang-tidy] Be more liberal about literal zeroes in abseil checks adds e6cf90b7 [clangd] Delete trailing ; NFC adds 6ec2e23f [clangd] Delete stray semicolon. NFC adds 2b267985 [clang-tidy] add IgnoreMacros option to readability-uppercase [...] adds 93a546b5 [clang-tidy] Export the abseil duration inverse lookup function, NFC adds 0a334939 [clangd] Show FileStatus in vscode-clangd. adds 682acfcb [Documentation] Alphabetical order in Clang-tidy checks chang [...] adds 74a4acf1 [clangd] clang-format everything. NFC adds a059ba7e [clangd] Check preceding char when completion triggers on ':' or '>' adds e2eae94f [clangd] Always try to build absolute path adds a205b131 [clangd] Bump vscode-clangd v0.0.9 adds f4ed9de3 [clangd] Move helpers from global namespace into anonymous na [...] adds 74aa5bb2 [clangd] Fix detecting atomics in stand-alone builds adds 8e9fa30d [Documentation] fix order of checks in checks/list.rst adds d019c35b [clangd] Disable BackgroundIndexTest.PeriodicalIndex adds e112a483 [clangd] Fix a regression issue caused by r348365. adds 7ae58577 [clang-tidy] Use the public hasInit matcher, rather than defi [...] adds d0dee7ad [clangd] Remove 'using namespace llvm' from .cpp files. NFC adds e858ab66 [clangd] Include <cstdio> instead of <stdio.h>. NFC adds 255998ae [clangd] Fix Windows build after r350531 adds 4646da85 ReleaseNotes: Update with my clang-query contributions this cycle adds e79d0e02 [clangd] Fix a crash when reading an empty index file. adds e1f14f6b [Query] NFC: Port QueryParser to StringRef adds c463301b Fix clang-tidy test after r350714. NFC adds 4829b642 [clangd] Add a test for SignatureHelp on dynamic index. adds 096e5f53 [clang-tidy] Adding a new modernize use nodiscard checker adds c7ce5851 [clang-tidy] fix-up failing tests adds 4ed34a30 [clang-tidy] tryfix documentation build adds d923f1bd [clang-tidy] another take at fixing doc adds 482e30b8 Remove unnecessary include. adds 797199bf [clangd] Don't store completion info if the symbol is not use [...] adds b6a07261 [clang-tidy] Fix case of local variables in modernize-use-nod [...] adds 49e26a14 [clangd] Introduce loading of shards within auto-index adds 4a1dff99 Update clang-tools-extra for r350891 from Clang. adds cc3cc263 Adapt to CXXMethodDecl::getThisType change (NFC) adds 2498eaae [clang-tidy] new check 'readability-redundant-preprocessor' adds 477aed98 [clangd] Index main-file symbols (bug 39761) adds b1f1d47c [clang-tidy] update FunctionSizeCheck for D56444 adds f391d9a3 [clangd] Unlink VFS working dir from OS working dir. adds e0441f69 [clangd] Fix a reference invalidation adds fd28b3fb [clangd] Add Limit parameter for xref. adds 9de6aa74 Revert r351051 "[clangd] Unlink VFS working dir from OS worki [...] adds 847bb719 [clangd] Fix updated file detection logic in indexing adds f4d01f57 Update year in license files adds 2582ce7e Revert "Update clang-tools-extra for r350891 from Clang." adds cd9fb88b [clang-tidy] add options documentation to readability-identif [...] adds d05fd41f [clangd] XPC transport layer adds 6ee46a2d [clang-tidy] Treat references to smart pointers correctly in [...] adds 98dd813e [clangd] Fix XPC after rCTE351280 adds 8835c1a2 [clang-tidy] Avoid fuchsia-overloaded-operator false positive [...] adds ca8066e6 [clang-tidy] bugprone-string-constructor: Catch string from nullptr. adds 53b849a7 Fix build breakage from llvm r351317 new 5026a9a1 Creating branches/google/stable and tags/google/stable/2019-0 [...]
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: CMakeLists.txt | 5 + LICENSE.TXT | 2 +- clang-move/ClangMove.cpp | 5 +- clang-query/QueryParser.cpp | 43 +- clang-query/QueryParser.h | 5 +- clang-query/QuerySession.h | 1 - clang-tidy/ClangTidyDiagnosticConsumer.cpp | 6 +- clang-tidy/abseil/DurationComparisonCheck.cpp | 38 +- clang-tidy/abseil/DurationFactoryScaleCheck.cpp | 4 + clang-tidy/abseil/DurationRewriter.cpp | 36 +- clang-tidy/abseil/DurationRewriter.h | 8 +- clang-tidy/abseil/DurationSubtractionCheck.cpp | 6 +- clang-tidy/bugprone/ParentVirtualCallCheck.cpp | 4 +- clang-tidy/bugprone/StringConstructorCheck.cpp | 16 + clang-tidy/bugprone/UseAfterMoveCheck.cpp | 2 +- clang-tidy/fuchsia/OverloadedOperatorCheck.cpp | 2 + clang-tidy/modernize/CMakeLists.txt | 1 + clang-tidy/modernize/ModernizeTidyModule.cpp | 3 + clang-tidy/modernize/UseNodiscardCheck.cpp | 145 ++ .../{UseNoexceptCheck.h => UseNodiscardCheck.h} | 31 +- clang-tidy/readability/CMakeLists.txt | 1 + clang-tidy/readability/FunctionSizeCheck.cpp | 7 +- clang-tidy/readability/ReadabilityTidyModule.cpp | 3 + .../readability/RedundantPreprocessorCheck.cpp | 109 ++ ...arationCheck.h => RedundantPreprocessorCheck.h} | 24 +- .../readability/SimplifyBooleanExprCheck.cpp | 22 +- clang-tidy/readability/SimplifyBooleanExprCheck.h | 1 - .../readability/UppercaseLiteralSuffixCheck.cpp | 6 +- .../readability/UppercaseLiteralSuffixCheck.h | 1 + clang-tidy/tool/clang-tidy-diff.py | 5 + clangd/AST.cpp | 20 +- clangd/AST.h | 2 +- clangd/CMakeLists.txt | 16 + clangd/ClangdLSPServer.cpp | 227 ++- clangd/ClangdLSPServer.h | 15 +- clangd/ClangdServer.cpp | 111 +- clangd/ClangdServer.h | 6 +- clangd/ClangdUnit.cpp | 54 +- clangd/CodeComplete.cpp | 249 +-- clangd/CodeCompletionStrings.cpp | 20 +- clangd/Compiler.cpp | 19 +- clangd/Diagnostics.cpp | 37 +- clangd/DraftStore.cpp | 32 +- clangd/ExpectedTypes.cpp | 14 +- clangd/FS.cpp | 44 +- clangd/FSProvider.cpp | 29 +- clangd/Features.inc.in | 1 + clangd/FileDistance.cpp | 71 +- clangd/FileDistance.h | 6 +- clangd/FindSymbols.cpp | 11 +- clangd/Function.h | 1 - clangd/FuzzyMatch.cpp | 46 +- clangd/GlobalCompilationDatabase.cpp | 29 +- clangd/Headers.cpp | 32 +- clangd/JSONTransport.cpp | 118 +- clangd/Logger.cpp | 14 +- clangd/Protocol.cpp | 366 ++-- clangd/Protocol.h | 40 + clangd/Quality.cpp | 88 +- clangd/RIFF.cpp | 21 +- clangd/SourceCode.cpp | 126 +- clangd/SourceCode.h | 11 +- clangd/TUScheduler.cpp | 131 +- clangd/TUScheduler.h | 17 +- clangd/Threading.cpp | 15 +- clangd/Threading.h | 2 +- clangd/Trace.cpp | 97 +- clangd/Transport.h | 6 + clangd/URI.cpp | 91 +- clangd/XRefs.cpp | 112 +- clangd/XRefs.h | 2 + clangd/benchmarks/IndexBenchmark.cpp | 18 +- clangd/clients/clangd-vscode/LICENSE | 2 +- clangd/clients/clangd-vscode/package.json | 2 +- clangd/clients/clangd-vscode/src/extension.ts | 37 + clangd/fuzzer/ClangdFuzzer.cpp | 2 +- clangd/index/Background.cpp | 449 +++-- clangd/index/Background.h | 39 +- clangd/index/BackgroundIndexStorage.cpp | 41 +- clangd/index/CanonicalIncludes.cpp | 32 +- clangd/index/FileIndex.cpp | 17 +- clangd/index/Index.cpp | 45 +- clangd/index/Index.h | 13 + clangd/index/IndexAction.cpp | 13 +- clangd/index/MemIndex.cpp | 21 +- clangd/index/Merge.cpp | 31 +- clangd/index/Serialization.cpp | 138 +- clangd/index/SymbolCollector.cpp | 159 +- clangd/index/SymbolCollector.h | 12 +- clangd/index/SymbolID.cpp | 28 +- clangd/index/YAMLSerialization.cpp | 44 +- clangd/index/dex/Dex.cpp | 42 +- clangd/index/dex/Iterator.cpp | 17 +- clangd/index/dex/PostingList.cpp | 29 +- clangd/index/dex/Trigram.cpp | 13 +- clangd/index/dex/dexp/Dexp.cpp | 161 +- clangd/indexer/IndexerMain.cpp | 27 +- clangd/tool/CMakeLists.txt | 7 + clangd/tool/ClangdMain.cpp | 352 ++-- clangd/xpc/CMakeLists.txt | 29 + clangd/xpc/Conversion.cpp | 40 + clangd/xpc/Conversion.h | 25 + clangd/xpc/README.txt | 6 + clangd/xpc/XPCTransport.cpp | 217 +++ clangd/xpc/cmake/Info.plist.in | 28 + clangd/xpc/cmake/XPCServiceInfo.plist.in | 30 + .../cmake/modules/CreateClangdXPCFramework.cmake | 73 + clangd/xpc/framework/CMakeLists.txt | 9 + clangd/xpc/framework/ClangdXPC.cpp | 5 + clangd/xpc/test-client/CMakeLists.txt | 26 + clangd/xpc/test-client/ClangdXPCTestClient.cpp | 96 + docs/ReleaseNotes.rst | 65 +- docs/clang-tidy/checks/list.rst | 8 +- docs/clang-tidy/checks/modernize-use-nodiscard.rst | 82 + .../checks/readability-identifier-naming.rst | 1921 +++++++++++++++++++- .../checks/readability-redundant-preprocessor.rst | 61 + .../readability-uppercase-literal-suffix.rst | 5 + test/CMakeLists.txt | 9 +- test/clang-tidy/Inputs/mock-libcxx/bin/clang | 1 + test/clang-tidy/abseil-duration-comparison.cpp | 27 + test/clang-tidy/abseil-duration-factory-scale.cpp | 14 + test/clang-tidy/bugprone-string-constructor.cpp | 11 + test/clang-tidy/bugprone-use-after-move.cpp | 13 + test/clang-tidy/fuchsia-overloaded-operator.cpp | 2 + .../modernize-use-nodiscard-clang-unused.cpp | 25 + test/clang-tidy/modernize-use-nodiscard-cxx11.cpp | 24 + .../modernize-use-nodiscard-gcc-unused.cpp | 25 + ...ernize-use-nodiscard-no-macro-inscope-cxx11.cpp | 13 + .../modernize-use-nodiscard-no-macro.cpp | 22 + test/clang-tidy/modernize-use-nodiscard.cpp | 262 +++ .../readability-redundant-preprocessor-ifdef.cpp | 36 + .../readability-redundant-preprocessor.cpp | 84 + .../readability-redundant-preprocessor.h | 5 + ...lity-uppercase-literal-suffix-integer-macro.cpp | 4 +- ...eadability-uppercase-literal-suffix-integer.cpp | 4 + test/clangd/background-index.test | 5 +- test/clangd/completion-auto-trigger.test | 106 ++ test/clangd/filestatus.test | 13 + test/clangd/xpc/initialize.test | 10 + test/lit.cfg | 4 + test/lit.site.cfg.in | 1 + unittests/clangd/Annotations.cpp | 21 +- unittests/clangd/BackgroundIndexTests.cpp | 198 +- unittests/clangd/CMakeLists.txt | 4 + unittests/clangd/CancellationTests.cpp | 3 +- unittests/clangd/ClangdTests.cpp | 55 +- unittests/clangd/ClangdUnitTests.cpp | 29 +- unittests/clangd/CodeCompleteTests.cpp | 147 +- unittests/clangd/DexTests.cpp | 50 +- unittests/clangd/DraftStoreTests.cpp | 29 +- unittests/clangd/ExpectedTypeTest.cpp | 18 +- unittests/clangd/FSTests.cpp | 10 +- unittests/clangd/FileIndexTests.cpp | 31 +- unittests/clangd/FindSymbolsTests.cpp | 22 +- unittests/clangd/FunctionTests.cpp | 1 - unittests/clangd/FuzzyMatchTests.cpp | 60 +- .../clangd/GlobalCompilationDatabaseTests.cpp | 22 +- unittests/clangd/HeadersTests.cpp | 11 +- unittests/clangd/IndexActionTests.cpp | 4 +- unittests/clangd/IndexTests.cpp | 15 +- unittests/clangd/JSONTransportTests.cpp | 29 +- unittests/clangd/QualityTests.cpp | 7 +- unittests/clangd/RIFFTests.cpp | 11 +- unittests/clangd/SerializationTests.cpp | 20 +- unittests/clangd/SourceCodeTests.cpp | 57 +- unittests/clangd/SymbolCollectorTests.cpp | 188 +- unittests/clangd/SymbolInfoTests.cpp | 232 ++- unittests/clangd/SyncAPI.cpp | 61 +- unittests/clangd/TUSchedulerTests.cpp | 73 +- unittests/clangd/TestFS.cpp | 75 +- unittests/clangd/TestIndex.cpp | 10 +- unittests/clangd/TestTU.cpp | 13 +- unittests/clangd/TraceTests.cpp | 31 +- unittests/clangd/URITests.cpp | 11 +- unittests/clangd/XRefsTests.cpp | 26 +- unittests/clangd/xpc/CMakeLists.txt | 21 + unittests/clangd/xpc/ConversionTests.cpp | 36 + 177 files changed, 7224 insertions(+), 2535 deletions(-) create mode 100644 clang-tidy/modernize/UseNodiscardCheck.cpp copy clang-tidy/modernize/{UseNoexceptCheck.h => UseNodiscardCheck.h} (50%) create mode 100644 clang-tidy/readability/RedundantPreprocessorCheck.cpp copy clang-tidy/readability/{RedundantDeclarationCheck.h => RedundantPreprocessorC [...] create mode 100644 clangd/Features.inc.in create mode 100644 clangd/xpc/CMakeLists.txt create mode 100644 clangd/xpc/Conversion.cpp create mode 100644 clangd/xpc/Conversion.h create mode 100644 clangd/xpc/README.txt create mode 100644 clangd/xpc/XPCTransport.cpp create mode 100644 clangd/xpc/cmake/Info.plist.in create mode 100644 clangd/xpc/cmake/XPCServiceInfo.plist.in create mode 100644 clangd/xpc/cmake/modules/CreateClangdXPCFramework.cmake create mode 100644 clangd/xpc/framework/CMakeLists.txt create mode 100644 clangd/xpc/framework/ClangdXPC.cpp create mode 100644 clangd/xpc/test-client/CMakeLists.txt create mode 100644 clangd/xpc/test-client/ClangdXPCTestClient.cpp create mode 100644 docs/clang-tidy/checks/modernize-use-nodiscard.rst create mode 100644 docs/clang-tidy/checks/readability-redundant-preprocessor.rst create mode 100644 test/clang-tidy/Inputs/mock-libcxx/bin/clang create mode 100644 test/clang-tidy/modernize-use-nodiscard-clang-unused.cpp create mode 100644 test/clang-tidy/modernize-use-nodiscard-cxx11.cpp create mode 100644 test/clang-tidy/modernize-use-nodiscard-gcc-unused.cpp create mode 100644 test/clang-tidy/modernize-use-nodiscard-no-macro-inscope-cxx11.cpp create mode 100644 test/clang-tidy/modernize-use-nodiscard-no-macro.cpp create mode 100644 test/clang-tidy/modernize-use-nodiscard.cpp create mode 100644 test/clang-tidy/readability-redundant-preprocessor-ifdef.cpp create mode 100644 test/clang-tidy/readability-redundant-preprocessor.cpp create mode 100644 test/clang-tidy/readability-redundant-preprocessor.h create mode 100644 test/clangd/completion-auto-trigger.test create mode 100644 test/clangd/filestatus.test create mode 100644 test/clangd/xpc/initialize.test create mode 100644 unittests/clangd/xpc/CMakeLists.txt create mode 100644 unittests/clangd/xpc/ConversionTests.cpp