This is an automated email from the git hooks/post-receive script.
unknown user pushed a change to branch google/stable in repository clang.
from f9a7dc172e Updating branches/google/stable to r312634 adds 92d51942df [OPENMP] Fix for PR34445: Reduction initializer segfaults at [...] adds f5b39d746a Replacing "or" with "||" to appease MSVC. adds 0040ea0ac5 [OPENMP] Fix for PR33922: New ident_t flags for __kmpc_for_s [...] adds 9b9fbbe14f Fix ARM bare metal driver to support atomics adds 04ff083706 [modules ts] Emit global variables in a module interface uni [...] adds 0c813fa759 [NFC] [CSA] Move AnyFunctionCall::getRuntimeDefinition imple [...] adds 3e4f379cb6 [CSA] [NFC] Move AnalysisContext.h to AnalysisDeclContext.h adds db9e7e24e2 [StaticAnalyzer] Fix failures due to the iteration order of [...] adds 28e6cdf742 [CUDA] Add device overloads for non-placement new/delete. adds 9c9a706598 [modules ts] Ensure that module linkage variables are always [...] adds 775487c265 [modules ts] Add test for [basic.link]p3. adds 0e5289226e Fix off-by-one error in block mangling. adds 3edd9221b2 [mips] Replace Triple::Environment check by the isGNUEnviron [...] adds 8d34d18307 P0702R1: in class template argument deduction from a list of [...] adds 3463a5c99f Fixing incorrectly capitalised regexps. adds a2028619da Refresh the clang format options doc with the recent changes adds cb7a513bac Add an usage example of BreakBeforeBraces adds 4c51de1ebe [clang-format] Fix documentation for AllowAllParametersOfDec [...] adds 824f38dfa3 [clang-format] Add support for C++17 structured bindings. adds 82bebd8899 [OpenCL] Handle taking an address of block captures. adds 6d4cb407f1 [CUDA] Added rudimentary support for CUDA-9 and sm_70. adds 640d10c8b0 [CUDA] When compilation fails, print the compilation mode. adds 9adfcaf8db [OpenCL] Add half load and store builtins adds 5c19ffded1 Add IDNS_Tag to C++ declarations that conflict with tag decl [...] adds d0b70f18d5 Fix validation of the -mthread-model flag in the Clang driver adds fe69623a6b Add target triple to improve the happiness of MSVC buildbots. adds d579a6ffbf [Sema] -Wtautological-compare: handle comparison of unsigned [...] adds 10809bcd26 Update for llvm change. adds 870b07b531 COFF: Implement ThinLTO cache and cache pruning support. adds 62fdde3717 Fix templated type alias completion when using global comple [...] adds b9fefa5ec7 Add _Float16 as a C/C++ source language type adds 185b81b1f8 Revert "Add _Float16 as a C/C++ source language type" adds 0abc73f06c Don't show deleted function (constructor) candidates for cod [...] adds 78a32be113 Fixed a crash in code completion. adds 9fd63e1a9b Updated two annotations for Store.h and CodeGenFunction.h. adds 8236567f98 [Sema] Put tautological comparison of unsigned and zero into [...] adds 87063256b9 Recommit "Add _Float16 as a C/C++ source language type" adds a7577861db Add '\n' in ClangDataCollectorsEmitter adds bfda07d311 Add _Float16 as a C/C++ source language type adds 44f53d3f27 Use EmitPointerWithAlignment to get alignment information of [...] adds 00bf1bb789 Revert rL312801 since it generated some calls from libatomic [...] adds 8f71467d16 Delete empty file test/CodeGenCXX/atomic-align.cpp after the [...] adds 893b1d985f Add some documentation on how to generate the documentation. adds 51a7f4d7ba [Coverage] Precise region termination with deferred regions [...] adds 6c5d281178 Reinstall the patch "Use EmitPointerWithAlignment to get ali [...] adds 5c4cc68ec0 CodeGen: correct arguments for NSFastEnumeration adds 74973037eb Catch more cases with -Wenum-compare adds 3d9068b512 [cxx_status] Change "Clang 5" items from yellow to green now [...] adds 5fa94c9ce1 Fix ownership of the MemoryBuffer in a FrontendInputFile. adds 5ee11e2597 [Basic] Update CMakeLists.txt to handle repo adds 99cd18fcc8 clang fix for LLVM API change: isKnownNonNull -> isKnownNonZero adds f718a22431 set the svn:executable property, seems that it is necessary [...] adds c849b13cb2 [clang][SemaStmtAsm] small refactoring, NFC. adds 1b5154c90e Add objcImplementationDecl matcher adds 9b80cb1f6c Revert r312830: "Reinstall the patch "Use EmitPointerWithAli [...] adds 889a43bfc9 [clang-format] Fixed one-line if statement adds f592eb27fa [AST] Make RecursiveASTVisitor visit TemplateDecls in source order adds e218fafc15 [PCH] Allow VFS to be used for tests that generate PCH files adds aae8a30c39 clang-format: [JS] wrap and indent `goog.setTestOnly` calls. adds 13258ab921 Driver: default to `-fno-use-cxatexit` on Windows adds 440d6c02ac clang-rename: let -force handle multiple renames adds c9445f041c [Lexer] Report more precise skipped regions (PR34166) adds 519beb3eff [ubsan-minimal] Document the new runtime adds bc39e3ce63 [Driver] Support ubsan-minimal on Darwin adds 4321c6686d [codeview] omit debug locations for nested exprs unless colu [...] adds 2c146e5703 Fix broken links to the Itanium CXX ABI adds 1ec89b70e8 [Driver] Fuchsia targets default to -fasynchronous-unwind-tables adds 2d3f7520fc [X86] Lower _mm[256|512]_[mask[z]]_avg_epu[8|16] intrinsics [...] adds 622d54d5a5 Fix recording preamble's conditional stack in skipped PP branches. adds 0810e2be8f [ARM] Option for reading thread pointer from coprocessor register adds 1b7730e7e8 [MS-InlineAsm] Fix cast assertion with vector spills (PR34021) adds ba30de1bbc Limit test to x86 targets adds f88d9631e3 [refactor] add a refactoring action rule that returns symbol [...] adds b6139e055d Fix GCC build error and warnings from r313025 adds 995f767326 Fix PR34021 test on non-x86 build targets adds 7b30399eef Use the VFS from the CompilerInvocation by default adds 90a376e74f clang-format-vs: Update the VSIX ID. adds efd1952be2 [ubsan] Extend default blacklist support to integer/nullabil [...] adds 6370edb752 [Driver] Darwin: Link in the profile runtime archive first adds 067cd9e130 IR: Represent -ggnu-pubnames with a flag on the DICompileUnit. adds 516c46b709 [Driver] MinGW: Remove custom linker detection adds d8106a437c [Driver] Disable uwtable by default in -ffreestanding mode adds af487e2319 Revert "[Driver] MinGW: Remove custom linker detection" adds 39d6e1d7ec [ubsan] Function Sanitizer: Don't require writable text segments adds 8beeb68a1f Tighten up a test case. NFC. adds e9d22cbcf2 [ubsan] Enable -fsanitize=function on Darwin adds b0671c88a3 [Driver] MinGW: Remove custom linker detection adds e52b039707 Revert "[Driver] MinGW: Remove custom linker detection" adds 420a3ebdce libclang: expose `clang_getCursorTLSKind` adds f5081299fa clang/lib/Driver/ToolChains/Darwin.h: Add proper style to co [...] adds 410d429c62 [X86] [PATCH] [intrinsics] Lowering X86 ABS intrinsics to IR [...] adds ec9c00261b [OPENMP] Allow all classes as mappable types. adds 8a058429f7 This adds the _Float16 preprocessor macro definitions. adds 307aefa2b0 Update users of llvm::sys::ExecuteAndWait etc. adds c44a59062e Attempt to fix MSVC build. adds dbca73854b Driver: Make -fwhole-program-vtables a core option so it can [...] adds 98cefd8dc1 [AMDGPU] Change addr space of clk_event_t, queue_t and reser [...] adds 80c7261798 Add more tests for OpenCL atomic builtin functions adds 914987de45 [Fuchsia] Set ENABLE_X86_RELAX_RELOCATIONS for Fuchsia builds adds 26a23ffddf [docs] Update LeakSanitizer documentation to reflect OS X support adds 502ec5ec20 SplitEmptyFunction should be true in the Mozilla coding style adds 065d2d58cc [OPENMP] Fix types for the target specific parameters in deb [...] adds 4470536d89 Mark static member functions as static in CodeViewDebug adds ea180c9c54 Use -- to prevent the driver from confusing paths with flags [...] adds 7f54275c13 [NFC] [Analyzer] Fix RST markup in documentation. adds f9eb14961d [Headers] Fix the return type of _InterlockedCompareExchange_rel adds 5a2269c689 [refactor] add clang-refactor tool with initial testing supp [...] adds 9d0ddfb921 Link clang-refactor with clangAST and clangLex adds 661ccda7ba Link clang-refactor with clangFormat adds 6a56ac5a13 [refactor] Use CommonOptionsParser in clang-refactor adds 1a3d0f5bb3 Fix Refactor/tool-test-support.c test on Windows by avoiding [...] adds c42c6fa1f2 [lit] Force site configs to be run before source-tree configs adds 1af16988a3 Enable __declspec(selectany) on any platform adds 7e78cd79b5 [WebAssembly] Remove invliad lld arguments adds 0d6647b0d0 Fix 2 stage build on some apple bots. adds 98226afd76 [WebAssembly] Fix wasm-toolchain.c tests adds 13a548961d [MSan] Add flag to disable use-after-dtor. adds 36a127d6c7 Diagnostic specific failed condition in a static_assert. adds 763bd9136e [Module map] Introduce a private module re-export directive. adds f7a95215a4 Add /System/Library/PrivateFrameworks as a header search path. adds 9166ea990b Minor cleanups to address feedback from Bruno. NFC adds 0f1110cd00 [MSan] Specify use-after-dtor default value in header. adds 11269d3184 Fix reStructuredText warning. adds 4d9d425d73 [Sema] Correct typos in LHS, RHS before building a binop exp [...] adds 6d42a101dd Revert "[lit] Force site configs to run before source-tree configs" adds 57065b2de4 [clang-format] New flag - BraceWrapping.AfterExternBlock adds a792780cf2 Fix the __interface inheritence rules to work better with IU [...] adds 086aba792d [CUDA] Work around a new quirk in CUDA9 headers. adds 860b42686d [Analyzer] Check function name size before indexing. adds eae7634a77 [Sema] Error out early for tags defined inside an enumeration. adds 88ada1a2d1 This patch fixes https://bugs.llvm.org/show_bug.cgi?id=32352 [...] adds f5779ed24e [X86] Disable _mm512_maskz_set1_epi64 intrinsic on 32-bit ta [...] adds 76889b5ed5 Remove __builtin_wasm_rethrow builtin adds 3144b244f7 Resubmit "[lit] Force site configs to run before source-tree [...] adds 6d55fdd9ee [X86] Use native shuffle vector for the perm2f128 intrinsics adds 893d8dc5ec [docs] add Windows examples to ThinLTO.rst adds f6dda016ee [WebAssembly] Restore __builtin_wasm_rethrow builtin adds ad56fa8643 Remove comment accidentally committed with D36642. NFC. adds e7476fadc9 [X86] Remove unnecessary extra encodings from the CPU name e [...] adds a857498d9e Fix the second half of PR34266: Don't implicitly capture '* [...] adds dcd8d797b2 [X86] Move even more of our CPU to feature mapping switch to [...] adds fea155028f Reformat. adds faa91c43b5 Fix a warning discovered by rL313487. [-Wunused-lambda-capture] adds 5a5f2707cb Revert rL313511, "Fix a warning discovered by rL313487. [-Wu [...] adds 2af104bd92 Another attempt to fix warning discovered by r313487. [-Wunu [...] adds a9eaab1f67 [Sema] Fix a pair of crashes when generating exception speci [...] adds fd4ce662bc [lit] Update clang and lld to use new config helpers. adds cc6a5a338f [Docs] Document cache pruning support for gold adds 0035479637 [Coverage] Use a new API to label gap areas adds b3bac44cb3 [Coverage] Remove deferred region for trailing return, fixes [...] adds 8b3beec439 Fix formatting of lambda introducers with initializers. adds d304062b8c Lowering Mask Set1 intrinsics to LLVM IR adds 9411957410 [Sema] Disallow assigning record lvalues with nested const-q [...] adds a576fcd740 Fix ClangDiagnosticHandler::is*RemarkEnabled members adds cac5bac11b Teach clang to tolerate the 'p = nullptr + n' idiom used by glibc adds e4848b1ad3 [OpenMP] fix seg-faults printing diagnostics with invalid or [...] adds 7a6944054d [Sema] Move some stuff into -Wtautological-unsigned-enum-zer [...] adds a37dbcc751 Revert "[Sema] Move some stuff into -Wtautological-unsigned- [...] adds fdde3c7be7 Fix 32-bit buildbots by removing tests that are dependent on [...] adds 2351bad637 Add override for ClangDiagnosticHandler::isAnyRemarkEnabled() adds cb0d01de81 [Sema][ObjC] Warn about mismatches in attributes between ove [...] adds e077cfd4f9 Add support for attribute 'noescape'. adds b87abe7024 Revert "Add support for attribute 'noescape'." adds a4e2a1bb79 Add support for attribute 'noescape'. adds 8385a295e2 Revert "Add support for attribute 'noescape'." adds 4e8386f480 Implement C++ [basic.link]p8. adds 9c03e2cb50 Fix clang-format's detection of structured bindings. adds 13e9a9c45a clang-format clang-format. adds c0bcf3b945 [Sema] Move some stuff into -Wtautological-unsigned-enum-zer [...] adds 2100b0595f [Sema] CheckTautologicalComparisonWithZero(): always complai [...] adds 9a0f62efc8 Replace r313747, don't always warn on enums, rework testcases. adds f6e021e7e9 Put target deduced from executable name at the start of argu [...] adds 93bd7cd32d Remove offset size check in nullptr arithmetic handling adds aacb703987 [PCH] Fixed preamble breaking with BOM presence (and particu [...] adds abb16417ba Fixed unused variable warning introduced in r313796 causing [...] adds b099f9b869 [OPENMP] Support for re-declarations when checking captured [...] adds 50547958ab [NVPTX] Implemented shfl.sync instruction and supporting int [...] adds 56afb73f73 Give external linkage and mangling to lambdas inside inline [...] adds 734df4f9a7 [MS Compat]Allow __interfaces to have properties. adds a82c23ee67 [MSan] Disable sanitization for __sanitizer_dtor_callback. adds 75e0b9b21c Revert "Give external linkage and mangling to lambdas inside [...] adds 289261b569 [analyzer] Fix an assertion fail in VirtualCallChecker new 9455aa09cb Updating branches/google/stable to r313876
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: bindings/python/clang/cindex.py | 26 ++ bindings/python/tests/cindex/test_tls_kind.py | 37 ++ cmake/caches/Fuchsia-stage2.cmake | 7 + docs/AddressSanitizer.rst | 3 +- docs/ClangFormatStyleOptions.rst | 95 +++- docs/ControlFlowIntegrityDesign.rst | 2 +- docs/LeakSanitizer.rst | 4 +- docs/LibASTMatchersReference.html | 9 + docs/Modules.rst | 28 +- docs/ReleaseNotes.rst | 12 +- docs/ThinLTO.rst | 40 +- docs/Toolchain.rst | 6 +- docs/UndefinedBehaviorSanitizer.rst | 16 +- docs/analyzer/DebugChecks.rst | 18 +- include/clang-c/Index.h | 19 +- include/clang/AST/ASTContext.h | 21 +- include/clang/AST/BuiltinTypes.def | 3 + include/clang/AST/DeclBase.h | 10 +- include/clang/AST/DeclCXX.h | 4 + include/clang/AST/DeclOpenMP.h | 20 +- include/clang/AST/Expr.h | 8 + .../AST/LexicallyOrderedRecursiveASTVisitor.h | 2 - include/clang/AST/RecursiveASTVisitor.h | 10 +- include/clang/AST/Type.h | 7 +- include/clang/ASTMatchers/ASTMatchers.h | 11 + include/clang/Analysis/Analyses/Consumed.h | 2 +- include/clang/Analysis/Analyses/Dominators.h | 2 +- include/clang/Analysis/Analyses/LiveVariables.h | 2 +- include/clang/Analysis/Analyses/PostOrderCFGView.h | 2 +- include/clang/Analysis/Analyses/ThreadSafety.h | 2 +- .../clang/Analysis/Analyses/ThreadSafetyCommon.h | 2 +- .../{AnalysisContext.h => AnalysisDeclContext.h} | 6 +- include/clang/Analysis/ProgramPoint.h | 2 +- include/clang/Basic/Attr.td | 4 +- include/clang/Basic/AttrDocs.td | 33 ++ include/clang/Basic/Builtins.def | 6 + include/clang/Basic/Builtins.h | 6 +- include/clang/Basic/BuiltinsNVPTX.def | 9 + include/clang/Basic/BuiltinsX86.def | 16 - include/clang/Basic/BuiltinsX86_64.def | 3 - include/clang/Basic/Cuda.h | 3 + include/clang/Basic/DiagnosticDriverKinds.td | 4 + include/clang/Basic/DiagnosticGroups.td | 13 +- include/clang/Basic/DiagnosticLexKinds.td | 7 + include/clang/Basic/DiagnosticSemaKinds.td | 62 ++- include/clang/Basic/Module.h | 4 + include/clang/Basic/SourceManager.h | 25 +- include/clang/Basic/Specifiers.h | 1 + include/clang/Basic/TokenKinds.def | 3 + include/clang/Driver/CC1Options.td | 2 + include/clang/Driver/Compilation.h | 14 +- include/clang/Driver/Job.h | 8 +- include/clang/Driver/Options.td | 12 +- include/clang/Format/Format.h | 39 +- include/clang/Frontend/CodeGenOptions.def | 3 + include/clang/Frontend/CompilerInstance.h | 4 +- include/clang/Frontend/FrontendOptions.h | 15 +- include/clang/Frontend/PrecompiledPreamble.h | 20 +- include/clang/Lex/Lexer.h | 27 +- include/clang/Lex/LiteralSupport.h | 1 + include/clang/Lex/PPCallbacks.h | 11 +- include/clang/Lex/PreprocessingRecord.h | 3 +- include/clang/Lex/Preprocessor.h | 14 +- include/clang/Lex/PreprocessorOptions.h | 4 +- include/clang/Parse/Parser.h | 3 + include/clang/Sema/DeclSpec.h | 1 + include/clang/Sema/Sema.h | 19 +- include/clang/Sema/SemaInternal.h | 3 +- include/clang/Serialization/ASTBitCodes.h | 5 + include/clang/Serialization/ASTReader.h | 2 +- .../Core/PathSensitive/AnalysisManager.h | 2 +- .../StaticAnalyzer/Core/PathSensitive/CallEvent.h | 17 +- .../StaticAnalyzer/Core/PathSensitive/CoreEngine.h | 2 +- .../Core/PathSensitive/Environment.h | 2 +- .../Core/PathSensitive/ExplodedGraph.h | 8 +- .../StaticAnalyzer/Core/PathSensitive/MemRegion.h | 2 +- .../StaticAnalyzer/Core/PathSensitive/Store.h | 10 +- .../Core/PathSensitive/SymbolManager.h | 2 +- include/clang/Tooling/Refactoring/AtomicChange.h | 2 + .../clang/Tooling/Refactoring/RefactoringAction.h | 64 +++ .../Refactoring/RefactoringActionRegistry.def | 7 + .../Tooling/Refactoring/RefactoringActionRule.h | 4 + .../RefactoringActionRuleRequirementsInternal.h | 16 +- .../Tooling/Refactoring/RefactoringActionRules.h | 9 +- .../Refactoring/RefactoringActionRulesInternal.h | 13 +- .../Refactoring/RefactoringResultConsumer.h | 5 + .../Tooling/Refactoring/RefactoringRuleContext.h | 15 + .../Tooling/Refactoring/Rename/USRFindingAction.h | 5 + .../Refactoring/SourceSelectionConstraints.h | 15 +- include/clang/module.modulemap | 2 + lib/AST/ASTContext.cpp | 54 ++- lib/AST/ASTDumper.cpp | 10 + lib/AST/Decl.cpp | 12 +- lib/AST/DeclBase.cpp | 11 +- lib/AST/DeclCXX.cpp | 47 ++ lib/AST/DeclPrinter.cpp | 12 + lib/AST/Expr.cpp | 32 ++ lib/AST/ExprClassification.cpp | 3 +- lib/AST/ItaniumMangle.cpp | 10 +- lib/AST/Mangle.cpp | 5 + lib/AST/MicrosoftMangle.cpp | 1 + lib/AST/NSAPI.cpp | 1 + lib/AST/RecordLayoutBuilder.cpp | 2 +- lib/AST/Stmt.cpp | 6 +- lib/AST/StmtPrinter.cpp | 1 + lib/AST/Type.cpp | 15 + lib/AST/TypeLoc.cpp | 1 + lib/ASTMatchers/Dynamic/Registry.cpp | 1 + lib/Analysis/AnalysisDeclContext.cpp | 2 +- lib/Analysis/Consumed.cpp | 2 +- lib/Analysis/LiveVariables.cpp | 2 +- lib/Analysis/PrintfFormatString.cpp | 1 + lib/Analysis/ReachableCode.cpp | 2 +- lib/Analysis/ThreadSafety.cpp | 2 +- lib/Analysis/ThreadSafetyCommon.cpp | 2 +- lib/Analysis/UninitializedValues.cpp | 2 +- lib/Basic/Builtins.cpp | 9 +- lib/Basic/CMakeLists.txt | 33 -- lib/Basic/Cuda.cpp | 12 + lib/Basic/Module.cpp | 5 + lib/Basic/SourceManager.cpp | 11 +- lib/Basic/Targets/AMDGPU.h | 4 + lib/Basic/Targets/NVPTX.cpp | 2 + lib/Basic/Targets/X86.cpp | 150 +++--- lib/Basic/Targets/X86.h | 20 - lib/CodeGen/CGBuiltin.cpp | 83 ++++ lib/CodeGen/CGCall.cpp | 6 +- lib/CodeGen/CGClass.cpp | 1 + lib/CodeGen/CGDebugInfo.cpp | 10 +- lib/CodeGen/CGExpr.cpp | 9 +- lib/CodeGen/CGExprScalar.cpp | 26 +- lib/CodeGen/CGObjC.cpp | 30 +- lib/CodeGen/CGOpenMPRuntime.cpp | 26 +- lib/CodeGen/CGOpenMPRuntime.h | 4 +- lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | 6 +- lib/CodeGen/CGStmt.cpp | 2 +- lib/CodeGen/CGStmtOpenMP.cpp | 11 +- lib/CodeGen/CodeGenAction.cpp | 50 +- lib/CodeGen/CodeGenFunction.cpp | 42 +- lib/CodeGen/CodeGenFunction.h | 12 +- lib/CodeGen/CodeGenModule.cpp | 4 + lib/CodeGen/CodeGenModule.h | 3 + lib/CodeGen/CodeGenTypes.cpp | 6 + lib/CodeGen/CoverageMappingGen.cpp | 125 ++++- lib/CodeGen/CoverageMappingGen.h | 2 +- lib/CodeGen/ItaniumCXXABI.cpp | 1 + lib/CodeGen/TargetInfo.cpp | 19 +- lib/Driver/Compilation.cpp | 19 +- lib/Driver/Job.cpp | 11 +- lib/Driver/SanitizerArgs.cpp | 8 +- lib/Driver/ToolChain.cpp | 5 - lib/Driver/ToolChains/Arch/ARM.cpp | 24 + lib/Driver/ToolChains/Arch/ARM.h | 7 + lib/Driver/ToolChains/Arch/Mips.cpp | 2 +- lib/Driver/ToolChains/BareMetal.cpp | 8 - lib/Driver/ToolChains/BareMetal.h | 2 - lib/Driver/ToolChains/Clang.cpp | 30 +- lib/Driver/ToolChains/Cuda.cpp | 104 +++-- lib/Driver/ToolChains/Darwin.cpp | 49 +- lib/Driver/ToolChains/Darwin.h | 23 +- lib/Driver/ToolChains/Fuchsia.h | 3 + lib/Driver/ToolChains/Gnu.cpp | 4 +- lib/Driver/ToolChains/WebAssembly.cpp | 27 -- lib/Format/BreakableToken.cpp | 111 ++--- lib/Format/ContinuationIndenter.cpp | 40 +- lib/Format/Format.cpp | 48 +- lib/Format/FormatToken.cpp | 6 +- lib/Format/FormatToken.h | 163 ++++--- lib/Format/FormatTokenLexer.cpp | 15 +- lib/Format/SortJavaScriptImports.cpp | 2 +- lib/Format/TokenAnalyzer.cpp | 5 +- lib/Format/TokenAnnotator.cpp | 119 ++--- lib/Format/UnwrappedLineFormatter.cpp | 166 +++++-- lib/Format/UnwrappedLineFormatter.h | 3 +- lib/Format/UnwrappedLineParser.cpp | 116 ++--- lib/Format/UnwrappedLineParser.h | 8 +- lib/Format/WhitespaceManager.cpp | 16 +- lib/Frontend/ASTUnit.cpp | 39 +- lib/Frontend/CompilerInstance.cpp | 27 +- lib/Frontend/CompilerInvocation.cpp | 5 +- lib/Frontend/FrontendAction.cpp | 23 +- lib/Frontend/FrontendActions.cpp | 2 +- lib/Frontend/InitHeaderSearch.cpp | 1 + lib/Frontend/InitPreprocessor.cpp | 31 +- lib/Frontend/PrecompiledPreamble.cpp | 3 +- lib/Headers/__clang_cuda_intrinsics.h | 68 +++ lib/Headers/__clang_cuda_runtime_wrapper.h | 19 +- lib/Headers/avx2intrin.h | 12 +- lib/Headers/avx512bwintrin.h | 71 ++- lib/Headers/avx512fintrin.h | 52 +-- lib/Headers/avx512vlbwintrin.h | 50 +- lib/Headers/avx512vlintrin.h | 69 +-- lib/Headers/cuda_wrappers/new | 51 +- lib/Headers/emmintrin.h | 12 +- lib/Headers/float.h | 14 + lib/Headers/intrin.h | 2 +- lib/Index/USRGeneration.cpp | 1 + lib/Lex/Lexer.cpp | 17 +- lib/Lex/LiteralSupport.cpp | 9 + lib/Lex/ModuleMap.cpp | 44 ++ lib/Lex/PPDirectives.cpp | 67 +-- lib/Lex/PPLexerChange.cpp | 7 +- lib/Lex/PreprocessingRecord.cpp | 5 +- lib/Lex/Preprocessor.cpp | 6 +- lib/Parse/ParseDecl.cpp | 29 +- lib/Parse/ParseExpr.cpp | 1 + lib/Parse/ParseExprCXX.cpp | 3 + lib/Parse/ParseOpenMP.cpp | 85 +++- lib/Parse/ParseTemplate.cpp | 9 +- lib/Parse/ParseTentative.cpp | 3 + lib/Sema/AnalysisBasedWarnings.cpp | 2 +- lib/Sema/DeclSpec.cpp | 2 + lib/Sema/Sema.cpp | 79 +++- lib/Sema/SemaChecking.cpp | 92 ++-- lib/Sema/SemaCodeComplete.cpp | 5 +- lib/Sema/SemaDecl.cpp | 39 +- lib/Sema/SemaDeclCXX.cpp | 518 +++++++++++---------- lib/Sema/SemaDeclObjC.cpp | 58 +-- lib/Sema/SemaExpr.cpp | 300 ++++++++++-- lib/Sema/SemaExprMember.cpp | 48 +- lib/Sema/SemaInit.cpp | 21 + lib/Sema/SemaOpenMP.cpp | 79 +--- lib/Sema/SemaStmt.cpp | 6 +- lib/Sema/SemaStmtAsm.cpp | 8 +- lib/Sema/SemaTemplate.cpp | 37 +- lib/Sema/SemaTemplateDeduction.cpp | 11 + lib/Sema/SemaTemplateInstantiateDecl.cpp | 32 +- lib/Sema/SemaTemplateVariadic.cpp | 1 + lib/Sema/SemaType.cpp | 5 +- lib/Serialization/ASTCommon.cpp | 3 + lib/Serialization/ASTReader.cpp | 14 +- lib/Serialization/ASTReaderDecl.cpp | 29 +- lib/Serialization/ASTWriter.cpp | 12 + lib/Serialization/ASTWriterDecl.cpp | 20 + .../Checkers/CStringSyntaxChecker.cpp | 2 +- .../Checkers/CheckSecuritySyntaxOnly.cpp | 2 +- .../Checkers/ObjCContainersASTChecker.cpp | 2 +- lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | 3 +- lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp | 2 +- lib/StaticAnalyzer/Core/CallEvent.cpp | 16 + lib/StaticAnalyzer/Core/Environment.cpp | 2 +- lib/StaticAnalyzer/Core/MemRegion.cpp | 2 +- .../Core/PrettyStackTraceLocationContext.h | 2 +- lib/StaticAnalyzer/Core/RegionStore.cpp | 2 +- lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp | 3 +- lib/Tooling/CommonOptionsParser.cpp | 12 +- lib/Tooling/Refactoring/AtomicChange.cpp | 9 + lib/Tooling/Refactoring/CMakeLists.txt | 1 + lib/Tooling/Refactoring/RefactoringActions.cpp | 35 ++ lib/Tooling/Refactoring/Rename/RenamingAction.cpp | 68 ++- .../Refactoring/Rename/USRFindingAction.cpp | 11 +- runtime/CMakeLists.txt | 1 + test/Analysis/malloc.mm | 2 +- test/Analysis/reference.cpp | 11 +- test/Analysis/retain-release.m | 6 +- test/Analysis/retain-release.mm | 2 + test/Analysis/virtualcall.cpp | 21 + test/CMakeLists.txt | 1 + test/CXX/basic/basic.link/p8.cpp | 69 +++ .../basic.scope/basic.scope.declarative/p4.cpp | 19 + .../modules-ts/basic/basic.def.odr/p4/module.cpp | 15 +- .../modules-ts/basic/basic.def.odr/p4/module.cppm | 14 +- .../CXX/modules-ts/basic/basic.def.odr/p4/user.cpp | 6 +- test/CXX/modules-ts/basic/basic.link/p3.cppm | 11 + .../over.match.class.deduct/p2.cpp | 31 ++ test/CodeCompletion/crash-func-init.cpp | 4 + test/CodeGen/avx-builtins.c | 6 +- test/CodeGen/avx2-builtins.c | 32 +- test/CodeGen/avx512bw-builtins.c | 280 ++++++++++- test/CodeGen/avx512f-builtins.c | 188 +++++--- test/CodeGen/avx512vl-builtins.c | 140 +++++- test/CodeGen/avx512vlbw-builtins.c | 291 ++++++++++-- test/CodeGen/builtins-nvptx-ptx60.cu | 40 ++ test/CodeGen/builtins-nvptx.c | 21 + test/CodeGen/builtins-x86.c | 4 - test/CodeGen/nullptr-arithmetic.c | 47 ++ test/CodeGen/pr34021.c | 25 + test/CodeGen/sse2-builtins.c | 16 +- test/CodeGen/ssse3-builtins.c | 12 +- test/CodeGen/x86_32-xsave.c | 60 +-- test/CodeGen/x86_64-xsave.c | 120 ++--- .../anonymous-union-member-initializer.cpp | 32 +- test/CodeGenCXX/arm64-constructor-return.cpp | 2 +- test/CodeGenCXX/catch-undef-behavior.cpp | 31 +- test/CodeGenCXX/debug-info-method.cpp | 3 + test/CodeGenCXX/debug-info-ms-abi.cpp | 9 +- test/CodeGenCXX/debug-info-nested-exprs.cpp | 202 ++++++++ test/CodeGenCXX/float16-declarations.cpp | 156 +++++++ test/CodeGenCXX/mangle-ms-cxx11.cpp | 7 +- test/CodeGenCXX/mangle.cpp | 3 +- test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp | 4 +- test/CodeGenCXX/sanitize-dtor-callback.cpp | 3 + test/CodeGenObjC/NSFastEnumeration.m | 16 + test/CodeGenObjCXX/mangle-blocks.mm | 10 +- test/CodeGenOpenCL/atomic-ops-libcall.cl | 27 +- test/CodeGenOpenCL/atomic-ops.cl | 19 + test/CodeGenOpenCL/no-half.cl | 39 ++ test/CodeGenOpenCL/opencl_types.cl | 19 +- test/CoverageMapping/deferred-region.cpp | 173 +++++++ test/CoverageMapping/label.cpp | 25 +- test/CoverageMapping/moremacros.c | 6 +- test/CoverageMapping/preprocessor.c | 53 ++- test/CoverageMapping/return.c | 2 +- test/CoverageMapping/switch.cpp | 6 +- test/CoverageMapping/switchmacro.c | 1 + test/CoverageMapping/trycatch.cpp | 2 +- .../Driver/Inputs/resource_dir/ubsan_blacklist.txt | 0 test/Driver/baremetal.cpp | 10 +- test/Driver/clang-translation.c | 28 ++ test/Driver/cuda-arch-translation.cu | 36 +- test/Driver/cxa-atexit.cpp | 27 ++ test/Driver/darwin-ld.c | 10 + test/Driver/debug-options.c | 2 +- test/Driver/fsanitize-blacklist.c | 6 + test/Driver/fsanitize.c | 18 +- test/Driver/fuchsia.c | 10 +- test/Driver/sanitizer-ld.c | 7 + test/Driver/target-override.c | 16 + test/Driver/wasm-toolchain.c | 14 +- test/Driver/whole-program-vtables.c | 9 + test/Frontend/float16.cpp | 326 +++++++++++++ test/Frontend/optimization-remark-extra-analysis.c | 11 + test/Headers/float16.c | 65 +++ test/Index/code-completion.cpp | 12 + test/Index/complete-constructor-params.cpp | 17 + .../preamble-conditionals-inverted-with-error.cpp | 8 + test/Index/preamble-conditionals-inverted.cpp | 8 + test/Index/skipped-ranges.c | 6 +- test/Lexer/half-literal.cpp | 3 + test/Modules/Inputs/export_as_test.modulemap | 9 + test/Modules/export_as_test.c | 9 + test/OpenMP/declare_reduction_messages.cpp | 18 + test/OpenMP/declare_target_messages.cpp | 8 +- test/OpenMP/distribute_codegen.cpp | 6 +- test/OpenMP/for_codegen.cpp | 6 +- test/OpenMP/ordered_messages.cpp | 8 + test/OpenMP/parallel_for_codegen.cpp | 8 +- test/OpenMP/sections_codegen.cpp | 2 +- test/OpenMP/target_codegen.cpp | 5 +- test/OpenMP/target_map_messages.cpp | 16 +- test/OpenMP/target_parallel_debug_codegen.cpp | 61 +-- test/OpenMP/target_parallel_for_map_messages.cpp | 12 +- .../target_parallel_for_simd_map_messages.cpp | 12 +- test/OpenMP/target_parallel_map_messages.cpp | 12 +- test/OpenMP/target_simd_map_messages.cpp | 12 +- .../target_teams_distribute_map_messages.cpp | 12 +- ..._teams_distribute_parallel_for_map_messages.cpp | 12 +- ...s_distribute_parallel_for_simd_map_messages.cpp | 12 +- .../target_teams_distribute_simd_map_messages.cpp | 12 +- test/OpenMP/target_teams_map_messages.cpp | 16 +- test/OpenMP/target_update_from_messages.cpp | 12 +- test/OpenMP/target_update_to_messages.cpp | 12 +- test/PCH/cxx11-lambdas.mm | 2 +- test/Preprocessor/init.c | 18 +- test/Refactor/LocalRename/Field.cpp | 9 + test/Refactor/tool-common-options.c | 3 + test/Refactor/tool-test-support.c | 41 ++ test/Sema/assign.c | 43 ++ test/Sema/attr-selectany.c | 2 + test/Sema/compare.c | 59 ++- test/Sema/enum.c | 11 + test/Sema/outof-range-constant-compare.c | 145 +++++- test/Sema/pointer-addition.c | 11 +- .../Sema/tautological-unsigned-enum-zero-compare.c | 68 +++ .../tautological-unsigned-enum-zero-compare.cpp | 176 +++++++ test/Sema/tautological-unsigned-zero-compare.c | 47 ++ test/SemaCUDA/error-includes-mode.cu | 7 + test/SemaCXX/attr-selectany.cpp | 3 + test/SemaCXX/compare.cpp | 6 +- test/SemaCXX/cxx1y-generic-lambdas-capturing.cpp | 142 ++++++ test/SemaCXX/enum.cpp | 10 + test/SemaCXX/init-expr-crash.cpp | 31 ++ test/SemaCXX/ms-interface.cpp | 29 ++ test/SemaCXX/ms-iunknown-inline-def.cpp | 8 + test/SemaCXX/ms-iunknown-outofline-def.cpp | 10 + test/SemaCXX/ms-iunknown.cpp | 39 ++ test/SemaCXX/nullptr-arithmetic.cpp | 30 ++ test/SemaCXX/static-assert.cpp | 17 + test/SemaCXX/warn-enum-compare.cpp | 43 ++ test/SemaCXX/warn-unreachable.cpp | 16 +- test/SemaObjC/arc-nsconsumed-errors.m | 13 +- test/SemaObjC/typo-correction.m | 20 + test/SemaObjCXX/typo-correction.mm | 19 + test/SemaOpenCL/invalid-block.cl | 11 + test/Unit/lit.cfg | 67 +-- test/clang-rename/Field.cpp | 15 - test/clang-rename/ForceMulti.cpp | 8 + test/lit.cfg | 236 +--------- test/lit.site.cfg.in | 2 + tools/CMakeLists.txt | 1 + .../source.extension.vsixmanifest.in | 2 +- tools/clang-format/ClangFormat.cpp | 4 +- .../clang-offload-bundler/ClangOffloadBundler.cpp | 4 +- tools/clang-refactor/CMakeLists.txt | 23 + tools/clang-refactor/ClangRefactor.cpp | 359 ++++++++++++++ tools/clang-refactor/TestSupport.cpp | 343 ++++++++++++++ tools/clang-refactor/TestSupport.h | 107 +++++ tools/clang-rename/ClangRename.cpp | 6 - tools/driver/driver.cpp | 11 +- tools/libclang/CIndex.cpp | 16 + tools/libclang/CXType.cpp | 4 +- tools/libclang/Indexing.cpp | 3 +- tools/libclang/libclang.exports | 1 + unittests/ASTMatchers/ASTMatchersNodeTest.cpp | 3 + unittests/Format/FormatTest.cpp | 149 +++++- unittests/Format/FormatTestJS.cpp | 8 +- unittests/Frontend/CMakeLists.txt | 2 + unittests/Frontend/CompilerInstanceTest.cpp | 74 +++ unittests/Frontend/PCHPreambleTest.cpp | 200 ++++++++ .../LexicallyOrderedRecursiveASTVisitorTest.cpp | 2 +- unittests/Tooling/RefactoringActionRulesTest.cpp | 70 ++- utils/TableGen/ClangDataCollectorsEmitter.cpp | 2 +- www/cxx_dr_status.html | 20 +- www/cxx_status.html | 16 +- www/make_cxx_dr_status | 3 - www/menu.html.incl | 0 416 files changed, 9043 insertions(+), 2681 deletions(-) create mode 100644 bindings/python/tests/cindex/test_tls_kind.py rename include/clang/Analysis/{AnalysisContext.h => AnalysisDeclContext.h} (98%) create mode 100644 include/clang/Tooling/Refactoring/RefactoringAction.h create mode 100644 include/clang/Tooling/Refactoring/RefactoringActionRegistry.def create mode 100644 lib/Tooling/Refactoring/RefactoringActions.cpp create mode 100644 test/CXX/basic/basic.link/p8.cpp create mode 100644 test/CXX/basic/basic.scope/basic.scope.declarative/p4.cpp create mode 100644 test/CXX/modules-ts/basic/basic.link/p3.cppm create mode 100644 test/CodeCompletion/crash-func-init.cpp create mode 100644 test/CodeGen/builtins-nvptx-ptx60.cu create mode 100644 test/CodeGen/nullptr-arithmetic.c create mode 100644 test/CodeGen/pr34021.c create mode 100644 test/CodeGenCXX/debug-info-nested-exprs.cpp create mode 100644 test/CodeGenCXX/float16-declarations.cpp create mode 100644 test/CodeGenObjC/NSFastEnumeration.m create mode 100644 test/CodeGenOpenCL/no-half.cl create mode 100644 test/CoverageMapping/deferred-region.cpp copy bindings/python/tests/__init__.py => test/Driver/Inputs/resource_dir/ubsan_bl [...] create mode 100644 test/Driver/cxa-atexit.cpp create mode 100644 test/Driver/target-override.c create mode 100644 test/Frontend/float16.cpp create mode 100644 test/Frontend/optimization-remark-extra-analysis.c create mode 100644 test/Headers/float16.c create mode 100644 test/Index/preamble-conditionals-inverted-with-error.cpp create mode 100644 test/Index/preamble-conditionals-inverted.cpp create mode 100644 test/Modules/Inputs/export_as_test.modulemap create mode 100644 test/Modules/export_as_test.c create mode 100644 test/Refactor/LocalRename/Field.cpp create mode 100644 test/Refactor/tool-common-options.c create mode 100644 test/Refactor/tool-test-support.c create mode 100644 test/Sema/tautological-unsigned-enum-zero-compare.c create mode 100644 test/Sema/tautological-unsigned-enum-zero-compare.cpp create mode 100644 test/Sema/tautological-unsigned-zero-compare.c create mode 100644 test/SemaCUDA/error-includes-mode.cu create mode 100644 test/SemaCXX/init-expr-crash.cpp create mode 100644 test/SemaCXX/ms-iunknown-inline-def.cpp create mode 100644 test/SemaCXX/ms-iunknown-outofline-def.cpp create mode 100644 test/SemaCXX/ms-iunknown.cpp create mode 100644 test/SemaCXX/nullptr-arithmetic.cpp delete mode 100644 test/clang-rename/Field.cpp create mode 100644 test/clang-rename/ForceMulti.cpp create mode 100644 tools/clang-refactor/CMakeLists.txt create mode 100644 tools/clang-refactor/ClangRefactor.cpp create mode 100644 tools/clang-refactor/TestSupport.cpp create mode 100644 tools/clang-refactor/TestSupport.h create mode 100644 unittests/Frontend/CompilerInstanceTest.cpp create mode 100644 unittests/Frontend/PCHPreambleTest.cpp mode change 100644 => 100755 www/menu.html.incl