Skip to content
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

[AutoBump] Merge with 5dac691b (Oct 11) (11) #448

Merged
merged 178 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
8a849a2
Revert "Reapply "[AMDGPU][GlobalISel] Fix load/store of pointer vecto…
metaflow Oct 10, 2024
8306114
[clang][x86] Add constexpr support for _mm_cvtsi32_ss/_mm_cvt_si2ss/_…
RKSimon Oct 10, 2024
ea2b897
[libc++] Remove nonexistent directory from check-generated-output (#1…
ldionne Oct 10, 2024
b94c763
[Fuchsia][CMake] Set output name for libc++ shared library (#111791)
petrhosek Oct 10, 2024
917ada3
[runtimes] Always define cxx_shared, cxx_static & other targets (#80007)
ldionne Oct 10, 2024
f8b7a65
[MLIR][GPU-LLVM] Add in-pass signature update for opencl kernels (#10…
kurapov-peter Oct 10, 2024
55d51dd
[clang][bytecode] Fix temporary lvalue base expression (#111808)
tbaederr Oct 10, 2024
b773da0
[lldb][test] Use $(STRIP) instead of strip in API tests (Darwin-only …
dzhidzhoev Oct 10, 2024
36a0d44
[LLVM][DOCS] Add documentation for 'host' and 'Native' options in LLV…
harrisonGPU Oct 10, 2024
1f919aa
VectorCombine: lift one-use limitation in foldExtractedCmps (#110902)
artagnon Oct 10, 2024
159d694
[libc++] __uglify internal member names of iterators in `bitset` (#11…
frederick-vs-ja Oct 10, 2024
9014920
[ci] Don't add check-all target when pstl project is enabled (#111803)
DavidSpickett Oct 10, 2024
480e7f0
[flang] correctly deal with bind(c) derived type result ABI (#111678)
jeanPerier Oct 10, 2024
6779376
[Dexter] Remove outdated imp dependency (#111833)
SLTozer Oct 10, 2024
a3cd269
[RISCV] Remove {s,u}int_to_fp custom op action for f16/bf16 (#111471)
lukel97 Oct 10, 2024
0a0f100
Revert "[LTO] Run Argument Promotion before IPSCCP" (#111839)
hazzlim Oct 10, 2024
dabb0dd
[MCP] Skip invalidating def constant regs during forward propagation …
vladimirradosavljevic Oct 10, 2024
3737a53
[Coroutines] Support for Custom ABIs (#111755)
TylerNowicki Oct 10, 2024
005e601
[gn] port 0e913237871e (LLDB_TEST_MAKE)
nico Oct 10, 2024
545e059
[libc] Clean up 'vasprintf' implementation (#111761)
jhuber6 Oct 10, 2024
e023d02
[AMDGPU][test]update error dasm test for update-mc-test-check script …
broxigarchen Oct 10, 2024
f59b0c7
[mlir][linalg][nfc] Delete references to args_in/args_out (#111517)
banach-space Oct 10, 2024
058ede0
[lldb][test] Use `xcrun -f strip` for API tests on Darwin (#111842)
dzhidzhoev Oct 10, 2024
77c842f
[clang-apply-replacements] Avoid repeated hash lookups (NFC) (#111783)
kazutakahirata Oct 10, 2024
d2a96d1
[clang-change-namespace] Avoid repeated hash lookups (NFC) (#111784)
kazutakahirata Oct 10, 2024
670a461
[clang-tidy] Avoid repeated hash lookups (NFC) (#111785)
kazutakahirata Oct 10, 2024
35bbfbc
[XRay] Simplify code with DenseMap::operator[] (NFC) (#111786)
kazutakahirata Oct 10, 2024
fc467b4
[AMDGPU] Avoid repeated hash lookups (NFC) (#111787)
kazutakahirata Oct 10, 2024
97a4324
[lld-macho] Fix ICF differentiation of safe_thunks relocs (#111811)
alx32 Oct 10, 2024
4ddc756
Revert "[flang] correctly deal with bind(c) derived type result ABI" …
jeanPerier Oct 10, 2024
a3638f1
[clang] Update string and string_view in lifetimebound tests (#111737)
usx95 Oct 10, 2024
9839b8c
llvm-reduce: Fix assert on invokes with catchswitch (#111838)
arsenm Oct 10, 2024
c042d8f
[RISCV] Use RISCVAsmPrinter::EmitToStreamer for EmitHwasanMemaccessSy…
topperc Oct 10, 2024
c77b107
[lldb] Introduce an always-on system log category/channel (#108495)
JDevlieghere Oct 10, 2024
f5aec03
[clang][analyzer][NFC] Fix strange bracket placement
DavidSpickett Oct 10, 2024
23309d7
[Dexter] Set up ComInterface module to be imported correctly (#111850)
SLTozer Oct 10, 2024
0348373
[mlir][linalg] Introduce transpose semantic to 'linalg.matmul' ops. (…
shahidact Oct 10, 2024
cb5fbd2
[CodeLayout] Do not verify after assigning blocks (#111754)
ellishg Oct 10, 2024
25d9688
[Clang] Extend lifetime of temporaries in mem-default-init for P2718R…
yronglin Oct 10, 2024
2190ffa
[libc] Fix missing namespace declarations
jhuber6 Oct 10, 2024
73e74e4
[clang][frontend] Support applying the annotate attribute to statemen…
ericastor Oct 10, 2024
c04b640
[libc] Add missing config include
jhuber6 Oct 10, 2024
cc9e7cb
[mlir][tosa] Change the type of profile option to ListOption (#111214)
tatwaichong Oct 10, 2024
f2c5aa9
[lldb] Fix a variety of LLDB_LOG format strings
JDevlieghere Oct 10, 2024
0fc3e40
[alpha.webkit.UncountedCallArgsChecker] Skip std::forward in tryToFin…
rniwa Oct 10, 2024
820bab8
[alpha.webkit.UncountedCallArgsChecker] Add the support for trivial C…
rniwa Oct 10, 2024
39a9141
isUncountedPtr should take QualType as an argument. (#110213)
rniwa Oct 10, 2024
36c34ec
[mlir][debug] Support DICommonBlock. (#111706)
abidh Oct 10, 2024
43ba97e
[runtimes][NFC] Reindent CMake files (#111821)
ldionne Oct 10, 2024
3f9998a
[NVPTX] Prefer prmt.b32 over bfi.b32 (#110766)
justinfargnoli Oct 10, 2024
c893e3d
[flang][runtime] Fix runtime crash after bad recoverable OPEN (#111454)
klausler Oct 10, 2024
4f2b65f
[flang] Fix references to destroyed objects (#111582)
klausler Oct 10, 2024
2f22656
[flang] Minor cleanup (move function into /tools.cpp) (#111587)
klausler Oct 10, 2024
7e16571
[lldb][libc++] Hide all libc++ implementation details from stacktrace…
vogelsgesang Oct 10, 2024
7026960
[flang][runtime][NFC] Fix header guard typo (#111741)
clementval Oct 10, 2024
99c8557
Fix GCC build problem with 03483737a7a2
rengolin Oct 10, 2024
453d373
[lsan] Add a few "\n" missing from VReport
vitalybuka Oct 9, 2024
62b3a4b
[AMDGPU] Improve codegen for s_barrier_init (#111866)
jayfoad Oct 10, 2024
ba530e6
[bazel] Add initial clang-doc config (#111779)
keith Oct 10, 2024
d36cef0
[HLSL][DXIL] Implement WaveGetLaneIndex Intrinsic (#111576)
inbelic Oct 10, 2024
b800ff6
[lldb][debugserver][NFC] Simplify macOS thread name fetching. (#111684)
ldm0 Oct 10, 2024
c2063de
Switch DirectX Target to use the Itanium ABI (#111632)
pow2clk Oct 10, 2024
747d8f3
[SandboxVec][DAG] Implement PredIterator (#111604)
vporpo Oct 10, 2024
bb937e2
[LV] Compute value of escaped induction based on the computed end val…
fhahn Oct 10, 2024
1252623
[Coroutines] Improve use of unique_ptr (#111870)
TylerNowicki Oct 10, 2024
f6e93b8
AMDGPU: Minor improvement and cleanup for waterfall loop generation (…
changpeng Oct 10, 2024
e34d614
[Passes] Remove -enable-infer-alignment-pass flag (#111873)
aeubanks Oct 10, 2024
07892aa
[NFC][sanitizer] Clang format sanitizer_thread_registry.cpp
vitalybuka Oct 9, 2024
a4916d2
[SandboxVec][DAG] Refactoring: Move MemPreds from DGNode to MemDGNode…
vporpo Oct 10, 2024
d832a1c
[NVPTX] Only run LowerUnreachable when necessary (#109868)
justinfargnoli Oct 10, 2024
29e192a
[Coroutines] Documentation for custom ABIs (#111781)
TylerNowicki Oct 10, 2024
d5e1de6
[lldb] Implement basic support for reverse-continue (#99736)
rocallahan Oct 10, 2024
f0ed31c
[llvm][PGOCtxProfLowering] Avoid Type::getPointerTo() (NFC) (#111857)
JOE1994 Oct 10, 2024
942fefe
[NFC][sanitizer] Reopen '/proc/%d/task' instead of seek
vitalybuka Oct 10, 2024
69b0b7e
[lldb] Return an llvm::Error from GetFrameBaseValue (#111882)
JDevlieghere Oct 10, 2024
b355426
[lldb] Add include for SBLanguages in lldb-enumerations (#111907)
chelcassanova Oct 10, 2024
36bd9ae
[sanitizer] VReport BeforeFork/AfterFork (#111900)
vitalybuka Oct 10, 2024
86f78c0
[flang] Add a link to the ICS file for the Biweekly Flang Community Call
AlexisPerry Oct 10, 2024
b77fdf5
[lldb] SetErrorStringWithFormatv -> FromErrorStringWithFormatv (NFC)
JDevlieghere Oct 10, 2024
69c0067
[SandboxVec][DAG] Refactoring: Outline code that looks for mem nodes …
vporpo Oct 10, 2024
1954869
[NFC][sanitizer] Fix at_scope_exit name.
vitalybuka Oct 10, 2024
4b5018d
[SLP]Track repeated reduced value as it might be vectorized
alexey-bataev Oct 10, 2024
16ef893
[test] env -u is not supported on AIX, use `unset` instead
Oct 9, 2024
c99b365
Revert "[lldb] Add include for SBLanguages in lldb-enumerations (#111…
jasonmolenda Oct 10, 2024
5deadc6
[NFC][sanitizer] Extract `LoadStatus` (#111909)
vitalybuka Oct 10, 2024
af7fa27
[sanitizer] VReport thread status for failed PTRACE_ATTACH (#111901)
vitalybuka Oct 10, 2024
48545a9
[ThinLTO] Do not duplicate import a function that is actually defined…
huangjd Oct 10, 2024
f02252e
Revert "[lldb] SetErrorStringWithFormatv -> FromErrorStringWithFormat…
augusto2112 Oct 10, 2024
2ff4c25
Revert "[lldb] Implement basic support for reverse-continue (#99736)"
augusto2112 Oct 10, 2024
e9c8f75
[LLDB][Minidump] Have Minidumps save off and properly read TLS data (…
Jlalond Oct 10, 2024
4f29756
[lldb] Implement basic support for reverse-continue (#99736)
rocallahan Oct 10, 2024
fae7d68
[lldb] SetErrorStringWithFormatv -> FromErrorStringWithFormatv (NFC)
JDevlieghere Oct 10, 2024
c686eeb
[lldb] skip ReverseContinue tests on Darwin
jasonmolenda Oct 10, 2024
1bf271d
Revert "[ThinLTO] Do not duplicate import a function that is actually…
huangjd Oct 10, 2024
45cc743
[SandboxVec][DAG][NFC] Add comment about duplicate notes in deps() (#…
vporpo Oct 10, 2024
cc20dd2
[ORC][ELF] Remove the ExecutionSession& argument to ELFNixPlatform::C…
lhames Oct 10, 2024
4f32077
Revert "[lldb] skip ReverseContinue tests on Darwin"
jasonmolenda Oct 10, 2024
a28e7ce
Revert "[lldb] SetErrorStringWithFormatv -> FromErrorStringWithFormat…
jasonmolenda Oct 10, 2024
3bef742
Revert "[lldb] Implement basic support for reverse-continue (#99736)"
jasonmolenda Oct 10, 2024
2647505
[HLSL] Implement the `degrees` intrinsic (#111209)
inbelic Oct 10, 2024
6640dac
[bazel] Add include-cleaner tests (#111924)
keith Oct 10, 2024
1037f57
[lld][elf] Warn if '*' pattern is used multiple times in version scri…
igorkudrin Oct 10, 2024
0add174
[bazel] Port e9c8f75d45ababe7f805078bbf7bda2e7425f1b7 (#111928)
keith Oct 10, 2024
774c953
[NFC][clang] Fix typo in ReleaseNotes (#111930)
yronglin Oct 11, 2024
9c81a24
[asan] Prevent printing invalid parent thread (#111916)
vitalybuka Oct 11, 2024
72fb379
AArch64: Select FCANONICALIZE (#104429)
wzssyqa Oct 11, 2024
6c398ab
[NFC][mlir][spirv] Fix syntax warnings in gen_spirv_dialect.py (#111775)
cmarcelo Oct 11, 2024
e3894f5
[CodeGenPrepare] Convert `ctpop(X) ==/!= 1` into `ctpop(X) u</u> 2/1`…
dtcxzyw Oct 11, 2024
cbfcea1
[libc] Temporarily disable strerror test on NVPTX
jhuber6 Oct 11, 2024
9f8ae78
[lldb-dap] Implement value locations for function pointers (#104589)
vogelsgesang Oct 11, 2024
9882b35
[X86][StrictFP] Combine fcmp + select to fmin/fmax for some predicate…
phoebewang Oct 11, 2024
0bc02b9
[Clang] Instantiate Typedefs referenced by type alias deduction guide…
zyn0217 Oct 11, 2024
ec3e0a5
Revert "[CodeGenPrepare] Convert `ctpop(X) ==/!= 1` into `ctpop(X) u<…
dtcxzyw Oct 11, 2024
126ed16
[ARM] Fix formatting (NFC)
kazutakahirata Oct 11, 2024
51e9430
[libc][math] Improve performance of double precision trig functions. …
lntue Oct 11, 2024
e01ae39
[NFC][sanitizer] Use tid_t instead of int in ThreadLister (#111941)
vitalybuka Oct 11, 2024
59b2945
[sanitizer] Fix ThreadLister::IsAlive (#111942)
vitalybuka Oct 11, 2024
36b0707
[clang][bytecode] Return an lvalue path for dummy pointers (#111862)
tbaederr Oct 11, 2024
374886a
[NFC][sanitizer] Check suspended threads outside `ThreadSuspender::Su…
vitalybuka Oct 11, 2024
36639af
[NFC][sanitizer] VReport incomplete list (#111944)
vitalybuka Oct 11, 2024
e556f07
[NFC][asan] Cleanup AsanThreadIdAndName ctor/init (#111923)
vitalybuka Oct 11, 2024
df4c913
[asan] Print `unique_id` instead of `tid` (#111925)
vitalybuka Oct 11, 2024
3cb4d20
[NFC][sanitizer] Simplify GetThreadLocked
vitalybuka Oct 11, 2024
bf81bd8
[ELF] Pass Ctx &
MaskRay Oct 11, 2024
15de239
[IR] Allow MDString in operand bundles (#110805)
spavloff Oct 11, 2024
c22588c
[ELF] Move InputSectionBase::file to SectionBase
MaskRay Oct 11, 2024
e018f55
[ELF] Pass Ctx &
MaskRay Oct 11, 2024
25cda9e
[ELF] Pass Ctx & to SyntheticSection
MaskRay Oct 11, 2024
1fd79f1
[clang][bytecode] Check number of addcarry/subborrow args (#111952)
tbaederr Oct 11, 2024
d91c103
[ELF] Pass Ctx & to SyntheticSections
MaskRay Oct 11, 2024
d656b20
[AMDGPU][SplitModule] Cleanup CallsExternal Handling (#106528)
Pierre-vh Oct 11, 2024
81bd712
[ELF] Revert Ctx & parameters from SyntheticSection
MaskRay Oct 11, 2024
173c682
[AMDGPU] Enable unaligned scratch accesses (#110219)
ritter-x2a Oct 11, 2024
65780f4
[C++20][Modules] Allow import for a header unit after #pragma (#111662)
dmpolukhin Oct 11, 2024
ff04bb8
[clang][bytecode] Use PredefinedExpr as base for its variable (#111956)
tbaederr Oct 11, 2024
bff2b8c
[mlir][sparse][test] Adjust tests for `LowerSparseOpsToForeach` (#110…
CoTinker Oct 11, 2024
8bb12ca
[clang][NFC] Update `cxx_dr_status.html`
Endilll Oct 11, 2024
bb4696c
[mlir][linalg] Fix for bias handling for Winograd (#110331)
d-smirnov Oct 11, 2024
ebeb56a
[lldb] Only send "posix" error codes through the gdb-remote protocol …
labath Oct 11, 2024
b222f31
[lldb][test] Fixed the test `no_unique_address-with-bitfields` (#111902)
slydiman Oct 11, 2024
72f339d
[LoopVectorize] Use predicated version of getSmallConstantMaxTripCoun…
david-arm Oct 11, 2024
1276ce9
Revert "[mlir][linalg] Introduce transpose semantic to 'linalg.matmul…
cota Oct 11, 2024
a440203
[XRay] Add support for instrumentation of DSOs on x86_64 (#90959)
sebastiankreutzer Oct 11, 2024
42ec740
[clang][ExprConstant] Remove an outdated TODO comment (#111959)
tbaederr Oct 11, 2024
7b0d56b
AMDGPU/GlobalISel: Fix inst-selection of ballot (#109986)
petar-avramovic Oct 11, 2024
7771429
[mlir][EmitC] Fail on memrefs with 0 dims in type conversion (#111965)
Oct 11, 2024
80c15c4
[clang][bytecode] Implement __builtin_assume_aligned (#111968)
tbaederr Oct 11, 2024
73ad416
[OpenMP][Flang] Enable alias analysis inside omp target region (#111670)
DominikAdamski Oct 11, 2024
f74f568
[clang][analyzer] PointerSubChecker should not warn on pointers conve…
balazske Oct 11, 2024
6a65e98
[InstCombine] Drop range attributes in `foldIsPowerOf2` (#111946)
dtcxzyw Oct 11, 2024
65da32c
[LV] Account for any-of reduction when computing costs of blend phis.
fhahn Oct 11, 2024
d941254
[lldb][test] Fix var name typo in TestProcessSaveCoreMinidump
DavidSpickett Oct 11, 2024
4451f9f
[XRay] Fix LLVM include in xray_interface.cpp (#111978)
sebastiankreutzer Oct 11, 2024
0163ac1
[Flang][OpenMP]Add tests for TODOs and small changes to improve messa…
Leporacanthicus Oct 11, 2024
b5ea5be
[RISCV][MC] Fix >32bit .insn Directives (#111878)
lenary Oct 11, 2024
303c8d2
[AArch64] Add SchedReadAdvance to Neoverse-V1 scheduling model. (#111…
Oct 11, 2024
90627a5
Revert "[XRay] Add support for instrumentation of DSOs on x86_64 (#90…
metaflow Oct 11, 2024
14705a9
CodeGen: Remove redundant REQUIRES registered-target from tests (#111…
arsenm Oct 11, 2024
900ea21
[NFC][CodingStandard] Add additional example for if-else brace rule (…
jurahul Oct 11, 2024
fa789df
[NFC] Rename `Intrinsic::getDeclaration` to `getOrInsertDeclaration` …
jurahul Oct 11, 2024
c84f759
[libc] Fix compilation of new trig functions (#111987)
jhuber6 Oct 11, 2024
26b832a
[RISCV] Add DAG combine to turn (sub (shl X, 8-Y), (shr X, Y)) into o…
damokeev Oct 11, 2024
9a696b6
Revert "[NVPTX] Prefer prmt.b32 over bfi.b32 (#110766)"
cota Oct 11, 2024
c8da225
[Clang] Replace Intrinsic::getDeclaration with getOrInsertDeclaration…
jurahul Oct 11, 2024
ed7251b
Revert "[clang] Implement TTP P0522 pack matching for deduced functio…
metaflow Oct 11, 2024
bdd46cc
Revert "[clang] CWG2398: improve overload resolution backwards compat…
metaflow Oct 11, 2024
efcfa6e
Revert "Reland: [clang] Finish implementation of P0522 (#111711)"
metaflow Oct 11, 2024
870d37d
[AMDGPU] Rewrite RegSeqNames using !foreach. NFC. (#111994)
jayfoad Oct 11, 2024
c8554e1
Turn `-Wdeprecated-literal-operator` on by default (#111027)
erichkeane Oct 11, 2024
a2bd5db
[lldb] Fix finding make tool for tests (#111980)
DavidSpickett Oct 11, 2024
c3a10dc
[AArch64] Disable consecutive store merging when Neon is unavailable …
MacDue Oct 11, 2024
bd12729
[clang] Ignore inline namespace for `hasName` (#109147)
alejandro-alvarez-sonarsource Oct 11, 2024
923fef9
[libc++abi] Remove unused LIBCXXABI_LIBCXX_INCLUDES CMake option (#11…
ldionne Oct 11, 2024
33c14f1
[libc++] Add output groups to run-buildbot (#111739)
ldionne Oct 11, 2024
f7eb271
[mlir][vector] Add more tests for ConvertVectorToLLVM (7/n) (#111895)
banach-space Oct 11, 2024
1c94388
[RISCV] Introduce VLOptimizer pass (#108640)
michaelmaitland Oct 11, 2024
5dac691
[gn build] Port 1c94388f38c6
llvmgnsyncbot Oct 11, 2024
9d580ef
[AutoBump] Merge with 5dac691b (Oct 11)
jorickert Jan 13, 2025
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
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .ci/generate-buildkite-pipeline-premerge
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ function keep-modified-projects() {
}

function check-targets() {
# Do not use "check-all" here because if there is "check-all" plus a
# project specific target like "check-clang", that project's tests
# will be run twice.
projects=${@}
for project in ${projects}; do
case ${project} in
Expand All @@ -216,7 +219,7 @@ function check-targets() {
echo "check-lldb"
;;
pstl)
echo "check-all"
# Currently we do not run pstl tests in CI.
;;
libclc)
# Currently there is no testing for libclc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,8 @@ groupReplacements(const TUReplacements &TUs, const TUDiagnostics &TUDs,

if (auto Entry = SM.getFileManager().getOptionalFileRef(Path)) {
if (SourceTU) {
auto &Replaces = DiagReplacements[*Entry];
auto It = Replaces.find(R);
if (It == Replaces.end())
Replaces.emplace(R, SourceTU);
else if (It->second != SourceTU)
auto [It, Inserted] = DiagReplacements[*Entry].try_emplace(R, SourceTU);
if (!Inserted && It->second != SourceTU)
// This replacement is a duplicate of one suggested by another TU.
return;
}
Expand Down
3 changes: 1 addition & 2 deletions clang-tools-extra/clang-change-namespace/ChangeNamespace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,8 @@ void ChangeNamespaceTool::run(
Result.Nodes.getNodeAs<DeclRefExpr>("func_ref")) {
// If this reference has been processed as a function call, we do not
// process it again.
if (ProcessedFuncRefs.count(FuncRef))
if (!ProcessedFuncRefs.insert(FuncRef).second)
return;
ProcessedFuncRefs.insert(FuncRef);
const auto *Func = Result.Nodes.getNodeAs<FunctionDecl>("func_decl");
assert(Func);
const auto *Context = Result.Nodes.getNodeAs<Decl>("dc");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,13 @@ void ForwardDeclarationNamespaceCheck::onEndOfTranslationUnit() {
}
// Check if a definition in another namespace exists.
const auto DeclName = CurDecl->getName();
if (!DeclNameToDefinitions.contains(DeclName)) {
auto It = DeclNameToDefinitions.find(DeclName);
if (It == DeclNameToDefinitions.end()) {
continue; // No definition in this translation unit, we can skip it.
}
// Make a warning for each definition with the same name (in other
// namespaces).
const auto &Definitions = DeclNameToDefinitions[DeclName];
const auto &Definitions = It->second;
for (const auto *Def : Definitions) {
diag(CurDecl->getLocation(),
"no definition found for %0, but a definition with "
Expand Down
2 changes: 2 additions & 0 deletions clang/cmake/caches/Fuchsia-stage2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ foreach(target armv6m-none-eabi;armv7m-none-eabi;armv8m.main-none-eabi)
set(RUNTIMES_${target}_LIBCXX_CXX_ABI none CACHE STRING "")
set(RUNTIMES_${target}_LIBCXX_ENABLE_SHARED OFF CACHE BOOL "")
set(RUNTIMES_${target}_LIBCXX_ENABLE_STATIC ON CACHE BOOL "")
set(RUNTIMES_${target}_LIBCXX_SHARED_OUTPUT_NAME "c++-shared" CACHE STRING "")
set(RUNTIMES_${target}_LIBCXX_LIBC "llvm-libc" CACHE STRING "")
set(RUNTIMES_${target}_LIBCXX_ENABLE_FILESYSTEM OFF CACHE BOOL "")
set(RUNTIMES_${target}_LIBCXX_ENABLE_RANDOM_DEVICE OFF CACHE BOOL "")
Expand Down Expand Up @@ -396,6 +397,7 @@ foreach(target riscv32-unknown-elf)
set(RUNTIMES_${target}_LIBCXX_CXX_ABI none CACHE STRING "")
set(RUNTIMES_${target}_LIBCXX_ENABLE_SHARED OFF CACHE BOOL "")
set(RUNTIMES_${target}_LIBCXX_ENABLE_STATIC ON CACHE BOOL "")
set(RUNTIMES_${target}_LIBCXX_SHARED_OUTPUT_NAME "c++-shared" CACHE STRING "")
set(RUNTIMES_${target}_LIBCXX_LIBC "llvm-libc" CACHE STRING "")
set(RUNTIMES_${target}_LIBCXX_ENABLE_FILESYSTEM OFF CACHE BOOL "")
set(RUNTIMES_${target}_LIBCXX_ENABLE_RANDOM_DEVICE OFF CACHE BOOL "")
Expand Down
41 changes: 29 additions & 12 deletions clang/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,20 @@ C++ Specific Potentially Breaking Changes
// Was error, now evaluates to false.
constexpr bool b = f() == g();

- The warning ``-Wdeprecated-literal-operator`` is now on by default, as this is
something that WG21 has shown interest in removing from the language. The
result is that anyone who is compiling with ``-Werror`` should see this
diagnostic. To fix this diagnostic, simply removing the space character from
between the ``operator""`` and the user defined literal name will make the
source no longer deprecated. This is consistent with `CWG2521 <https://cplusplus.github.io/CWG/issues/2521.html>_`.

.. code-block:: c++

// Now diagnoses by default.
unsigned operator"" _udl_name(unsigned long long);
// Fixed version:
unsigned operator""_udl_name(unsigned long long);

ABI Changes in This Version
---------------------------

Expand Down Expand Up @@ -171,13 +185,12 @@ C++23 Feature Support
^^^^^^^^^^^^^^^^^^^^^
- Removed the restriction to literal types in constexpr functions in C++23 mode.

- Extend lifetime of temporaries in mem-default-init for P2718R0. Clang now fully
supports `P2718R0 Lifetime extension in range-based for loops <https://wg21.link/P2718R0>`_.

C++20 Feature Support
^^^^^^^^^^^^^^^^^^^^^

C++17 Feature Support
^^^^^^^^^^^^^^^^^^^^^
- The implementation of the relaxed template template argument matching rules is
more complete and reliable, and should provide more accurate diagnostics.

Resolutions to C++ Defect Reports
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -204,8 +217,7 @@ Resolutions to C++ Defect Reports
(`CWG2351: void{} <https://cplusplus.github.io/CWG/issues/2351.html>`_).

- Clang now has improved resolution to CWG2398, allowing class templates to have
default arguments deduced when partial ordering, and better backwards compatibility
in overload resolution.
default arguments deduced when partial ordering.

- Clang now allows comparing unequal object pointers that have been cast to ``void *``
in constant expressions. These comparisons always worked in non-constant expressions.
Expand All @@ -217,6 +229,10 @@ Resolutions to C++ Defect Reports
- Clang now allows trailing requires clause on explicit deduction guides.
(`CWG2707: Deduction guides cannot have a trailing requires-clause <https://cplusplus.github.io/CWG/issues/2707.html>`_).

- Clang now diagnoses a space in the first production of a ``literal-operator-id``
by default.
(`CWG2521: User-defined literals and reserved identifiers <https://cplusplus.github.io/CWG/issues/2521.html>`_).

C Language Changes
------------------

Expand Down Expand Up @@ -336,10 +352,6 @@ Improvements to Clang's diagnostics

- Clang now diagnoses when the result of a [[nodiscard]] function is discarded after being cast in C. Fixes #GH104391.

- Clang now properly explains the reason a template template argument failed to
match a template template parameter, in terms of the C++17 relaxed matching rules
instead of the old ones.

- Don't emit duplicated dangling diagnostics. (#GH93386).

- Improved diagnostic when trying to befriend a concept. (#GH45182).
Expand Down Expand Up @@ -384,6 +396,10 @@ Improvements to Clang's diagnostics
- The warning for an unsupported type for a named register variable is now phrased ``unsupported type for named register variable``,
instead of ``bad type for named register variable``. This makes it clear that the type is not supported at all, rather than being
suboptimal in some way the error fails to mention (#GH111550).

- Clang now emits a ``-Wdepredcated-literal-operator`` diagnostic, even if the
name was a reserved name, which we improperly allowed to suppress the
diagnostic.

Improvements to Clang's time-trace
----------------------------------
Expand Down Expand Up @@ -449,8 +465,6 @@ Bug Fixes to C++ Support
- Correctly check constraints of explicit instantiations of member functions. (#GH46029)
- When performing partial ordering of function templates, clang now checks that
the deduction was consistent. Fixes (#GH18291).
- Fixes to several issues in partial ordering of template template parameters, which
were documented in the test suite.
- Fixed an assertion failure about a constraint of a friend function template references to a value with greater
template depth than the friend function template. (#GH98258)
- Clang now rebuilds the template parameters of out-of-line declarations and specializations in the context
Expand Down Expand Up @@ -633,6 +647,9 @@ AST Matchers

- Fixed a crash when traverse lambda expr with invalid captures. (#GH106444)

- Ensure ``hasName`` matches template specializations across inline namespaces,
making `matchesNodeFullSlow` and `matchesNodeFullFast` consistent.

clang-format
------------

Expand Down
17 changes: 17 additions & 0 deletions clang/include/clang/AST/Attr.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,23 @@ class InheritableParamAttr : public InheritableAttr {
}
};

class InheritableParamOrStmtAttr : public InheritableParamAttr {
protected:
InheritableParamOrStmtAttr(ASTContext &Context,
const AttributeCommonInfo &CommonInfo,
attr::Kind AK, bool IsLateParsed,
bool InheritEvenIfAlreadyPresent)
: InheritableParamAttr(Context, CommonInfo, AK, IsLateParsed,
InheritEvenIfAlreadyPresent) {}

public:
// Implement isa/cast/dyncast/etc.
static bool classof(const Attr *A) {
return A->getKind() >= attr::FirstInheritableParamOrStmtAttr &&
A->getKind() <= attr::LastInheritableParamOrStmtAttr;
}
};

class HLSLAnnotationAttr : public InheritableAttr {
protected:
HLSLAnnotationAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo,
Expand Down
18 changes: 11 additions & 7 deletions clang/include/clang/AST/PrettyPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,17 @@ class PrintingCallbacks {
/// This type is intended to be small and suitable for passing by value.
/// It is very frequently copied.
struct PrintingPolicy {
enum SuppressInlineNamespaceMode : uint8_t { None, Redundant, All };

/// Create a default printing policy for the specified language.
PrintingPolicy(const LangOptions &LO)
: Indentation(2), SuppressSpecifiers(false),
SuppressTagKeyword(LO.CPlusPlus), IncludeTagDefinition(false),
SuppressScope(false), SuppressUnwrittenScope(false),
SuppressInlineNamespace(true), SuppressElaboration(false),
SuppressInitializers(false), ConstantArraySizeAsWritten(false),
AnonymousTagLocations(true), SuppressStrongLifetime(false),
SuppressLifetimeQualifiers(false),
SuppressInlineNamespace(SuppressInlineNamespaceMode::Redundant),
SuppressElaboration(false), SuppressInitializers(false),
ConstantArraySizeAsWritten(false), AnonymousTagLocations(true),
SuppressStrongLifetime(false), SuppressLifetimeQualifiers(false),
SuppressTemplateArgsInCXXConstructors(false),
SuppressDefaultTemplateArgs(true), Bool(LO.Bool),
Nullptr(LO.CPlusPlus11 || LO.C23), NullptrTypeInNamespace(LO.CPlusPlus),
Expand Down Expand Up @@ -141,10 +143,12 @@ struct PrintingPolicy {
unsigned SuppressUnwrittenScope : 1;

/// Suppress printing parts of scope specifiers that correspond
/// to inline namespaces, where the name is unambiguous with the specifier
/// to inline namespaces.
/// If Redudant, where the name is unambiguous with the specifier removed.
/// If All, even if the name is ambiguous with the specifier
/// removed.
LLVM_PREFERRED_TYPE(bool)
unsigned SuppressInlineNamespace : 1;
LLVM_PREFERRED_TYPE(SuppressInlineNamespaceMode)
unsigned SuppressInlineNamespace : 2;

/// Ignore qualifiers and tag keywords as specified by elaborated type sugar,
/// instead letting the underlying type print as normal.
Expand Down
7 changes: 6 additions & 1 deletion clang/include/clang/Basic/Attr.td
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,11 @@ class TargetSpecificAttr<TargetSpec target> {
/// redeclarations, even when it's written on a parameter.
class InheritableParamAttr : InheritableAttr;

/// A attribute that is either a declaration attribute or a statement attribute,
/// and if used as a declaration attribute, is inherited by later
/// redeclarations, even when it's written on a parameter.
class InheritableParamOrStmtAttr : InheritableParamAttr;

/// An attribute which changes the ABI rules for a specific parameter.
class ParameterABIAttr : InheritableParamAttr {
let Subjects = SubjectList<[ParmVar]>;
Expand Down Expand Up @@ -928,7 +933,7 @@ def AnalyzerNoReturn : InheritableAttr {
let Documentation = [Undocumented];
}

def Annotate : InheritableParamAttr {
def Annotate : InheritableParamOrStmtAttr {
let Spellings = [Clang<"annotate">];
let Args = [StringArgument<"Annotation">, VariadicExprArgument<"Args">];
// Ensure that the annotate attribute can be used with
Expand Down
6 changes: 6 additions & 0 deletions clang/include/clang/Basic/Builtins.td
Original file line number Diff line number Diff line change
Expand Up @@ -4745,6 +4745,12 @@ def HLSLCross: LangBuiltin<"HLSL_LANG"> {
let Prototype = "void(...)";
}

def HLSLDegrees : LangBuiltin<"HLSL_LANG"> {
let Spellings = ["__builtin_hlsl_elementwise_degrees"];
let Attributes = [NoThrow, Const];
let Prototype = "void(...)";
}

def HLSLDotProduct : LangBuiltin<"HLSL_LANG"> {
let Spellings = ["__builtin_hlsl_dot"];
let Attributes = [NoThrow, Const];
Expand Down
9 changes: 1 addition & 8 deletions clang/include/clang/Basic/DiagnosticSemaKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def warn_reserved_extern_symbol: Warning<
InGroup<ReservedIdentifier>, DefaultIgnore;
def warn_deprecated_literal_operator_id: Warning<
"identifier %0 preceded by whitespace in a literal operator declaration "
"is deprecated">, InGroup<DeprecatedLiteralOperator>, DefaultIgnore;
"is deprecated">, InGroup<DeprecatedLiteralOperator>;
def warn_reserved_module_name : Warning<
"%0 is a reserved name for a module">, InGroup<ReservedModuleIdentifier>;
def warn_import_implementation_partition_unit_in_interface_unit : Warning<
Expand Down Expand Up @@ -5262,13 +5262,6 @@ def note_template_arg_refers_here_func : Note<
def err_template_arg_template_params_mismatch : Error<
"template template argument has different template parameters than its "
"corresponding template template parameter">;
def note_template_arg_template_params_mismatch : Note<
"template template argument has different template parameters than its "
"corresponding template template parameter">;
def err_non_deduced_mismatch : Error<
"could not match %diff{$ against $|types}0,1">;
def err_inconsistent_deduction : Error<
"conflicting deduction %diff{$ against $|types}0,1 for parameter">;
def err_template_arg_not_integral_or_enumeral : Error<
"non-type template argument of type %0 must have an integral or enumeration"
" type">;
Expand Down
10 changes: 2 additions & 8 deletions clang/include/clang/Sema/Overload.h
Original file line number Diff line number Diff line change
Expand Up @@ -925,11 +925,6 @@ class Sema;

bool TookAddressOfOverload : 1;

/// Have we matched any packs on the parameter side, versus any non-packs on
/// the argument side, in a context where the opposite matching is also
/// allowed?
bool HasMatchedPackOnParmToNonPackOnArg : 1;

/// True if the candidate was found using ADL.
CallExpr::ADLCallKind IsADLCandidate : 1;

Expand Down Expand Up @@ -1004,9 +999,8 @@ class Sema;
friend class OverloadCandidateSet;
OverloadCandidate()
: IsSurrogate(false), IgnoreObjectArgument(false),
TookAddressOfOverload(false),
HasMatchedPackOnParmToNonPackOnArg(false),
IsADLCandidate(CallExpr::NotADL), RewriteKind(CRK_None) {}
TookAddressOfOverload(false), IsADLCandidate(CallExpr::NotADL),
RewriteKind(CRK_None) {}
};

/// OverloadCandidateSet - A set of overload candidates, used in C++
Expand Down
Loading
Loading