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 ac6cfc33 Creating branches/google/stable and tags/google/stable/2018-0 [...] adds 800a2f2c Avoid assumption that lit tests are writable. NFC adds 05054c3e [clang-tidy] Fix DanglingHandleCheck for the correct conversi [...] adds d5f92b3c [clangd] Catch more symbols in SymbolCollector. adds 97bd6f09 [clangd] Fix a bug in asynchronous code completion adds 08a12b35 [clangd] Use ToolExecutor to write the global-symbol-builder tool. adds 6c32fe04 [clangd] Add more symbol information for code completion. adds 57c863f8 Try to fix build failure caused by r322097 adds bceebc2c [clangd] Remove duplicates from code completion adds 79d906b0 [clangd] Add static index for the global code completion. adds 0f9181d7 [clangd] Add more filters for collected symbols. adds b9d36e0a Add a missing dependency for r322192 adds 1f107167 [clangd] Pass Context to onDiagnosticsReady callback adds b958885f [clang-tidy] Fix google-readability-namespace-comments handli [...] adds 76612e5e [clang-tidy] Adding Fuchsia checker for statically constructe [...] adds 0d068bb7 [clangd] Don't navigate to forward class declaration when go [...] adds ee0e77d5 [clangd] Incorporate fuzzy-match into result rankings. adds eb2002a6 [clangd] Include debugging tags for both static and dynamic i [...] adds 1f474653 [clangd] Code completion uses Sema for NS-level things in the [...] adds 7be1b562 [clangd] Fix uninitialized-read found by asan adds ad2c64f0 [clangd] Merge results from static/dynamic index. adds 718c5c60 [clang-tidy] Expand readability-redundant-smartptr-get to und [...] adds 1ac7fc8b [clangd] Improve const-correctness of Symbol->Detail. NFC adds c763fe70 [clangd] Avoid combinatorial explosion in CodeCompleteTests. adds ae15a31d add ID as a special acronym to objc property declaration chec [...] adds 500154a5 [clang-tidy] fix minor formatting issue adds 161cd829 [clang-tidy] implement check for goto adds 82f99c86 [clangd] Don't crash on LSP calls for non-added files adds 4801b544 [clangd] Avoid divide-by-zero adds 9662ac27 [clang-tidy] Fixing Fuchsia overloaded operator warning message adds 0def3171 [clangd] Deduplicate symbols collected in global-symbol-build [...] adds 9bb5a510 [clang-tidy] Adding Fuchsia checker for trailing returns adds ca0d5d71 [clangd] Use fuzzy match to select top N index results. adds c8c5a4c5 [clang-tidy] Don't generate fix for argument constructed from [...] adds 9c261c4d [clangd] CodeCompleteTests cleanup: naming, ordering, helpers. NFC adds 91ebf42d [clangd] Output log messages to stderr when not configured (e [...] adds 0014e45d [clangd] Always use preamble (even stale) for code completion adds eff02dce [clangd] Remove unused IncludeGlobals completion option, alwa [...] adds 8758bc70 [clang-tidy objc-property-declaration] Expand list of ObjC acronyms adds bdb47fd0 [clangd] Collect enum constants in SymbolCollector adds d2edb9f4 [clangd] Merge index-provided completions with those from Sema. adds fb61b3bf [clangd] Fix memcpy(?, null, 0) UB by switching to std::copy adds bbb9a63c [clangd] Change index scope convention from "outer::inner" to [...] adds 31b40b3a Revert "[clangd] Change index scope convention from "outer::i [...] adds 5f221d46 [clangd] Change index scope convention from "outer::inner" to [...] adds c573a6e9 [clang-tidy] Adding Fuchsia checker for multiple inheritance adds 5c5bb394 Assume the shared library path variable is LD_LIBRARY_PATH on [...] adds 9dcc79f6 [clangd] Add support for different file URI schemas. adds 74063232 [clangd] Try to fix build bot failue in r323101 adds 4c12a2f3 Fix MSVC implicit double-float truncation warning. NFCI. adds 2b30246e [clang-tidy objc-property-declaration] New option IncludeDefa [...] adds 192067e3 [clangd] Drop ~destructor completions - rarely helpful and wo [...] adds e8cc879f [clangd] Use accessible scopes to query indexes for global co [...] adds 27362593 [clang-tidy] Don't generate fixes for invalid new expr locati [...] adds 5ab42893 [clang-tidy] Add -vfsoverlay flag adds cd3ac4ef [clangd] Simplify code handling compile commands adds 3b9f62db [clang-tidy] Handle bitfields in modernize-use-default-member [...] adds 81ead829 [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-m [...] adds ff22ba72 [clangd] add test for r323347 CodeComplete behavior we rely on adds 78777da2 [clangd] Limit completion results. adds e6b27aa5 [clangd] Disable typo correction when doing code completion. adds 310f1c17 [clangd] Moved caching of compile commands to ClangdServer adds 15c3e8c8 [clangd] Added forgotten files adds 543ec241 [clangd] Fixed the file comment of new file. NFC adds deddbcd6 [clangd] Provide a helper to report estimated memory usage per-file adds 4b0c3b44 Removed Unicode BOM. adds 176c5280 [clangd] Replace homegrown make_scope_exit with one from ADT adds ae22fae0 [clangd] Add ClangdUnit diagnostics tests using annotated code. adds 297cc432 [clangd] Modify the Span API so that Spans propagate with contexts. adds c7abcec3 [clangd] Fix GCC build break 'declaration changes meaning' adds 6c5b63f9 [clangd] Fixed null deference on invalid compile commands. adds 2ee3719d [clangd] Add a fallback directory for collected symbols with [...] adds c94f5a9b [clangd] Use new URI with scheme support in place of the exis [...] adds 3462ff4a [clangd] Fix r323658 test failure on windows. adds fbf494ba add prefix with '_' support for property name. Corresponding [...] adds 60d3ba7e [clangd] Enable completion index by default, limit results to 100. adds 607c2cbb [clangd] Fix windows path manipulation adds 8a3a9295 [clang-tidy] Use a more specific regex adds 13f62172 clang-tidy/rename_check.py misc-string-compare readability-st [...] adds af81fafc clang-tidy/rename_check.py misc-incorrect-roundings bugprone- [...] adds 0046c5e2 [clangd] Trace code completion. adds 3c35af67 [clangd] Refactored threading in ClangdServer adds 318f2a63 [clangd] Attempt to fix compilation breakage with MSVC. adds 80970658 [clangd] Second attempt to fix MSVC compilation breakage. adds 41f6232a [clang-move] Clever on handling header file which includes itself. adds aa2cfa93 [clangd] Better handling symbols defined in macros. adds 00cfa48c Update header guard. adds d9ac0b53 [clangd] Pass Context implicitly using TLS. adds 2fa4cfef [clangd] Add a test URI scheme for lit tests to unbreak platf [...] adds ceea3284 [clang-tidy] New argument --language to add_new_check.py adds 90f45914 [clangd] Use pthread instead of thread_local to support more [...] adds 47cb0b61 [clangd] Fix URI scheme conflict and an unused variable warni [...] adds a56a9a1a [clangd] remove the unused code NFC. adds 81ed4b2e [clang-tidy] misc-redundant-expression: fix a crash under ubsan adds 23710ef5 [clangd] Log dropped diagnostics. adds 2eee020b [clangd] Skip inline namespace when collecting scopes for ind [...] adds 0eaf5289 [clangd] Remove a unused include. NFC adds 83f0ded2 [clang-tidy] Don't reinvent the wheel, use existing log2 functions. adds 3027cd14 [clang-tidy] Remove global constructor. No functionality chan [...] adds a923854a [clang-tidy] Widen anonymous namespace. adds 60bd726a [clang-tidy] Kill marco. No functionality change. adds c29d5784 [clang-tidy] ObjC ARC objects should not trigger performance- [...] adds e47218cb [clangd] Fix ExternC test broken by r324081 adds ad872479 [clangd] Expclictly set the init value of -assume-header-dir [...] adds 58b60963 [clang-tidy] tweak "misc-definitions-in-headers" doc, NFC. adds b942cd7f [clang-tidy] Fix incorrect code indention in the doc. adds d0b49863 [clangd] Add a cstring include for strerror. adds 392beb7b [clangd] Fix incorrect file path for symbols defined by the c [...] adds 0dd89559 [clangd] Support simpler JSON-RPC stream parsing for lit tests. adds a07366a9 [clangd] Cut input-mirror.test down to size. NFC adds eb29ab9b [clangd] Don't try pthread, just use thread_local. Reverts r323949. adds 5b4c0dd1 [clangd] Remove unused variable. NFC adds 5b456bf9 [clangd] The new threading implementation adds 3ad61d46 [clangd] Use URIs in index symbols. adds 7cafed0a [clangd] Fixed compilation on Windows buildbot. adds 61f58c71 [clangd] Fixed a bug in the new threading implementation. adds 0728ed17 [clangd] Attempt to unbreak windows buildbots. adds 1c60b51f Revert "[clangd] The new threading implementation" (r324356) adds 76e28f7c [clangd] Make the premble tremble. adds 7bd9bbe4 Support special acronyms inside property names and allow plur [...] adds 30e53125 [clang-tidy] Update fuchsia-multiple-inheritance to check for [...] adds 0a5ed553 test: use target triple for the test adds 8ce01a93 [clangd] Do not precent-encode numbers in URI. adds 8c26ea0b Resubmit "[clangd] The new threading implementation" adds ddca6ad5 [clangd] Update include guard in Annotations.h. NFC adds af74ff9c [clangd] Remove threading-related code from ClangdUnit.h adds 95732309 [clangd] Fix crash when CompilerInvocation can't be created. adds f79badb7 [clangd] Collect definitions when indexing. adds fae39acd [clangd] Fix crash in tests in debug mode. adds 8367ca6d [clang-move] Don't dump macro symbols. adds 40acfdfd [clangd] Remove codeComplete that returns std::future<> adds f5822405 [clang-move] Fix the incorrect expansion end location. adds 42067ce4 [clangd] Log all ignored diagnostics. adds fc48214b [clangd] Stop exposing Futures from ClangdServer operations. adds ae7ff018 [clangd] SymbolLocation only covers symbol name. adds 6bc06d71 [clangd] Remove an already-done FIXME, NFC adds 18a5daac [clang-tidy] Update fuchsia-multiple-inheritance to not fail adds 164d8091 [clangd] Remove the RealFS layer from test VFS. NFC. adds 14619df6 [clangd] Log if CWD could not be changed. NFC. adds 782d254c [clangd] Fixed findDefinitions to always return absolute paths. adds 8e7103e4 [clangd] Configure clangd tracing with CLANGD_TRACE env inste [...] adds 869007f6 [clangd] Explicitly initialize all primitive fields in Protocol.h adds 8ec21f35 [clangd] Fix data race in ClangdThreadingTest.StressTest adds f9d019da [clangd] Fix tracing now that spans lifetimes can overlap on [...] adds e674d5c1 [clang-tidy] New checker for exceptions that are created but [...] adds bc052181 [clang-tidy] Minor documentation fix adds c9cd656d [clang-tidy] Make a test pass on platforms where exceptions d [...] adds f4a8dfc7 [clangd] Make functions of ClangdServer callback-based adds c4ce343b [clangd] Fix make_unique ambiguity, NFC adds aca233d8 [clangd] Enable snippet completion based on client capabilities. adds e97bf008 [clangd] Fixed compilation with MVSC. adds 76a51d98 [clangd] Use explicit env in test to make lit+windows happy. NFC adds 71fa6dfb [clangd] Create trace::Span when running ASTCallback adds 95c2e182 [clang-tidy] Add `readability-simd-intrinsics` check. adds f3f4150a [include-fixer] Add more debug headers to the STL header list adds 032a5cf8 [clangd] TestFS cleanup: getVirtualBlahBlah -> testPath/testR [...] adds d1954c17 [clangd] Assert path is absolute when assigning to URIForFile. adds 63acee04 [clangd] collect symbol #include & insert #include in global [...] adds 28a369b5 [clangd] remove redundant ';' introduced in r325343 adds 48fc4b0d [clangd] Include timestamps in log messages. adds bba8509f [Documentation] Fix Sphinx error. Limit text width to 80 characters. adds 90756a05 [clang-include-fixer] Use add_clang_tool instead add_clang_ex [...] adds 4d526504 [clangd] Implement textDocument/hover adds 841919d8 [clangd] Rename some protocol field to lower case adds c2a4d693 [clangd] Fix link failures for Preprocessor::addCommentHandler adds 38d22d28 [tidy] Move private ast matchers into anonymous namespaces to [...] adds d5a51967 [clangd] Fix use-after-free in SymbolYAML: strings are owned [...] adds 000c5c84 [clangd] Add "clangd.trace" VSCode setting to enable tracing. adds 7ac4bf01 [clangd] Tracing: name worker threads, and enforce naming sch [...] adds 0405730b [clangd] Try to fix build bot failure caused by r325343: esca [...] adds e606c6f3 [clangd] Bump vs-code clangd extension v0.0.3 adds fa7c1204 [clangd] Mark non-changing fields of CppFile as const. NFC adds 2e0d54a2 [clangd] Attach more information about Sema completion to traces adds aa5343ec [clangd] Invert return value of fuzzyFind() (fix MemIndex's r [...] adds b9a66505 [clangd] Add brief instructions on how to make a release for [...] adds 3b71033a [clangd] Correct the doc, password => Personal Access Token. adds 28a9c489 [clangd] Do not reuse preamble if compile args changed adds 04d78f31 [clangd] Fixes for #include insertion. adds 7bb4b1bc [clang-tidy] Replace the usage of std::uncaught_exception wit [...] adds 2ec4909a [clangd] Dump stack on crash adds 492cf6c4 [clangd] Fix formatting in XRefs.cpp adds f2845bc1 [clangd] #include statements support for Open definition adds e25cb7ec [clangd] Update canonical header mapping for STL adds 9be631ca [clangd] Not collect include headers for dynamic index for now. adds 33b0c1e1 [clangd] Allow embedders some control over when diagnostics a [...] adds 3806cc41 [clangd] Correct setting ignoreWarnings in CodeCompletion. adds 2d7f298f [clangd] DidChangeConfiguration Notification adds 807a8aa5 [clangd] fix test use-after-free from r325774 adds 864eda4e Fix "not all control paths return a value" MSVC warning. NFCI. adds 4b65d058 [clangd] Extend textDocument/didChange to specify whether dia [...] adds bffee641 [clangd] BindWithForward -> Bind. NFC adds af574dc5 [clang-tidy/google] Improve the Objective-C global variable d [...] adds 53a136cb [clangd] Address FIXME and fix comment adds fca635ef [clangd] don't insert new includes if either original header [...] adds 6dd75d08 Fix for LLVM r326109 adds 7106c321 [Tooling] [1/1] Refactor FrontendActionFactory::create() to r [...] adds f37cac6f Revert "[Tooling] [1/1] Refactor FrontendActionFactory::creat [...] adds f72304ed [clangd] Remove codecomplete override content API. Long live [...] adds 0eb6bec0 add UUID to the acronyms list of objc property name checks adds 62010c6f [clangd] A few minor fixes for STL internal header mapping. adds 03749f19 [clangd] Prefer the definition of a TagDecl (e.g. class) as C [...] adds 901f1536 [clang-tidy] Add a test for readability-implicit-bool-convers [...] adds 3562e8fe [clang-tidy] Fix 'add_new_check.py --udpate-docs' adds c51bb3d4 [clangd] A few more fixes for STL header mapping. adds 275bc46a Rename a few checks from misc- to bugprone-. adds d448a5d0 [Documentation] Split Clang-tidy changes in Release Notes int [...] adds ab3c36c5 [clangd] Try to fix failures on clang-x64-ninja-win7 build bot. adds 2f873bc9 Rename more checks from misc- to bugprone-. adds 41af46a8 [clang-tidy] Another batch of checks to rename from misc- to [...] adds bb7e4da5 [clangd] Forward all environment variables along with CLANGD_ [...] adds a5302f6b [clangd] Support include canonicalization in symbol leve. adds 15714e90 [clangd] Make symbol name a required parameter for CanonicalI [...] adds 0a043826 [clangd] Debounce streams of updates. adds 8d90c399 [clangd:vscode] check empty/null string correctly. adds bcc23bc2 [clangd:vscode] Bump clangd-vscode version to 0.0.4. adds 73995c3e [clang] Fix use-after-free on code completion adds 9a53af97 [clangd] Use higher timoout values in TUSchedulerTest::Debounce adds 87c04f56 Adds a clang-tidy test for a failing assertion in the misc-mi [...] adds f3e73616 [clangd] Extract ClangdServer::Options struct. adds eff7cf98 [clangd] Fix unintentionally loose fuzzy matching, and the te [...] adds 154be247 [clangd] Sort includes when formatting code or inserting new [...] adds 5902ab46 [clangd] Fix -Wpedantic warning, NFC. adds 89f02bf2 [clangd] Address missed comments from D44003 adds 215e4069 [clang-tidy] Fix one corner case in make-unique check. adds 5383c119 [clangd] Don't end completion item labels with '::' new c80cfc0e Creating branches/google/stable and tags/google/stable/2018-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: clang-move/ClangMove.cpp | 49 +- clang-move/ClangMove.h | 6 +- clang-query/QueryParser.cpp | 54 +- clang-query/QueryParser.h | 1 - clang-tidy/ClangTidy.cpp | 17 +- clang-tidy/ClangTidy.h | 4 +- clang-tidy/add_new_check.py | 52 +- clang-tidy/android/CloexecAccept4Check.cpp | 2 +- clang-tidy/android/CloexecEpollCreate1Check.cpp | 2 +- clang-tidy/android/CloexecInotifyInit1Check.cpp | 2 +- clang-tidy/android/CloexecOpenCheck.cpp | 2 +- clang-tidy/android/CloexecSocketCheck.cpp | 2 +- clang-tidy/boost/UseToStringCheck.cpp | 2 + clang-tidy/bugprone/BugproneTidyModule.cpp | 42 + clang-tidy/bugprone/CMakeLists.txt | 14 + clang-tidy/bugprone/DanglingHandleCheck.cpp | 8 +- .../ForwardingReferenceOverloadCheck.cpp | 4 +- .../ForwardingReferenceOverloadCheck.h | 12 +- .../IncorrectRoundingsCheck.cpp} | 12 +- .../IncorrectRoundingsCheck.h} | 16 +- .../{misc => bugprone}/LambdaFunctionNameCheck.cpp | 4 +- .../{misc => bugprone}/LambdaFunctionNameCheck.h | 12 +- .../MacroRepeatedSideEffectsCheck.cpp | 4 +- .../MacroRepeatedSideEffectsCheck.h | 10 +- .../MisplacedWideningCastCheck.cpp | 4 +- .../MisplacedWideningCastCheck.h | 10 +- clang-tidy/bugprone/StringConstructorCheck.cpp | 2 + .../StringIntegerAssignmentCheck.cpp | 4 +- .../StringIntegerAssignmentCheck.h | 10 +- .../StringLiteralWithEmbeddedNulCheck.cpp | 6 +- .../StringLiteralWithEmbeddedNulCheck.h | 12 +- .../SuspiciousEnumUsageCheck.cpp | 4 +- .../{misc => bugprone}/SuspiciousEnumUsageCheck.h | 12 +- .../SuspiciousMissingCommaCheck.cpp | 4 +- .../SuspiciousMissingCommaCheck.h | 12 +- .../SuspiciousSemicolonCheck.cpp | 4 +- .../{misc => bugprone}/SuspiciousSemicolonCheck.h | 12 +- .../SuspiciousStringCompareCheck.cpp | 4 +- .../SuspiciousStringCompareCheck.h | 12 +- .../{misc => bugprone}/SwappedArgumentsCheck.cpp | 4 +- .../{misc => bugprone}/SwappedArgumentsCheck.h | 10 +- clang-tidy/bugprone/ThrowKeywordMissingCheck.cpp | 52 ++ clang-tidy/bugprone/ThrowKeywordMissingCheck.h | 36 + .../UndelegatedConstructorCheck.cpp} | 8 +- .../UndelegatedConstructorCheck.h} | 6 +- clang-tidy/bugprone/VirtualNearMissCheck.cpp | 2 + clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp | 57 ++ clang-tidy/cppcoreguidelines/AvoidGotoCheck.h | 36 + clang-tidy/cppcoreguidelines/CMakeLists.txt | 1 + .../CppCoreGuidelinesTidyModule.cpp | 3 + clang-tidy/cppcoreguidelines/NoMallocCheck.cpp | 2 +- .../ProBoundsArrayToPointerDecayCheck.cpp | 2 + .../cppcoreguidelines/ProTypeMemberInitCheck.cpp | 5 +- clang-tidy/fuchsia/CMakeLists.txt | 3 + clang-tidy/fuchsia/FuchsiaTidyModule.cpp | 9 + clang-tidy/fuchsia/MultipleInheritanceCheck.cpp | 127 +++ clang-tidy/fuchsia/MultipleInheritanceCheck.h | 48 ++ clang-tidy/fuchsia/OverloadedOperatorCheck.cpp | 4 +- .../fuchsia/StaticallyConstructedObjectsCheck.cpp | 60 ++ .../fuchsia/StaticallyConstructedObjectsCheck.h | 37 + clang-tidy/fuchsia/TrailingReturnCheck.cpp | 54 ++ clang-tidy/fuchsia/TrailingReturnCheck.h | 37 + clang-tidy/fuchsia/VirtualInheritanceCheck.cpp | 2 + .../google/GlobalVariableDeclarationCheck.cpp | 4 +- clang-tidy/hicpp/HICPPTidyModule.cpp | 10 +- clang-tidy/hicpp/NoAssemblerCheck.cpp | 15 +- clang-tidy/misc/CMakeLists.txt | 14 - clang-tidy/misc/MiscTidyModule.cpp | 41 - clang-tidy/misc/RedundantExpressionCheck.cpp | 20 +- clang-tidy/modernize/CMakeLists.txt | 1 + clang-tidy/modernize/MakeSmartPtrCheck.cpp | 21 +- clang-tidy/modernize/ModernizeTidyModule.cpp | 3 + clang-tidy/modernize/PassByValueCheck.cpp | 2 + clang-tidy/modernize/ReplaceAutoPtrCheck.cpp | 3 + clang-tidy/modernize/UseDefaultMemberInitCheck.cpp | 4 +- clang-tidy/modernize/UseNullptrCheck.cpp | 6 +- .../modernize/UseUncaughtExceptionsCheck.cpp | 104 +++ clang-tidy/modernize/UseUncaughtExceptionsCheck.h | 37 + clang-tidy/objc/PropertyDeclarationCheck.cpp | 208 +++-- clang-tidy/objc/PropertyDeclarationCheck.h | 4 +- .../performance/UnnecessaryValueParamCheck.cpp | 4 + clang-tidy/readability/CMakeLists.txt | 2 + clang-tidy/readability/NamespaceCommentCheck.cpp | 69 +- clang-tidy/readability/NamespaceCommentCheck.h | 1 + clang-tidy/readability/ReadabilityTidyModule.cpp | 6 + .../readability/RedundantSmartptrGetCheck.cpp | 19 +- clang-tidy/readability/SIMDIntrinsicsCheck.cpp | 152 ++++ clang-tidy/readability/SIMDIntrinsicsCheck.h | 40 + .../{misc => readability}/StringCompareCheck.cpp | 4 +- .../{misc => readability}/StringCompareCheck.h | 12 +- clang-tidy/rename_check.py | 4 +- clang-tidy/tool/ClangTidyMain.cpp | 41 +- clang-tidy/utils/ASTUtils.cpp | 2 +- clang-tidy/utils/TypeTraits.cpp | 3 +- clangd/CMakeLists.txt | 11 +- clangd/ClangdLSPServer.cpp | 372 ++++++--- clangd/ClangdLSPServer.h | 51 +- clangd/ClangdServer.cpp | 680 ++++++++-------- clangd/ClangdServer.h | 284 +++---- clangd/ClangdUnit.cpp | 599 ++++++-------- clangd/ClangdUnit.h | 192 ++--- clangd/ClangdUnitStore.cpp | 77 -- clangd/ClangdUnitStore.h | 98 --- clangd/CodeComplete.cpp | 863 +++++++++++++++------ clangd/CodeComplete.h | 8 +- clangd/CompileArgsCache.cpp | 44 ++ clangd/CompileArgsCache.h | 43 + clangd/Compiler.cpp | 34 +- clangd/Compiler.h | 22 +- clangd/Context.cpp | 14 +- clangd/Context.h | 124 +-- clangd/DraftStore.cpp | 11 + clangd/DraftStore.h | 6 + clangd/Function.h | 38 +- clangd/FuzzyMatch.cpp | 73 +- clangd/FuzzyMatch.h | 13 +- clangd/GlobalCompilationDatabase.cpp | 9 +- clangd/GlobalCompilationDatabase.h | 3 + clangd/Headers.cpp | 145 ++++ clangd/Headers.h | 58 ++ clangd/JSONRPCDispatcher.cpp | 325 ++++---- clangd/JSONRPCDispatcher.h | 33 +- clangd/Logger.cpp | 14 +- clangd/Logger.h | 10 +- clangd/Protocol.cpp | 196 ++++- clangd/Protocol.h | 211 ++++- clangd/ProtocolHandlers.cpp | 23 +- clangd/ProtocolHandlers.h | 44 +- clangd/SourceCode.cpp | 15 +- clangd/SourceCode.h | 6 + clangd/TUScheduler.cpp | 538 +++++++++++++ clangd/TUScheduler.h | 112 +++ clangd/Threading.cpp | 94 +++ clangd/Threading.h | 120 +++ clangd/Trace.cpp | 165 +++- clangd/Trace.h | 49 +- clangd/URI.cpp | 200 +++++ clangd/URI.h | 106 +++ clangd/XRefs.cpp | 237 +++++- clangd/XRefs.h | 11 +- clangd/clients/clangd-vscode/README.md | 25 + clangd/clients/clangd-vscode/package.json | 10 +- clangd/clients/clangd-vscode/src/extension.ts | 20 +- clangd/global-symbol-builder/CMakeLists.txt | 1 + .../GlobalSymbolBuilderMain.cpp | 160 ++-- clangd/index/CanonicalIncludes.cpp | 773 ++++++++++++++++++ clangd/index/CanonicalIncludes.h | 92 +++ clangd/index/FileIndex.cpp | 21 +- clangd/index/FileIndex.h | 5 +- clangd/index/Index.cpp | 31 +- clangd/index/Index.h | 108 ++- clangd/index/MemIndex.cpp | 39 +- clangd/index/MemIndex.h | 5 +- clangd/index/Merge.cpp | 107 +++ clangd/index/Merge.h | 29 + clangd/index/SymbolCollector.cpp | 335 ++++++-- clangd/index/SymbolCollector.h | 52 +- clangd/index/SymbolYAML.cpp | 79 +- clangd/index/SymbolYAML.h | 15 +- clangd/tool/ClangdMain.cpp | 129 ++- docs/ReleaseNotes.rst | 91 ++- ... => bugprone-forwarding-reference-overload.rst} | 6 +- ...ndings.rst => bugprone-incorrect-roundings.rst} | 6 +- ...-name.rst => bugprone-lambda-function-name.rst} | 6 +- .../bugprone-macro-repeated-side-effects.rst | 7 + ...st.rst => bugprone-misplaced-widening-cast.rst} | 6 +- ....rst => bugprone-string-integer-assignment.rst} | 6 +- ... bugprone-string-literal-with-embedded-nul.rst} | 6 +- ...sage.rst => bugprone-suspicious-enum-usage.rst} | 6 +- ...a.rst => bugprone-suspicious-missing-comma.rst} | 6 +- ...colon.rst => bugprone-suspicious-semicolon.rst} | 6 +- ....rst => bugprone-suspicious-string-compare.rst} | 6 +- .../checks/bugprone-swapped-arguments.rst | 6 + .../checks/bugprone-throw-keyword-missing.rst | 21 + ...or.rst => bugprone-undelegated-constructor.rst} | 7 +- .../checks/cppcoreguidelines-avoid-goto.rst | 50 ++ .../checks/fuchsia-multiple-inheritance.rst | 46 ++ .../fuchsia-statically-constructed-objects.rst | 43 + docs/clang-tidy/checks/fuchsia-trailing-return.rst | 35 + docs/clang-tidy/checks/hicpp-avoid-goto.rst | 12 + .../checks/hicpp-undelegated-constructor.rst | 4 +- docs/clang-tidy/checks/list.rst | 38 +- .../checks/misc-definitions-in-headers.rst | 5 +- .../checks/misc-macro-repeated-side-effects.rst | 7 - docs/clang-tidy/checks/misc-swapped-arguments.rst | 7 - .../checks/modernize-use-uncaught-exceptions.rst | 64 ++ .../checks/objc-property-declaration.rst | 40 +- .../checks/readability-simd-intrinsics.rst | 44 ++ ...-compare.rst => readability-string-compare.rst} | 6 +- .../find-all-symbols/STLPostfixHeaderMap.cpp | 4 + include-fixer/tool/CMakeLists.txt | 2 +- test/Unit/lit.cfg | 7 +- test/clang-apply-replacements/crlf.cpp | 2 +- test/clang-move/move-function.cpp | 9 +- test/clang-move/no-move-macro-helpers.cpp | 8 +- .../Inputs/modernize-smart-ptr/initializer_list.h | 1 + test/clang-tidy/Inputs/vfsoverlay/actual_header.h | 1 + test/clang-tidy/Inputs/vfsoverlay/vfsoverlay.yaml | 12 + test/clang-tidy/bugprone-dangling-handle.cpp | 6 +- ... => bugprone-forwarding-reference-overload.cpp} | 4 +- ...ndings.cpp => bugprone-incorrect-roundings.cpp} | 4 +- ...-name.cpp => bugprone-lambda-function-name.cpp} | 12 +- ...ts.c => bugprone-macro-repeated-side-effects.c} | 4 +- ...rone-misplaced-widening-cast-explicit-only.cpp} | 4 +- ...e-misplaced-widening-cast-implicit-enabled.cpp} | 4 +- ....cpp => bugprone-string-integer-assignment.cpp} | 4 +- ... bugprone-string-literal-with-embedded-nul.cpp} | 4 +- ...p => bugprone-suspicious-enum-usage-strict.cpp} | 4 +- ...sage.cpp => bugprone-suspicious-enum-usage.cpp} | 2 +- ...a.cpp => bugprone-suspicious-missing-comma.cpp} | 6 +- ....cpp => bugprone-suspicious-semicolon-fail.cpp} | 6 +- ...colon.cpp => bugprone-suspicious-semicolon.cpp} | 6 +- ...pare.c => bugprone-suspicious-string-compare.c} | 8 +- ....cpp => bugprone-suspicious-string-compare.cpp} | 8 +- ...rguments.cpp => bugprone-swapped-arguments.cpp} | 2 +- test/clang-tidy/bugprone-throw-keyword-missing.cpp | 167 ++++ ... => bugprone-undelegated-constructor-cxx98.cpp} | 2 +- ...or.cpp => bugprone-undelegated-constructor.cpp} | 4 +- test/clang-tidy/cppcoreguidelines-avoid-goto.cpp | 139 ++++ ...ppcoreguidelines-pro-type-member-init-cxx2a.cpp | 19 + .../cppcoreguidelines-pro-type-member-init.cpp | 1 + test/clang-tidy/fuchsia-multiple-inheritance.cpp | 136 ++++ test/clang-tidy/fuchsia-overloaded-operator.cpp | 10 +- .../fuchsia-statically-constructed-objects.cpp | 91 +++ test/clang-tidy/fuchsia-trailing-return.cpp | 23 + .../google-objc-global-variable-declaration.m | 14 +- ...oogle-readability-nested-namespace-comments.cpp | 17 + test/clang-tidy/misc-misplaced-const-cxx17.cpp | 15 + test/clang-tidy/misc-redundant-expression.cpp | 9 +- test/clang-tidy/modernize-make-unique.cpp | 30 + .../modernize-use-default-member-init-bitfield.cpp | 10 + .../modernize-use-uncaught-exceptions.cpp | 79 ++ test/clang-tidy/objc-arc-and-properties.m | 4 +- test/clang-tidy/objc-no-arc-or-properties.m | 4 +- ...om.m => objc-property-declaration-additional.m} | 5 +- test/clang-tidy/objc-property-declaration-custom.m | 9 +- test/clang-tidy/objc-property-declaration.m | 32 +- .../performance-unnecessary-value-param-arc.m | 16 + .../performance-unnecessary-value-param-arc.mm | 16 + ...mplicit-bool-conversion-allow-in-conditions.cpp | 6 + .../readability-redundant-smartptr-get.cpp | 26 +- .../clang-tidy/readability-simd-intrinsics-ppc.cpp | 13 + .../clang-tidy/readability-simd-intrinsics-x86.cpp | 25 + ...-compare.cpp => readability-string-compare.cpp} | 6 +- test/clang-tidy/vfsoverlay.cpp | 8 + test/clangd/authority-less-uri.test | 54 -- test/clangd/completion-snippets.test | 41 + test/clangd/completion.test | 101 ++- test/clangd/crash-non-added-files.test | 34 + test/clangd/diagnostics-preamble.test | 22 - test/clangd/diagnostics.test | 92 +-- test/clangd/execute-command.test | 204 +++-- test/clangd/extra-flags.test | 169 ++-- test/clangd/fixits.test | 487 ++++++------ test/clangd/formatting.test | 394 +++++----- test/clangd/hover.test | 19 + test/clangd/initialize-params-invalid.test | 94 ++- test/clangd/initialize-params.test | 100 ++- test/clangd/input-mirror.test | 145 +--- test/clangd/insert-include.test | 36 + test/clangd/protocol.test | 22 +- test/clangd/rename.test | 89 +-- test/clangd/shutdown-with-exit.test | 13 +- test/clangd/shutdown-without-exit.test | 8 +- test/clangd/signature-help.test | 62 +- test/clangd/test-uri-posix.test | 11 + test/clangd/test-uri-windows.test | 11 + test/clangd/trace.test | 49 +- test/clangd/unsupported-method.test | 43 +- test/clangd/xrefs.test | 124 ++- test/pp-trace/pp-trace-pragma-ms.cpp | 2 +- unittests/clang-move/ClangMoveTests.cpp | 60 +- unittests/clangd/Annotations.cpp | 6 + unittests/clangd/Annotations.h | 8 +- unittests/clangd/CMakeLists.txt | 11 +- unittests/clangd/ClangdTests.cpp | 596 +++++++++----- unittests/clangd/ClangdUnitTests.cpp | 130 ++++ unittests/clangd/CodeCompleteTests.cpp | 595 +++++++++----- unittests/clangd/FileIndexTests.cpp | 78 +- unittests/clangd/FuzzyMatchTests.cpp | 37 +- unittests/clangd/HeadersTests.cpp | 130 ++++ unittests/clangd/IndexTests.cpp | 116 ++- unittests/clangd/Matchers.h | 22 + unittests/clangd/SourceCodeTests.cpp | 48 +- unittests/clangd/SymbolCollectorTests.cpp | 546 ++++++++++++- unittests/clangd/SyncAPI.cpp | 113 +++ unittests/clangd/SyncAPI.h | 45 ++ unittests/clangd/TUSchedulerTests.cpp | 247 ++++++ unittests/clangd/TestFS.cpp | 149 +--- unittests/clangd/TestFS.h | 13 +- unittests/clangd/ThreadingTests.cpp | 65 ++ unittests/clangd/TraceTests.cpp | 9 +- unittests/clangd/URITests.cpp | 203 +++++ unittests/clangd/XRefsTests.cpp | 430 +++++++++- 294 files changed, 13289 insertions(+), 4780 deletions(-) rename clang-tidy/{misc => bugprone}/ForwardingReferenceOverloadCheck.cpp (99%) rename clang-tidy/{misc => bugprone}/ForwardingReferenceOverloadCheck.h (77%) rename clang-tidy/{misc/IncorrectRoundings.cpp => bugprone/IncorrectRoundingsCheck [...] rename clang-tidy/{misc/IncorrectRoundings.h => bugprone/IncorrectRoundingsCheck.h} (67%) rename clang-tidy/{misc => bugprone}/LambdaFunctionNameCheck.cpp (98%) rename clang-tidy/{misc => bugprone}/LambdaFunctionNameCheck.h (79%) rename clang-tidy/{misc => bugprone}/MacroRepeatedSideEffectsCheck.cpp (99%) rename clang-tidy/{misc => bugprone}/MacroRepeatedSideEffectsCheck.h (72%) rename clang-tidy/{misc => bugprone}/MisplacedWideningCastCheck.cpp (99%) rename clang-tidy/{misc => bugprone}/MisplacedWideningCastCheck.h (81%) rename clang-tidy/{misc => bugprone}/StringIntegerAssignmentCheck.cpp (98%) rename clang-tidy/{misc => bugprone}/StringIntegerAssignmentCheck.h (76%) rename clang-tidy/{misc => bugprone}/StringLiteralWithEmbeddedNulCheck.cpp (97%) rename clang-tidy/{misc => bugprone}/StringLiteralWithEmbeddedNulCheck.h (69%) rename clang-tidy/{misc => bugprone}/SuspiciousEnumUsageCheck.cpp (99%) rename clang-tidy/{misc => bugprone}/SuspiciousEnumUsageCheck.h (73%) rename clang-tidy/{misc => bugprone}/SuspiciousMissingCommaCheck.cpp (99%) rename clang-tidy/{misc => bugprone}/SuspiciousMissingCommaCheck.h (76%) rename clang-tidy/{misc => bugprone}/SuspiciousSemicolonCheck.cpp (98%) rename clang-tidy/{misc => bugprone}/SuspiciousSemicolonCheck.h (71%) rename clang-tidy/{misc => bugprone}/SuspiciousStringCompareCheck.cpp (99%) rename clang-tidy/{misc => bugprone}/SuspiciousStringCompareCheck.h (73%) rename clang-tidy/{misc => bugprone}/SwappedArgumentsCheck.cpp (98%) rename clang-tidy/{misc => bugprone}/SwappedArgumentsCheck.h (75%) create mode 100644 clang-tidy/bugprone/ThrowKeywordMissingCheck.cpp create mode 100644 clang-tidy/bugprone/ThrowKeywordMissingCheck.h rename clang-tidy/{misc/UndelegatedConstructor.cpp => bugprone/UndelegatedConstruc [...] rename clang-tidy/{misc/UndelegatedConstructor.h => bugprone/UndelegatedConstructo [...] create mode 100644 clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp create mode 100644 clang-tidy/cppcoreguidelines/AvoidGotoCheck.h create mode 100644 clang-tidy/fuchsia/MultipleInheritanceCheck.cpp create mode 100644 clang-tidy/fuchsia/MultipleInheritanceCheck.h create mode 100644 clang-tidy/fuchsia/StaticallyConstructedObjectsCheck.cpp create mode 100644 clang-tidy/fuchsia/StaticallyConstructedObjectsCheck.h create mode 100644 clang-tidy/fuchsia/TrailingReturnCheck.cpp create mode 100644 clang-tidy/fuchsia/TrailingReturnCheck.h create mode 100644 clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp create mode 100644 clang-tidy/modernize/UseUncaughtExceptionsCheck.h create mode 100644 clang-tidy/readability/SIMDIntrinsicsCheck.cpp create mode 100644 clang-tidy/readability/SIMDIntrinsicsCheck.h rename clang-tidy/{misc => readability}/StringCompareCheck.cpp (98%) rename clang-tidy/{misc => readability}/StringCompareCheck.h (71%) delete mode 100644 clangd/ClangdUnitStore.cpp delete mode 100644 clangd/ClangdUnitStore.h create mode 100644 clangd/CompileArgsCache.cpp create mode 100644 clangd/CompileArgsCache.h create mode 100644 clangd/Headers.cpp create mode 100644 clangd/Headers.h create mode 100644 clangd/TUScheduler.cpp create mode 100644 clangd/TUScheduler.h create mode 100644 clangd/Threading.cpp create mode 100644 clangd/Threading.h create mode 100644 clangd/URI.cpp create mode 100644 clangd/URI.h create mode 100644 clangd/index/CanonicalIncludes.cpp create mode 100644 clangd/index/CanonicalIncludes.h create mode 100644 clangd/index/Merge.cpp create mode 100644 clangd/index/Merge.h rename docs/clang-tidy/checks/{misc-forwarding-reference-overload.rst => bugprone- [...] rename docs/clang-tidy/checks/{misc-incorrect-roundings.rst => bugprone-incorrect- [...] rename docs/clang-tidy/checks/{misc-lambda-function-name.rst => bugprone-lambda-fu [...] create mode 100644 docs/clang-tidy/checks/bugprone-macro-repeated-side-effects.rst rename docs/clang-tidy/checks/{misc-misplaced-widening-cast.rst => bugprone-mispla [...] rename docs/clang-tidy/checks/{misc-string-integer-assignment.rst => bugprone-stri [...] rename docs/clang-tidy/checks/{misc-string-literal-with-embedded-nul.rst => bugpro [...] rename docs/clang-tidy/checks/{misc-suspicious-enum-usage.rst => bugprone-suspicio [...] rename docs/clang-tidy/checks/{misc-suspicious-missing-comma.rst => bugprone-suspi [...] rename docs/clang-tidy/checks/{misc-suspicious-semicolon.rst => bugprone-suspiciou [...] rename docs/clang-tidy/checks/{misc-suspicious-string-compare.rst => bugprone-susp [...] create mode 100644 docs/clang-tidy/checks/bugprone-swapped-arguments.rst create mode 100644 docs/clang-tidy/checks/bugprone-throw-keyword-missing.rst rename docs/clang-tidy/checks/{misc-undelegated-constructor.rst => bugprone-undele [...] create mode 100644 docs/clang-tidy/checks/cppcoreguidelines-avoid-goto.rst create mode 100644 docs/clang-tidy/checks/fuchsia-multiple-inheritance.rst create mode 100644 docs/clang-tidy/checks/fuchsia-statically-constructed-objects.rst create mode 100644 docs/clang-tidy/checks/fuchsia-trailing-return.rst create mode 100644 docs/clang-tidy/checks/hicpp-avoid-goto.rst delete mode 100644 docs/clang-tidy/checks/misc-macro-repeated-side-effects.rst delete mode 100644 docs/clang-tidy/checks/misc-swapped-arguments.rst create mode 100644 docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst create mode 100644 docs/clang-tidy/checks/readability-simd-intrinsics.rst rename docs/clang-tidy/checks/{misc-string-compare.rst => readability-string-compa [...] create mode 100644 test/clang-tidy/Inputs/vfsoverlay/actual_header.h create mode 100644 test/clang-tidy/Inputs/vfsoverlay/vfsoverlay.yaml rename test/clang-tidy/{misc-forwarding-reference-overload.cpp => bugprone-forward [...] rename test/clang-tidy/{misc-incorrect-roundings.cpp => bugprone-incorrect-roundin [...] rename test/clang-tidy/{misc-lambda-function-name.cpp => bugprone-lambda-function- [...] rename test/clang-tidy/{misc-macro-repeated-side-effects.c => bugprone-macro-repea [...] rename test/clang-tidy/{misc-misplaced-widening-cast-explicit-only.cpp => bugprone [...] rename test/clang-tidy/{misc-misplaced-widening-cast-implicit-enabled.cpp => bugpr [...] rename test/clang-tidy/{misc-string-integer-assignment.cpp => bugprone-string-inte [...] rename test/clang-tidy/{misc-string-literal-with-embedded-nul.cpp => bugprone-stri [...] rename test/clang-tidy/{misc-suspicious-enum-usage-strict.cpp => bugprone-suspicio [...] rename test/clang-tidy/{misc-suspicious-enum-usage.cpp => bugprone-suspicious-enum [...] rename test/clang-tidy/{misc-suspicious-missing-comma.cpp => bugprone-suspicious-m [...] rename test/clang-tidy/{misc-suspicious-semicolon-fail.cpp => bugprone-suspicious- [...] rename test/clang-tidy/{misc-suspicious-semicolon.cpp => bugprone-suspicious-semic [...] rename test/clang-tidy/{misc-suspicious-string-compare.c => bugprone-suspicious-st [...] rename test/clang-tidy/{misc-suspicious-string-compare.cpp => bugprone-suspicious- [...] rename test/clang-tidy/{misc-swapped-arguments.cpp => bugprone-swapped-arguments.c [...] create mode 100644 test/clang-tidy/bugprone-throw-keyword-missing.cpp rename test/clang-tidy/{misc-undelegated-constructor-cxx98.cpp => bugprone-undeleg [...] rename test/clang-tidy/{misc-undelegated-constructor.cpp => bugprone-undelegated-c [...] create mode 100644 test/clang-tidy/cppcoreguidelines-avoid-goto.cpp create mode 100644 test/clang-tidy/cppcoreguidelines-pro-type-member-init-cxx2a.cpp create mode 100644 test/clang-tidy/fuchsia-multiple-inheritance.cpp create mode 100644 test/clang-tidy/fuchsia-statically-constructed-objects.cpp create mode 100644 test/clang-tidy/fuchsia-trailing-return.cpp create mode 100644 test/clang-tidy/google-readability-nested-namespace-comments.cpp create mode 100644 test/clang-tidy/misc-misplaced-const-cxx17.cpp create mode 100644 test/clang-tidy/modernize-use-default-member-init-bitfield.cpp create mode 100644 test/clang-tidy/modernize-use-uncaught-exceptions.cpp copy test/clang-tidy/{objc-property-declaration-custom.m => objc-property-declarat [...] create mode 100644 test/clang-tidy/performance-unnecessary-value-param-arc.m create mode 100644 test/clang-tidy/performance-unnecessary-value-param-arc.mm create mode 100644 test/clang-tidy/readability-simd-intrinsics-ppc.cpp create mode 100644 test/clang-tidy/readability-simd-intrinsics-x86.cpp rename test/clang-tidy/{misc-string-compare.cpp => readability-string-compare.cpp} (96%) create mode 100644 test/clang-tidy/vfsoverlay.cpp delete mode 100644 test/clangd/authority-less-uri.test create mode 100644 test/clangd/completion-snippets.test create mode 100644 test/clangd/crash-non-added-files.test delete mode 100644 test/clangd/diagnostics-preamble.test create mode 100644 test/clangd/hover.test create mode 100644 test/clangd/insert-include.test create mode 100644 test/clangd/test-uri-posix.test create mode 100644 test/clangd/test-uri-windows.test create mode 100644 unittests/clangd/ClangdUnitTests.cpp create mode 100644 unittests/clangd/HeadersTests.cpp create mode 100644 unittests/clangd/SyncAPI.cpp create mode 100644 unittests/clangd/SyncAPI.h create mode 100644 unittests/clangd/TUSchedulerTests.cpp create mode 100644 unittests/clangd/ThreadingTests.cpp create mode 100644 unittests/clangd/URITests.cpp