Skip to content

Merge stable/20221013 into swift/release/5.9 #6619

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 115 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
8593e97
[TSAN][Darwin] Forward declare spinlock functions on darwin for TSAN …
thetruestblue Mar 21, 2023
442d36f
Merge pull request #6529 from apple/cherrypick/spinlock
thetruestblue Mar 24, 2023
86b7ccb
[lldb/test] Update error message in debug-types-signature-loop.s
labath Mar 1, 2023
33e9bd1
Merge pull request #6533 from felipepiovezan/felipe/fix_ubuntu_test
felipepiovezan Mar 24, 2023
3600f9f
Fix backtick handling in parsed commands.
jimingham Mar 24, 2023
cb34fb7
[lldb] Annotate remaining swift tests with @swiftTest
bulbazord Mar 24, 2023
bf94658
[lldb][CMake] Further gate swift-specific CMake code behind LLDB_ENAB…
bulbazord Mar 24, 2023
8800893
Don't expect what newlines look like - never works on Windows.
jimingham Mar 24, 2023
b5f0971
Merge pull request #6535 from jimingham/backtick-in-parsed
jimingham Mar 24, 2023
65ba742
[lldb] Remove errant call to SBReproducer.SetWorkingDirectory
JDevlieghere Mar 25, 2023
952bdd2
Merge pull request #6536 from apple/🍒/navy/0016f476ab1f
JDevlieghere Mar 25, 2023
d7024c4
TypeSystem: early exit if there are 0 imports
compnerd Mar 27, 2023
ed3ceb9
[clang][cas] Factor IncludeTreeBuilder out of IncludeTreeActionConsumer
benlangmuir Mar 15, 2023
d90d38e
[clang][cas] Remove PPCallbacks from DependencyActionController
benlangmuir Mar 15, 2023
2e15f4f
[clang][cas] Scaffolding for modules with include-tree
benlangmuir Mar 15, 2023
fb59fd3
[clang][cas] Move IncludeFile after IncludeTree in the header NFC
benlangmuir Mar 22, 2023
5fe5431
[clang][cas] Move IncludeFile[List] to IncludeTree::File[List] NFC
benlangmuir Mar 22, 2023
a21d74f
[clang][cas] Basic building and importing modules with include-tree
benlangmuir Mar 15, 2023
a82079c
[clang][cas] include-tree support for submodule visibility
benlangmuir Mar 16, 2023
c9d3aae
[clang][cas] Handle include-tree for a file considered part of the mo…
benlangmuir Mar 16, 2023
0c76a3a
[clang][cas] Add a test for include-tree with explicit imports
benlangmuir Mar 16, 2023
3b02d04
[dsymutil] Add the ability to generate universal binaries with a fat6…
JDevlieghere Mar 27, 2023
4bb0e89
[clang][cas] Move include-tree and cas-fs IDs out of Module into ASTC…
benlangmuir Mar 23, 2023
734531f
[clang][cas] IncludeTree filesystem merges from imported PCH/modules
benlangmuir Mar 23, 2023
1fa976b
[clang][cas] Create explicit IncludeTree::ModuleMap
benlangmuir Mar 22, 2023
c9b7511
[clang][cas] Add tests for include-tree module map
benlangmuir Mar 23, 2023
4b6a64e
[clang][cas] Correctly split out modules that are only imported for v…
benlangmuir Mar 23, 2023
50087ab
[clang][cas] Fix include-tree with pch importing public/private modules
benlangmuir Mar 23, 2023
5a0e470
[clang][cas] Make missing include-tree id an error
benlangmuir Mar 24, 2023
29f4935
[clang][cas] Allow non-existent fmodule-name
benlangmuir Mar 26, 2023
5d9a934
[clang][cas] Switch to chained representation of IncludeTree::FileList
benlangmuir Mar 27, 2023
e3288df
[clang][cas] Add simple prefix-mapping test for include-tree modules
benlangmuir Mar 26, 2023
d5226b1
[clang][cas] Skip duplicates in forEachFile
benlangmuir Mar 27, 2023
2ed7779
[clang][cas] Update tests for stable/20221013 branch
benlangmuir Mar 28, 2023
06e3020
[dsymutil] Initialize the debug map before loading the main binary
JDevlieghere Mar 28, 2023
25f90c6
Merge pull request #6542 from benlangmuir/include-tree-modules-stable
benlangmuir Mar 28, 2023
9ba3d7a
[lldb] Add ability to hide the root name of a value
kastiglione Mar 24, 2023
1daebf8
Merge pull request #6543 from apple/🍒/navy/568be31c9e50
JDevlieghere Mar 28, 2023
6702301
[lldb] Support Universal Mach-O binaries with a fat64 header
JDevlieghere Mar 28, 2023
372efe7
[libclang] Add APIs to report dependency scanning info as opaque objects
akyrtzi Mar 21, 2023
e8395d1
[clang][cas] Fall back to textual include for missing inferred submod…
benlangmuir Mar 28, 2023
9bd3727
Merge pull request #6541 from apple/🍒/navy/4d683f7fa7d4
JDevlieghere Mar 29, 2023
ace14ca
Merge pull request #6546 from apple/🍒/navy/fda53ad9374b
JDevlieghere Mar 29, 2023
58245be
Merge pull request #6548 from akyrtzi/pr/stable/libclang-opaque-depscan
akyrtzi Mar 29, 2023
182443f
[lldb] Fix value printing for a specific case
kastiglione Mar 27, 2023
f388e67
[lldb] Fix dwim-print error message for missing expr
kastiglione Mar 9, 2023
66e9cce
Merge pull request #6532 from bulbazord/20221013/guard-swift-changes
bulbazord Mar 30, 2023
e2c55df
Revert "[lldb] Disable po tests in TestSwiftPOSysTypes"
kastiglione Mar 30, 2023
67e69d5
X86: force enable the mandatory tailcall on Win64
compnerd Feb 14, 2023
894d63a
[DWARFLinker] Honor verbose flag for input verification
JDevlieghere Mar 30, 2023
2a753e0
Merge pull request #6564 from apple/🍒/navy/9f8678b38cd5
JDevlieghere Mar 31, 2023
7895f31
[clang][ExtractAPI] Reland ExtractAPI for libclang improvements
daniel-grumberg Mar 30, 2023
4faf613
[lldb] Update for full enablement of experimental string processing
hamishknight Mar 31, 2023
9f1a8d7
[clang] Add "transparent_stepping" attribute
augusto2112 Mar 30, 2023
23ea83a
[lldb] Report clang module build remarks
kastiglione Dec 14, 2022
24b4087
[lldb] Add an SB API to get progress events as SBStructuredData
JDevlieghere Feb 10, 2023
11a2593
[lldb] Add the ability to provide a message to a progress event update
JDevlieghere Feb 12, 2023
95525ba
[lldb] Use one Progress event per root module build
kastiglione Mar 23, 2023
a5cde6a
[libclang/depscan] Fix use-after-free issue when using diagnostics of…
akyrtzi Mar 31, 2023
2af4818
[lldb] Add support for the DW_AT_trampoline attribute with a boolean
augusto2112 Mar 31, 2023
b807ec4
[clang/cas/dep-scan] Include the translation unit cache key in the sc…
akyrtzi Mar 21, 2023
7907f5e
[clang] Set ShowInSystemHeader for module-build and module-import rem…
kastiglione Dec 8, 2022
3bcf77d
Merge pull request #6570 from akyrtzi/pr/stable/scanning-diags
akyrtzi Apr 1, 2023
f72221d
Merge pull request #6575 from akyrtzi/pr/stable/cache-keys-in-scandep…
akyrtzi Apr 1, 2023
b88dc63
Merge pull request #6565 from augusto2112/cherry-pick-trampoline-support
augusto2112 Apr 1, 2023
a90ad0e
[lldb] Add Swift/C++ backward interop expression evaluation tests
augusto2112 Apr 1, 2023
c735017
Merge pull request #6574 from augusto2112/backward-expr
augusto2112 Apr 2, 2023
1c98165
[lldb] Skip TestSwiftBackwardInteropExpressions in Linux
augusto2112 Apr 2, 2023
41f8814
Merge pull request #6578 from augusto2112/skip-back=interop-linux
augusto2112 Apr 2, 2023
f5c0e15
Merge pull request #6567 from hamishknight/enable-regex-for-real
hamishknight Apr 3, 2023
b355564
Mark Swift test as one
adrian-prantl Apr 3, 2023
2d4782c
Make test more robust against codegen fluctuations
adrian-prantl Apr 3, 2023
458881b
[libclang][cas] Expose the module and TU cache keys from the libclang…
akyrtzi Mar 22, 2023
df65182
[libclang][cas] Avoid using `CachingOnDiskFileSystem` when include-tr…
akyrtzi Apr 3, 2023
26da45b
Make test more robust
adrian-prantl Apr 3, 2023
de3346a
Make test more robust. It's not guaranteed that a Variable remains us…
adrian-prantl Apr 3, 2023
043436d
Using global variable in xnu kernel, set # of addressable bits
jasonmolenda Apr 3, 2023
636cdde
Make test more robust
adrian-prantl Apr 3, 2023
af4983e
Relax stepping test
adrian-prantl Apr 3, 2023
d371822
Merge pull request #6582 from akyrtzi/pr/stable/libclang-cache-keys
akyrtzi Apr 3, 2023
0ce6be1
Merge pull request #6587 from jasonmolenda/r107445318-set-addressable…
jasonmolenda Apr 3, 2023
ba1a0a0
Merge pull request #6583 from adrian-prantl/lldb-cleanups
adrian-prantl Apr 4, 2023
aa434c9
Merge pull request #6586 from akyrtzi/pr/stable/stop-using-cachingond…
akyrtzi Apr 4, 2023
2d2bb9c
[clang][cas] Extend fix for private modules to module builds
benlangmuir Mar 31, 2023
f158ada
[clang][deps] Remove -coverage-data-file and -coverage-notes-file fro…
benlangmuir Mar 30, 2023
4937431
[clang][cas] Strip -coverage-data-file and -coverage-notes-file from PCH
benlangmuir Mar 30, 2023
d91b1ce
[clang][cas] Move -fdepscan-prefix-map-* options to clang driver
benlangmuir Mar 29, 2023
e11ea60
[libclang][cas] Update for prefix mapping API change
benlangmuir Apr 4, 2023
c9e56ba
[clang][cas] Add a depscan-prefix-map feature flag
benlangmuir Apr 4, 2023
1a993ea
[clang][cas] Prefix map -fdepfile-entry
benlangmuir Mar 30, 2023
fd871ab
[clang][modules] Handle explicit modules when checking for .Private -…
benlangmuir Apr 3, 2023
0042dc2
[clang][cas] Switch to include-tree by default
benlangmuir Apr 3, 2023
24e2e4c
[libclang][cas] Fix local path that showed up in test
benlangmuir Apr 4, 2023
5d78d48
Merge pull request #6593 from benlangmuir/cp-stable-44
akyrtzi Apr 5, 2023
0c0bb5a
[Support] Fix module build for ScopedDurationTimer
cachemeifyoucan Apr 4, 2023
090ef9a
[VirtualOutput] Add option to only overwrite output if content is dif…
cachemeifyoucan Jan 23, 2023
d8c58b2
[VirtualOutputBackend] Add HashingOutputBackend
cachemeifyoucan Jan 24, 2023
50a89bc
[lldb] Fix lldb build after swift ASTContext change
cachemeifyoucan Jan 26, 2023
3980f4d
[clang][deps] NFC: Don't collect PCH input files
jansvoboda11 Apr 5, 2023
799f0e6
[clang][deps] NFC: Make PCH test more debuggable
jansvoboda11 Apr 5, 2023
ba36f09
[lldb] Consider all breakpoints in breakpoint detection
kpdev Jan 25, 2023
db9ff13
[lldb] Log Swift object description messages to expr channel
kastiglione Apr 4, 2023
1d17aac
Merge pull request #6605 from jimingham/still-dont-select-internal
jimingham Apr 6, 2023
c31a24b
Fix doxygen comment
cachemeifyoucan Apr 6, 2023
4473833
[lldb][test] Replace use of p with expression in Shell tests (NFC)
kastiglione Mar 16, 2023
538cb04
[lldb] Convert more tests to use `expression` directly (NFC)
kastiglione Apr 5, 2023
d3767c2
Merge pull request #6604 from apple/jan_svoboda/scanner-cherry-pick
jansvoboda11 Apr 6, 2023
c1b4d2d
[lldb] Replace use of p with expression in (Swift) shell tests
kastiglione Apr 6, 2023
b4f5ea3
[lldb] Change dwim-print to default to disabled persistent results
kastiglione Mar 8, 2023
ea72fd8
Merge commit '4211cff38f26' from swift/release/5.9 into stable/20221013
Apr 7, 2023
8ef0b2a
Merge commit 'f8abdeca39af' from swift/release/5.9 into stable/20221013
Apr 7, 2023
8277d73
Merge commit 'd41f263a5bcf' from swift/release/5.9 into stable/20221013
Apr 9, 2023
35e4364
Revert "[lldb] Fix lldb build after swift ASTContext change"
adrian-prantl Apr 10, 2023
44c656a
Revert "[lldb] Skip TestSwiftBackwardInteropExpressions in Linux"
adrian-prantl Apr 11, 2023
d707f32
Revert "[lldb] Add Swift/C++ backward interop expression evaluation t…
adrian-prantl Apr 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions clang/include/clang/Basic/Attr.td
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,12 @@ def Artificial : InheritableAttr {
let SimpleHandler = 1;
}

def TransparentStepping: InheritableAttr {
let Spellings = [Clang<"transparent_stepping">];
let Subjects = SubjectList<[Function]>;
let Documentation = [TransparentSteppingDocs];
}

def XRayInstrument : InheritableAttr {
let Spellings = [Clang<"xray_always_instrument">,
Clang<"xray_never_instrument">];
Expand Down
60 changes: 60 additions & 0 deletions clang/include/clang/Basic/AttrDocs.td
Original file line number Diff line number Diff line change
Expand Up @@ -6924,6 +6924,66 @@ As such, this function attribute is currently only supported on X86 targets.
}];
}

def TransparentSteppingDocs : Documentation {
let Category = DocCatFunction;
let Content = [{
The ``transparent_stepping`` attribute is intended as a hint for debuggers that this
function itself is not interesting, but it calls a function that might be. So, when
stepping in arrives at a function with this attribute, debuggers should transparently
step-in through it into the functions called by the annotated function (but not by
subsequent calls made by those functions), stopping at the first one its normal rules
for whether to stop says to stop at - or stepping out again if none qualify. Also, when
stepping out arrives at a function with this attribute, the debugger should continue
stepping out to its caller.

For example:

.. code-block:: c

int bar(void) {
return 42;
}

__attribute__((transparent_stepping))
int foo(void) {
return bar();
}

int caller(void) {
return foo();
}

Stepping into ``foo`` should step directly into ``bar`` instead, and stepping out of ``bar``
should stop in ``caller``.

Functions with the ``transparent_stepping`` attribute can be chained together:

.. code-block:: c

int baz(void) {
return 42;
}

__attribute__((transparent_stepping))
int bar(void) {
return baz();
}

__attribute__((transparent_stepping))
int foo(void) {
return bar();
}

int caller(void) {
return foo();
}

In this example, stepping into ``foo`` should step directly into ``baz``, and stepping out of
``baz`` should stop in ``caller``.
}];
}


def ReadOnlyPlacementDocs : Documentation {
let Category = DocCatType;
let Content = [{This attribute is attached to a structure, class or union declaration.
Expand Down
2 changes: 2 additions & 0 deletions clang/include/clang/Basic/DiagnosticFrontendKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,10 @@ def warn_module_config_macro_undef : Warning<
def note_module_def_undef_here : Note<
"macro was %select{defined|#undef'd}0 here">;
def remark_module_build : Remark<"building module '%0' as '%1'">,
ShowInSystemHeader,
InGroup<ModuleBuild>;
def remark_module_build_done : Remark<"finished building module '%0'">,
ShowInSystemHeader,
InGroup<ModuleBuild>;
def remark_module_lock : Remark<"locking '%0' to build module '%1'">,
InGroup<ModuleLock>;
Expand Down
1 change: 1 addition & 0 deletions clang/include/clang/Basic/DiagnosticSerializationKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def note_module_file_conflict : Note<

def remark_module_import : Remark<
"importing module '%0'%select{| into '%3'}2 from '%1'">,
ShowInSystemHeader,
InGroup<ModuleImport>;

def err_imported_module_not_found : Error<
Expand Down
Loading