Skip to content

[pull] swiftwasm-release/5.3 from swift/release/5.3 #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 441 commits into from
Apr 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
441 commits
Select commit Hold shift + click to select a range
6c69033
[DebugInfo] Ensure dead store elimination can mark an operand
Mar 30, 2020
d9ba731
[LoopVectorize] Fix crash on "getNoopOrZeroExtend cannot truncate!" (…
vedantk Mar 30, 2020
4554055
[LLDB] Fix handling of bit-fields when there is a base class when par…
shafik Mar 27, 2020
7ab7999
Merge pull request #998 from vedantk/cherry
vedantk Mar 30, 2020
659cfe5
Merge commit '7ab7999b705f' from apple/stable/20200108 into swift/master
Mar 30, 2020
491cf94
[lldb/CMake] Make check-lldb-* work for the standalone build.
JDevlieghere Mar 30, 2020
53a4923
Merge pull request #966 from augusto2112/remove_skip_lldb_swift_tests
adrian-prantl Mar 30, 2020
73c2e17
Merge pull request #999 from shafik/59204123_fix_bit_field_handling_d…
fredriss Mar 30, 2020
564d706
[LLDB] CPlusPlusNameParser does not handles templated operator< properly
shafik Mar 27, 2020
fbec4e2
[LLDB] Initialize temporary token
d0k Mar 30, 2020
bc4b0a1
Merge pull request #1000 from JDevlieghere/🍒/20200108/63aaecd5bebc8cf…
JDevlieghere Mar 30, 2020
82cc7bd
[lldb/DataFormatters] Fix the `$$deference$$` synthetic child
fredriss Jan 20, 2020
1e1f0df
Merge pull request #1004 from fredriss/cherry-pcik-dereference-fix
fredriss Mar 31, 2020
62f58f5
Move TypeSystemSwiftTypeRef into its own file. (NFC)
adrian-prantl Mar 21, 2020
7d07c56
Implement TypeSystemSwiftTypeRef::IsArrayType()
adrian-prantl Mar 21, 2020
e234b41
Implement TypeSystemSwiftTypeRef::IsFunctionType() (NFC)
adrian-prantl Mar 30, 2020
97bdf2b
Move all unimplemented Swift Typesystem functions into the base class…
adrian-prantl Mar 31, 2020
9a05432
Merge pull request #1001 from shafik/60383510_cppnameparser_does_not_…
fredriss Mar 31, 2020
b3c8ec2
[lldb/DWARF] Fix evaluator crash when accessing empty stack.
medismailben Mar 31, 2020
236d023
Merge pull request #1005 from medismailben/apple/stable/20200108
medismailben Mar 31, 2020
8b4148b
Merge pull request #949 from adrian-prantl/typeref-isarray
adrian-prantl Mar 31, 2020
aa70751
Merge pull request #1003 from adrian-prantl/typeref-unimplemented
adrian-prantl Mar 31, 2020
6676c3a
[debugserver/ARM64] Make sure watchpoints hit are attributed correctly.
Mar 31, 2020
a24b128
[pch] Honour -fallow-pch-with-compiler-errors for overall compilation…
benlangmuir Mar 31, 2020
3c890c2
Forward WrapperFrontendAction::shouldEraseOutputFiles()
benlangmuir Mar 31, 2020
ab1ec7c
Fix crash when dyn_casting a potentially null value
augusto2112 Mar 28, 2020
0718eea
Improve reporting when type reconstruction fails
augusto2112 Apr 1, 2020
7ceb84a
Merge pull request #971 from AnthonyLatsis/rename-getfullname-lldb
CodaFi Apr 1, 2020
dfbdf8b
Merge pull request #1009 from benlangmuir/pch-with-errors
shahmishal Apr 1, 2020
e7ae372
Merge pull request #994 from augusto2112/fix_crash_unkwnown_type
vedantk Apr 1, 2020
7c1258e
Merge pull request #1008 from dcci/father-i-need-help
dcci Apr 1, 2020
860d0e8
[llvm-locstats] Fix labels on x-axis of comparison chart
vedantk Mar 31, 2020
5f738ff
[globalisel][legalizer] Fix DebugLoc bugs caught by a prototype lost-…
dsandersllvm Apr 1, 2020
70f3475
Reapply: [Host.mm] Check for the right macro instead of inlining it
vedantk Feb 10, 2020
187b331
Target: print the message with formatting
compnerd Apr 1, 2020
8aa134f
[Refactor] Speculative fix for assert in isBeforeInTranslationUnit()
jkorous-apple Mar 16, 2020
9bf6c87
[Sema] Check that return and argument types of a virtual member funct…
ahatanaka Apr 2, 2020
43b49c9
Merge pull request #1014 from vedantk/cherry
vedantk Apr 2, 2020
06099c0
Merge pull request #1012 from compnerd/print-formatting
compnerd Apr 2, 2020
9e1d28d
Merge pull request #1016 from apple/PR-60888064
ahatanaka Apr 2, 2020
83cc6df
SwiftASTContext: Fix crash in GetArchetypeNames with missing debug info
vedantk Apr 2, 2020
6c7419e
utils: Tweak clang-parse-diagnostics-file for modules includes
dexonsmith Apr 2, 2020
fe7314d
[CodeGen] Add an alignment attribute to all sret parameters
epilk Mar 24, 2020
7ae03e9
Merge pull request #1015 from jkorous-apple/apple/stable/20200108
jkorous-apple Apr 2, 2020
37c2029
Merge commit '7ae03e954e6c' from apple/stable/20200108 into swift/master
Apr 3, 2020
be43a34
Merge pull request #1018 from vedantk/eng/PR-59228966
vedantk Apr 3, 2020
3b84a5f
Make ThreadPlans use TID and Process, rather than Thread *.
jimingham Mar 10, 2020
f9e8072
Make ThreadPlanTracers use TID & Process rather than Thread *.
jimingham Mar 10, 2020
96399ae
Move thread plan stacks into the Process, indexed by TID.
jimingham Mar 10, 2020
0349f1e
Allow the ThreadPlanStackMap to hold the thread plans for threads
jimingham Mar 18, 2020
684a9d1
[Driver] Handle all optimization-record options for Darwin LTO
francisvm Apr 3, 2020
8a81c14
Windows: add very basic support for `DoLoadImage`
compnerd Apr 4, 2020
032f089
Merge pull request #1026 from francisvm/61243768/apple/stable/20200108
francisvm Apr 4, 2020
3cbc7c9
Merge commit '032f089b6487' from apple/stable/20200108 into swift/master
Apr 6, 2020
be34806
[lldb/Test] Convert stdout to str by calling decode('utf-8') on it.
JDevlieghere Mar 13, 2020
c843aed
Merge pull request #1029 from fredriss/python-codec-fix
fredriss Apr 6, 2020
a58edc0
Merge commit '15ae82a75a1f' from apple/stable/20200108 into swift/master
Apr 6, 2020
15ae82a
Merge pull request #1019 from apple/cherry-pick-59270180
epilk Apr 6, 2020
a0d069d
Merge pull request #1028 from compnerd/plugin
adrian-prantl Apr 6, 2020
945c05f
[NFC] Fix performance issue in LiveDebugVariables
OCHyams Apr 2, 2020
fcc7b6d
[AddressSanitizer] Fix for wrong argument values appearing in backtraces
vedantk Mar 31, 2020
4140df1
[DebugInfo] Salvage debug info when sinking loop invariant instructions
OCHyams Apr 1, 2020
cdecc03
Merge pull request #1030 from vedantk/cherry
vedantk Apr 7, 2020
9859b46
Merge commit 'cdecc03bdb11' from apple/stable/20200108 into swift/master
Apr 7, 2020
450af79
[lldb] Fix that a crashing test is marked as unsupported when it prin…
Teemperor Feb 25, 2020
2858517
Merge pull request #1031 from Teemperor/Backport55d4b0d7dd70
Teemperor Apr 7, 2020
949d7b5
Merge commit '2858517f2b15' from apple/stable/20200108 into swift/master
Apr 7, 2020
1eeb3dd
[CodeGenObjC] Fix a crash when attempting to copy a zero-sized bit-fi…
epilk Apr 6, 2020
2eed957
[lldb][NFC] Fix typo in 'watchpoint delete' error message
Teemperor Apr 7, 2020
bf6dea9
Merge pull request #1033 from Teemperor/backport95054aeb07061dbfd6575…
fredriss Apr 7, 2020
d701469
Merge commit 'bf6dea9818dc' from apple/stable/20200108 into swift/master
Apr 7, 2020
f82bfee
[lldb] Move clang-based files out of Symbol
bulbazord Jan 29, 2020
077ce00
[lldb] Move implementation of GetDisplayName to TypeSystem class
Teemperor Feb 12, 2020
8c4f032
[lldb] Let TypeSystemClang::GetDisplayTypeName remove anonymous and i…
Teemperor Feb 19, 2020
4a06c19
Merge pull request #1034 from Teemperor/BackportInlineHiding
Teemperor Apr 7, 2020
45090b2
[MachineCSE] Don't carry the wrong location when hoisting
Apr 6, 2020
5d61a2c
Merge pull request #1032 from apple/cherry-pick-60695105
epilk Apr 7, 2020
cfc3051
Merge pull request #538 from owenv/catch_proposal_support
shahmishal Apr 7, 2020
30511ca
Merge pull request #1036 from dcci/machine-cse
dcci Apr 7, 2020
2cffd7c
[Driver] Only pass LTO remark arguments if the driver asks for it
francisvm Apr 7, 2020
5e13d78
Merge pull request #1025 from jimingham/thread-plans-outlive-threads
jimingham Apr 7, 2020
5a1164b
Don't access reference to a vector after pop_back
d0k Apr 7, 2020
2d9a4b2
Merge pull request #1037 from francisvm/61402840/apple/stable/20200108
francisvm Apr 7, 2020
5fa2642
SwiftFormatters: Harden StringGuts formatter against invalid input
vedantk Apr 7, 2020
d1d2f6e
Merge pull request #1038 from fredriss/cherry-pick-threadplan-lifetim…
fredriss Apr 8, 2020
33154ab
[lldb] Handle new Swift synthesized FileUnitKind. (#1042)
dan-zheng Apr 8, 2020
79bb1dc
Remove the old SecTaskAccess entry from debugserver's plist (#1041)
jasonmolenda Apr 8, 2020
1350828
Don't fail step out if remote server doesn't implement qMemoryRegionI…
jasonmolenda Apr 8, 2020
7c846c1
[analyzer][StreamChecker] Using function description objects - NFC.
balazske Mar 2, 2020
5ecc286
[analyzer][taint] Add isTainted debug expression inspection check
steakhal Mar 3, 2020
3885ecb
[analyzer] FixItHint: Apply and test hints with the Clang-Tidy's script
Mar 4, 2020
18cef5f
[analyzer] AnalyzerOptions: Remove 'fixits-as-remarks'
Mar 4, 2020
401a937
[analyzer] AnalysisDeclContext: Refactor and documentation
Mar 4, 2020
4138074
[analyzer][NFC] Use CallEvent checker callback in GenericTaintChecker
steakhal Mar 4, 2020
f88c884
[analyzer] decode() a bytes object to make Python3 happy
jmorse Mar 4, 2020
59ed9d5
[analyzer] Skip analysis of inherited ctor as top-level function
Mar 9, 2020
e08513c
[Analyzer] Mark constant member functions const in CheckerManager
Mar 9, 2020
76b38c6
[analyzer][NFC] Refactor the checker registration unit test file
Szelethus Sep 12, 2019
8595655
[Analyzer][NFC] Change parameter of NoteTag lambdas to PathSensitiveB…
Mar 10, 2020
3cdb0d8
Convert a reachable llvm_unreachable into an assert.
AaronBallman Mar 10, 2020
501ffc6
[analyzer] Use IgnoreImpCasts() instead of reimplementing it.
nico Mar 31, 2020
f01c275
[analyzer] RetainCountChecker: Add a suppression for OSSymbols.
haoNoQ Apr 1, 2020
68a786d
[analyzer] Fix NSErrorChecker false positives on constructors.
haoNoQ Apr 6, 2020
f27acf0
Merge pull request #1043 from haoNoQ/static-analyzer-cherrypicks-11
haoNoQ Apr 8, 2020
5b39556
Merge pull request #1039 from vedantk/eng/PR-61266673
vedantk Apr 8, 2020
eab0476
[ManualDWARFIndex] Remove dead code, in preparation for moving this f…
Apr 7, 2020
0b060b6
[DWARF] Not all the constant variables are "static".
Apr 8, 2020
d02ff1a
Merge pull request #1044 from dcci/children-of-bodom
dcci Apr 8, 2020
7d0b07c
[IR] Lazily number instructions for local dominance queries
rnk Feb 18, 2020
9a4b0a0
Fix NDEBUG build after instruction ordering
rnk Feb 18, 2020
d591cb3
Merge pull request #1045 from apple/cherry-pick-61462374
epilk Apr 9, 2020
dee0a4c
Merge commit '4a06c1974892' from apple/stable/20200108 into swift/master
fredriss Apr 9, 2020
3bce03e
[ObjC][ARC] Don't remove autoreleaseRV/retainRV pairs if the call isn't
ahatanaka Mar 13, 2020
1989778
[ManualDWARFIndex] Remove dead code, in preparation for moving this f…
Apr 7, 2020
9a42d97
[DWARF] Not all the constant variables are "static".
Apr 8, 2020
df1541a
[SymbolFileDWARF] Remove a swift-specific hack that was working aroun…
Apr 9, 2020
fe86c40
Merge pull request #1048 from apple/PR-59275894
ahatanaka Apr 9, 2020
22f43f1
[CodeGen] Emit destructor calls to destruct compound literals
ahatanaka Mar 10, 2020
526baed
[CodeGen] Emit destructor calls to destruct non-trivial C struct objects
ahatanaka Nov 21, 2019
3d807e2
Add an opque payload field to lldb::Type (NFC).
adrian-prantl Mar 3, 2020
9b6bce2
Add a Type::Payload typedef. (NFC)
adrian-prantl Mar 31, 2020
5f5e02c
Replace uint32_t with typedef (NFC)
adrian-prantl Mar 31, 2020
4996566
Use typedef (NFC)
adrian-prantl Mar 31, 2020
ae5085a
Merge pull request #1051 from apple/PR-51867864
ahatanaka Apr 9, 2020
3e305f9
Fix the type of the capture passed to LambdaIntroducer::addCapture in
ahatanaka Mar 5, 2020
e1771f5
Fix a couple of problems caused by merging ThreadPlanStack changes
jimingham Apr 9, 2020
2f6b2b2
Merge pull request #1053 from jimingham/fix-merge-errors
fredriss Apr 9, 2020
0f8aa95
Fix test broken by simulator triple changes.
adrian-prantl Mar 6, 2020
0247431
Update debugserver test for new ostype names
adrian-prantl Mar 6, 2020
106e664
Make Decl::setOwningModuleID() public. (NFC)
adrian-prantl Mar 3, 2020
859ee78
Add debug info support for Swift/Clang APINotes.
adrian-prantl Mar 4, 2020
960a894
Add newly-missing include
adrian-prantl Mar 12, 2020
b85af12
Revert "Update debugserver test for new ostype names"
adrian-prantl Mar 12, 2020
0141869
Fix typo in parameter name.
adrian-prantl Mar 16, 2020
67d07f7
[lldb][NFC] Refactor TypeSystemClang::GetTypeName
Teemperor Feb 11, 2020
ea9bad1
[lldb][NFC] Make name parameter in AddMethodToCXXRecordType a StringRef
Teemperor Jan 14, 2020
b3eb7b3
Switch to TypeSystemClang over to CreateDeserialized() (NFC)
adrian-prantl Mar 5, 2020
689466f
Correctly initialize the DW_AT_comp_dir attribute of Clang module ske…
adrian-prantl Mar 18, 2020
cff98e9
Don't set the isOptimized flag in module skeleton DICompileUnits.
adrian-prantl Mar 20, 2020
2e1899c
Allow remapping Clang module skeleton CU references with -fdebug-pref…
adrian-prantl Mar 18, 2020
ac0c722
Allow remapping the sysroot with -fdebug-prefix-map.
adrian-prantl Mar 18, 2020
32c673e
Driver: Improve performance of getSDKName()
adrian-prantl Mar 20, 2020
6fd3d2b
Add an -object-path-prefix option to dsymutil
adrian-prantl Mar 18, 2020
7cd3864
Allow remapping Clang module include paths
adrian-prantl Mar 18, 2020
a324394
Unbreak LLDB tests after 96023917e6f
adrian-prantl Mar 27, 2020
f166c19
Add an opque payload field to lldb::Type (NFC).
adrian-prantl Mar 3, 2020
1b880fe
Add a Type::Payload typedef. (NFC)
adrian-prantl Mar 31, 2020
84c0e33
Replace uint32_t with typedef (NFC)
adrian-prantl Mar 31, 2020
c6fd9ac
Merge commit 'fe86c40266bd' from apple/stable/20200108 into swift/master
jimingham Apr 9, 2020
bd2ac39
Add a unit test for TypeSystemSwiftTypeRef::IsFunctionType()
adrian-prantl Apr 10, 2020
e771f60
Fix the master-next build after merging in the ThreadPlanStack changes.
jimingham Apr 9, 2020
210d467
Fix a linker error on Linux
adrian-prantl Apr 10, 2020
40b1400
Merge pull request #1052 from apple/PR-47550338
ahatanaka Apr 10, 2020
dfad7bb
Fix the places where master depended on Target.h including SwiftASTCo…
jimingham Apr 10, 2020
ae50ffb
Merge pull request #1057 from adrian-prantl/linux-linker
adrian-prantl Apr 10, 2020
ab9ffd4
Merge commit 'fe86c40266bd' from apple/stable/20200108 into swift/master
Apr 10, 2020
82b01ff
Merge pull request #1054 from adrian-prantl/59634380
adrian-prantl Apr 10, 2020
004fc39
[lldb][swift] Make sure we have a StackFrame in GetDynamicTypeAndAddress
Teemperor Apr 10, 2020
34ba7ca
Merge pull request #1049 from dcci/open-up-your-eyes-can-you-feel-it
dcci Apr 10, 2020
4f2a041
Merge pull request #1055 from adrian-prantl/function-unittest
adrian-prantl Apr 10, 2020
da6f745
Merge pull request #1007 from adrian-prantl/payload-cherrypick
adrian-prantl Apr 10, 2020
5e64ad7
Remove const qualifier from Modules returned by ExternalASTSource. (NFC)
adrian-prantl Mar 17, 2020
b74718a
Remove const qualifier from Modules returned by ExternalASTSource. (NFC)
adrian-prantl Mar 17, 2020
79045fb
Merge commit '82b01ff975b4' from apple/stable/20200108 into swift/master
adrian-prantl Apr 10, 2020
cf40e73
Merge pull request #1059 from adrian-prantl/deconstify
fredriss Apr 10, 2020
524c693
Implement TypeSystemSwiftTypeRef::GetNumberOfFunctionArguments() (NFC)
adrian-prantl Apr 10, 2020
9195b30
Merge pull request #1060 from adrian-prantl/deconstify-master
fredriss Apr 10, 2020
346b941
Teach the stripNonLineTableDebugInfo pass about the llvm.dbg.addr int…
adrian-prantl Apr 2, 2020
e9e4035
Teach the stripNonLineTableDebugInfo pass about the llvm.dbg.label in…
adrian-prantl Apr 2, 2020
bf07502
Remap the target (Xcode) SDK directory to the host SDK directory.
adrian-prantl Mar 20, 2020
44a5258
Add missing include
adrian-prantl Apr 7, 2020
06f3f4b
Fix unused variable, format, and format string warnings.
echristo Apr 4, 2020
3c58b0f
Preserve the owning module information from DWARF in the synthesized AST
adrian-prantl Mar 4, 2020
11d62fc
Attempt to fix a compile error reported with older compilers and libs…
adrian-prantl Apr 10, 2020
6deae69
Implement TypeSystemSwiftTypeRef::GetFunctionArgumentAtIndex() (NFC)
adrian-prantl Apr 10, 2020
129e448
[Sema] Use the canonical type in function isVector
ahatanaka Mar 13, 2020
1189e91
Merge pull request #1061 from adrian-prantl/getnumargs
adrian-prantl Apr 11, 2020
d87bd25
Merge commit 'cf40e73fcf4a' from apple/stable/20200108 into swift/master
Apr 11, 2020
aeae443
Merge commit '3469c9f93298' from apple/stable/20200108 into swift/master
Apr 11, 2020
3469c9f
Merge pull request #1064 from apple/PR-55983556
ahatanaka Apr 11, 2020
3158f55
Merge pull request #1058 from Teemperor/KeepFrameAroundInGetDynamicTy…
Teemperor Apr 13, 2020
de8b3c2
Add option to limit Debugify to locations (omitting variables)
dsandersllvm Apr 3, 2020
df7160d
Allow MachineFunction to obtain non-const Function (to enable MIR-lev…
dsandersllvm Apr 3, 2020
8489015
Add way to omit debug-location from MIR output
dsandersllvm Apr 6, 2020
05493e9
[DebugInfo][NFC] Early-exit when analyzing for single-location variables
jmorse Apr 8, 2020
b94ebc7
MachineFunction: Copy call site info when duplicating insts
vedantk Apr 8, 2020
16832a5
Merge pull request #1062 from adrian-prantl/59634380
adrian-prantl Apr 13, 2020
84efb9e
Merge pull request #1063 from adrian-prantl/GetNumberOfFunctionArguments
adrian-prantl Apr 13, 2020
759d65e
Check if objc runtime pointer is null before using it
augusto2112 Apr 3, 2020
a27c779
Add contiguous array test
augusto2112 Apr 13, 2020
46a0ba9
Add MIR-level debugify with only locations support for now
dsandersllvm Apr 3, 2020
34e0cf2
Add pass to strip debug info from MIR
dsandersllvm Apr 8, 2020
81fc2b2
Make TargetPassConfig and llc add pre/post passes the same way. NFC
dsandersllvm Apr 8, 2020
04b138a
[mir-strip-debug] Optionally preserve debug info that wasn't from deb…
dsandersllvm Apr 9, 2020
718de63
Add -debugify-and-strip-all to add debug info before a pass and remov…
dsandersllvm Apr 8, 2020
6588fe6
[Debugify] Strip added metadata in the -debugify-each pipeline
vedantk Apr 10, 2020
2d683e3
[InstCombine] Fix debug variance issue in tryToMoveFreeBeforeNullTest
vedantk Apr 10, 2020
e7d9f4c
Remap the target (Xcode) SDK directory to the host SDK directory.
adrian-prantl Mar 20, 2020
abe0c69
Add missing include
adrian-prantl Apr 7, 2020
ec30e00
Fix unused variable, format, and format string warnings.
echristo Apr 4, 2020
ecd83ee
Adapt to upstream changes (XcodeSDK).
adrian-prantl Apr 13, 2020
10d1b56
Implement TypeSystemSwiftTypeRef::IsFunctionPointerType() (NFC)
adrian-prantl Apr 13, 2020
f8655c3
Attempt to fix a compile error reported with older compilers and libs…
adrian-prantl Apr 10, 2020
0bdf7ef
Fix LLDB debug builds
Apr 4, 2020
23739bc
Merge pull request #1069 from jimingham/debug-config-build-fix
fredriss Apr 13, 2020
3c59cc0
Implement TypeSystemSwiftTypeRef::IsPointerType() (NFC)
adrian-prantl Apr 13, 2020
6a3b6b5
[Sanitizer Common] Show command used to launch symbolizer process at …
delcypher Apr 7, 2020
bcffddf
[Darwin] Fix a bug where the symbolizer would examine the wrong process.
delcypher Apr 7, 2020
fb48ea9
Merge pull request #1066 from vedantk/cherry
vedantk Apr 13, 2020
c5b600e
[Modules] Add more x86 textual headers to the module map
bcardosolopes Apr 13, 2020
129fef1
Merge pull request #1068 from adrian-prantl/IsFunctionPointerType
adrian-prantl Apr 13, 2020
84a6f7c
Implement TypeSystemSwiftTypeRef::IsVoidType() (NFC)
adrian-prantl Apr 13, 2020
cbe1f46
Remove specific implementations of CanPassInRegisters (NFC)
adrian-prantl Apr 13, 2020
9d8f724
Implement TypeSystemSwiftTypeRef::IsReferenceType() (NFC)
adrian-prantl Apr 14, 2020
46781d4
[lldb/DataFormatters] SwiftHashedContainer: Validate bucket count
vedantk Apr 14, 2020
deba551
Simplify test (NFC)
adrian-prantl Apr 14, 2020
dd616f3
Implement TypeSystemSwiftTypeRef::GetFunctionArgumentTypeAtIndex() (NFC)
adrian-prantl Apr 14, 2020
b4616a1
Implement TypeSystemSwiftTypeRef::GetFunctionReturnType() (NFC)
adrian-prantl Apr 14, 2020
e495fd9
Implement TypeSystemSwiftTypeRef::GetFunctionArgumentCount() (NFC)
adrian-prantl Apr 14, 2020
55ab006
Merge pull request #1065 from adrian-prantl/xcodesdk
adrian-prantl Apr 14, 2020
9dd2a78
Merge pull request #1070 from adrian-prantl/pointertype
adrian-prantl Apr 14, 2020
3442e48
Merge pull request #1072 from adrian-prantl/voidtype
adrian-prantl Apr 14, 2020
667c024
Merge pull request #1074 from adrian-prantl/reftype
adrian-prantl Apr 14, 2020
f788bf8
Merge pull request #1075 from adrian-prantl/returntype
adrian-prantl Apr 14, 2020
ef37f13
Merge pull request #1067 from vedantk/eng/PR-61718223
vedantk Apr 14, 2020
95d1a2c
Merge pull request #1071 from danliew-apple/cherry-pick-58789439_part2
danliew-apple Apr 14, 2020
ba8cca0
[lldb] Complete return types of CXXMethodDecls to prevent crashing du…
Teemperor Jan 29, 2020
58d95fb
[lldb] Fix another crash in covariant type handling
labath Mar 26, 2020
47df64f
Merge pull request #1073 from bcardosolopes/apple-stable-20200108-x86…
bcardosolopes Apr 14, 2020
01397d1
Merge pull request #1080 from shafik/56671052_fix_covariant_return_ty…
shafik Apr 15, 2020
1be5d83
Bug where insn-based unwind plans on arm64 could be wrong (#1082)
jasonmolenda Apr 15, 2020
e6d4bac
Temporarily revert "Preserve the owning module information from DWARF…
adrian-prantl Apr 15, 2020
ec5d680
[LICM] Try to merge debug locations when sinking.
Apr 15, 2020
30016f8
Merge pull request #1021 from augusto2112/check_if_objc_runtime_null
adrian-prantl Apr 15, 2020
01f9d23
Merge pull request #1083 from adrian-prantl/revert
adrian-prantl Apr 15, 2020
59e1f2f
Merge commit '2675c47d6b92' from apple/stable/20200108 into swift/master
Apr 16, 2020
2675c47
Merge pull request #1085 from dcci/rdar61750950
dcci Apr 15, 2020
4b97308
Update for the removal of the LLVMContext parameter
CodaFi Apr 16, 2020
9357c68
Merge commit 'f1a1c4b8c0ca' from apple/stable/20200108 into swift/master
Apr 17, 2020
f1a1c4b
Remove attach-failed-due-to-SIP checks which were not working (#1092)
jasonmolenda Apr 17, 2020
50c387b
Merge pull request #1088 from CodaFi/why-I-R-ta
CodaFi Apr 17, 2020
5f8d7b2
Verify that the ShouldStopHere callback actually can produce a step o…
jimingham Apr 17, 2020
1711bf6
[NFC] Introduce a `LateInitialize()` method to `SymbolizerTool` that …
delcypher Apr 15, 2020
cf8a197
[Darwin] Fix symbolization for recent simulator runtimes.
delcypher Apr 15, 2020
86531c4
Merge pull request #1095 from danliew-apple/cherry-pick-58789439_part3
danliew-apple Apr 17, 2020
5e44138
Merge commit '86531c48cba5' from apple/stable/20200108 into swift/master
Apr 18, 2020
a682360
Don't drop ptrauth qualifiers when constructing C++ composite types
ahatanaka Apr 20, 2020
53556b0
Merge pull request #1096 from apple/PR-54603670
ahatanaka Apr 20, 2020
c1dd3a0
Merge commit '53556b0787b2' from apple/stable/20200108 into swift/master
Apr 20, 2020
38f04f0
Merge pull request #1094 from jimingham/check-step-out-from-here
fredriss Apr 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions clang/docs/analyzer/developer-docs/DebugChecks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,28 @@ ExprInspection checks

See clang_analyzer_denote().

- ``void clang_analyzer_isTainted(a single argument of any type);``

Queries the analyzer whether the expression used as argument is tainted or not.
This is useful in tests, where we don't want to issue warning for all tainted
expressions but only check for certain expressions.
This would help to reduce the *noise* that the `TaintTest` debug checker would
introduce and let you focus on the `expected-warning`s that you really care
about.

Example usage::

int read_integer() {
int n;
clang_analyzer_isTainted(n); // expected-warning{{NO}}
scanf("%d", &n);
clang_analyzer_isTainted(n); // expected-warning{{YES}}
clang_analyzer_isTainted(n + 2); // expected-warning{{YES}}
clang_analyzer_isTainted(n > 0); // expected-warning{{YES}}
int next_tainted_value = n; // no-warning
return n;
}

Statistics
==========

Expand Down
5 changes: 5 additions & 0 deletions clang/include/clang/AST/ASTImporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "clang/AST/DeclBase.h"
#include "clang/AST/DeclarationName.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/NestedNameSpecifier.h"
#include "clang/AST/TemplateName.h"
#include "clang/AST/Type.h"
Expand Down Expand Up @@ -349,6 +350,10 @@ class TypeSourceInfo;
return ToOrErr.takeError();
}

/// Import cleanup objects owned by ExprWithCleanup.
llvm::Expected<ExprWithCleanups::CleanupObject>
Import(ExprWithCleanups::CleanupObject From);

/// Import the given type from the "from" context into the "to"
/// context. A null type is imported as a null type (no error).
///
Expand Down
2 changes: 2 additions & 0 deletions clang/include/clang/AST/Decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3500,6 +3500,7 @@ class EnumDecl : public TagDecl {
/// negative enumerators of this enum. (see getNumNegativeBits)
void setNumNegativeBits(unsigned Num) { EnumDeclBits.NumNegativeBits = Num; }

public:
/// True if this tag declaration is a scoped enumeration. Only
/// possible in C++11 mode.
void setScoped(bool Scoped = true) { EnumDeclBits.IsScoped = Scoped; }
Expand All @@ -3516,6 +3517,7 @@ class EnumDecl : public TagDecl {
/// Microsoft-style enumeration with a fixed underlying type.
void setFixed(bool Fixed = true) { EnumDeclBits.IsFixed = Fixed; }

private:
/// True if a valid hash is stored in ODRHash.
bool hasODRHash() const { return EnumDeclBits.HasODRHash; }
void setHasODRHash(bool Hash = true) { EnumDeclBits.HasODRHash = Hash; }
Expand Down
11 changes: 10 additions & 1 deletion clang/include/clang/AST/DeclBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,16 @@ class alignas(8) Decl {
setModuleOwnershipKind(ModuleOwnershipKind::ModulePrivate);
}

/// Set the owning module ID.
public:
/// Set the FromASTFile flag. This indicates that this declaration
/// was deserialized and not parsed from source code and enables
/// features such as module ownership information.
void setFromASTFile() {
FromASTFile = true;
}

/// Set the owning module ID. This may only be called for
/// deserialized Decls.
void setOwningModuleID(unsigned ID) {
assert(isFromASTFile() && "Only works on a deserialized declaration");
*((unsigned*)this - 2) = ID;
Expand Down
25 changes: 12 additions & 13 deletions clang/include/clang/AST/DeclCXX.h
Original file line number Diff line number Diff line change
Expand Up @@ -2387,17 +2387,6 @@ class CXXConstructorDecl final
: ExplicitSpecKind::ResolvedFalse);
}

void setExplicitSpecifier(ExplicitSpecifier ES) {
assert((!ES.getExpr() ||
CXXConstructorDeclBits.HasTrailingExplicitSpecifier) &&
"cannot set this explicit specifier. no trail-allocated space for "
"explicit");
if (ES.getExpr())
*getCanonicalDecl()->getTrailingObjects<ExplicitSpecifier>() = ES;
else
CXXConstructorDeclBits.IsSimpleExplicit = ES.isExplicit();
}

enum TraillingAllocKind {
TAKInheritsConstructor = 1,
TAKHasTailExplicit = 1 << 1,
Expand All @@ -2422,6 +2411,17 @@ class CXXConstructorDecl final
ConstexprSpecKind ConstexprKind,
InheritedConstructor Inherited = InheritedConstructor());

void setExplicitSpecifier(ExplicitSpecifier ES) {
assert((!ES.getExpr() ||
CXXConstructorDeclBits.HasTrailingExplicitSpecifier) &&
"cannot set this explicit specifier. no trail-allocated space for "
"explicit");
if (ES.getExpr())
*getCanonicalDecl()->getTrailingObjects<ExplicitSpecifier>() = ES;
else
CXXConstructorDeclBits.IsSimpleExplicit = ES.isExplicit();
}

ExplicitSpecifier getExplicitSpecifier() {
return getCanonicalDecl()->getExplicitSpecifierInternal();
}
Expand Down Expand Up @@ -2688,8 +2688,6 @@ class CXXConversionDecl : public CXXMethodDecl {

ExplicitSpecifier ExplicitSpec;

void setExplicitSpecifier(ExplicitSpecifier ES) { ExplicitSpec = ES; }

public:
friend class ASTDeclReader;
friend class ASTDeclWriter;
Expand All @@ -2711,6 +2709,7 @@ class CXXConversionDecl : public CXXMethodDecl {

/// Return true if the declartion is already resolved to be explicit.
bool isExplicit() const { return getExplicitSpecifier().isExplicit(); }
void setExplicitSpecifier(ExplicitSpecifier ES) { ExplicitSpec = ES; }

/// Returns the type that this conversion function is converting to.
QualType getConversionType() const {
Expand Down
8 changes: 8 additions & 0 deletions clang/include/clang/AST/DeclTemplate.h
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,10 @@ class ClassTemplateSpecializationDecl
return *TemplateArgs;
}

void setTemplateArgs(TemplateArgumentList *Args) {
TemplateArgs = Args;
}

/// Determine the kind of specialization that this
/// declaration represents.
TemplateSpecializationKind getSpecializationKind() const {
Expand Down Expand Up @@ -1762,6 +1766,10 @@ class ClassTemplateSpecializationDecl
getTemplateSpecializationKind());
}

void setSpecializedTemplate(ClassTemplateDecl *Specialized) {
SpecializedTemplate = Specialized;
}

void setSpecializationKind(TemplateSpecializationKind TSK) {
SpecializationKind = TSK;
}
Expand Down
12 changes: 7 additions & 5 deletions clang/include/clang/AST/ExprCXX.h
Original file line number Diff line number Diff line change
Expand Up @@ -3306,13 +3306,15 @@ class DependentScopeDeclRefExpr final
/// literal is the extent of the enclosing scope.
class ExprWithCleanups final
: public FullExpr,
private llvm::TrailingObjects<ExprWithCleanups, BlockDecl *> {
private llvm::TrailingObjects<
ExprWithCleanups,
llvm::PointerUnion<BlockDecl *, CompoundLiteralExpr *>> {
public:
/// The type of objects that are kept in the cleanup.
/// It's useful to remember the set of blocks; we could also
/// remember the set of temporaries, but there's currently
/// no need.
using CleanupObject = BlockDecl *;
/// It's useful to remember the set of blocks and block-scoped compound
/// literals; we could also remember the set of temporaries, but there's
/// currently no need.
using CleanupObject = llvm::PointerUnion<BlockDecl *, CompoundLiteralExpr *>;

private:
friend class ASTStmtReader;
Expand Down
6 changes: 3 additions & 3 deletions clang/include/clang/AST/ExternalASTSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,21 +173,21 @@ class ExternalASTSource : public RefCountedBase<ExternalASTSource> {
StringRef Path;
StringRef ASTFile;
ASTFileSignature Signature;
const Module *ClangModule = nullptr;
Module *ClangModule = nullptr;

public:
ASTSourceDescriptor() = default;
ASTSourceDescriptor(StringRef Name, StringRef Path, StringRef ASTFile,
ASTFileSignature Signature)
: PCHModuleName(std::move(Name)), Path(std::move(Path)),
ASTFile(std::move(ASTFile)), Signature(Signature) {}
ASTSourceDescriptor(const Module &M);
ASTSourceDescriptor(Module &M);

std::string getModuleName() const;
StringRef getPath() const { return Path; }
StringRef getASTFile() const { return ASTFile; }
ASTFileSignature getSignature() const { return Signature; }
const Module *getModuleOrNull() const { return ClangModule; }
Module *getModuleOrNull() const { return ClangModule; }
};

/// Return a descriptor for the corresponding module, if one exists.
Expand Down
2 changes: 1 addition & 1 deletion clang/include/clang/AST/NonTrivialTypeVisitor.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- NonTrivialTypeVisitor.h - Visitor for non-trivial Types *- C++ --*-===//
//===-- NonTrivialTypeVisitor.h - Visitor for non-trivial Types -*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
1 change: 1 addition & 0 deletions clang/include/clang/AST/TextNodeDumper.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ class TextNodeDumper
void dumpBareDeclRef(const Decl *D);
void dumpName(const NamedDecl *ND);
void dumpAccessSpecifier(AccessSpecifier AS);
void dumpCleanupObject(const ExprWithCleanups::CleanupObject &C);

void dumpDeclRef(const Decl *D, StringRef Label = {});

Expand Down
Loading