Skip to content

Commit 4ef4724

Browse files
committed
Merge remote-tracking branch 'origin/main'
Conflicts: lldb/tools/lldb-dap/lldb-dap.cpp
2 parents feae281 + ccad5e7 commit 4ef4724

File tree

354 files changed

+21080
-10519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

354 files changed

+21080
-10519
lines changed

.github/workflows/premerge.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ concurrency:
2525

2626
jobs:
2727
premerge-checks-linux:
28+
name: Linux Premerge Checks (Test Only - Please Ignore Results)
2829
if: >-
2930
github.repository_owner == 'llvm' &&
3031
(github.event_name != 'pull_request' || github.event.action != 'closed')
@@ -83,6 +84,7 @@ jobs:
8384
./.ci/monolithic-linux.sh "$(echo ${linux_projects} | tr ' ' ';')" "$(echo ${linux_check_targets})" "$(echo ${linux_runtimes} | tr ' ' ';')" "$(echo ${linux_runtime_check_targets})"
8485
8586
premerge-checks-windows:
87+
name: Windows Premerge Checks (Test Only - Please Ignore Results)
8688
if: >-
8789
github.repository_owner == 'llvm' &&
8890
(github.event_name != 'pull_request' || github.event.action != 'closed')
@@ -143,6 +145,7 @@ jobs:
143145
bash .ci/monolithic-windows.sh "${{ steps.vars.outputs.windows-projects }}" "${{ steps.vars.outputs.windows-check-targets }}"
144146
145147
premerge-check-macos:
148+
name: MacOS Premerge Checks
146149
runs-on: macos-14
147150
if: >-
148151
github.repository_owner == 'llvm' &&

clang/docs/ClangFormatStyleOptions.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4782,7 +4782,13 @@ the configuration (without a prefix: ``Auto``).
47824782
.. _Language:
47834783

47844784
**Language** (``LanguageKind``) :versionbadge:`clang-format 3.5` :ref:`<Language>`
4785-
Language, this format style is targeted at.
4785+
The language that this format style targets.
4786+
4787+
.. note::
4788+
4789+
You can also specify the language (``Cpp`` or ``ObjC``) for ``.h`` files
4790+
by adding a ``// clang-format Language:`` line before the first
4791+
non-comment (and non-empty) line, e.g. ``// clang-format Language: Cpp``.
47864792

47874793
Possible values:
47884794

clang/docs/ReleaseNotes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ clang-format
271271
- Adds ``BreakBeforeTemplateCloser`` option.
272272
- Adds ``BinPackLongBracedList`` option to override bin packing options in
273273
long (20 item or more) braced list initializer lists.
274+
- Allow specifying the language (C++ or Objective-C) for a ``.h`` file by adding
275+
a special comment (e.g. ``// clang-format Language: ObjC``) near the top of
276+
the file.
274277

275278
libclang
276279
--------

clang/include/clang/Basic/BuiltinsX86.td

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -832,18 +832,15 @@ let Features = "rdseed", Attributes = [NoThrow] in {
832832
def rdseed32_step : X86Builtin<"unsigned int(unsigned int *)">;
833833
}
834834

835-
let Features = "lzcnt", Attributes = [NoThrow, Const, Constexpr] in {
836-
def lzcnt_u16 : X86Builtin<"unsigned short(unsigned short)">;
837-
def lzcnt_u32 : X86Builtin<"unsigned int(unsigned int)">;
838-
}
839-
840835
let Features = "bmi", Attributes = [NoThrow, Const, Constexpr] in {
841836
def bextr_u32 : X86Builtin<"unsigned int(unsigned int, unsigned int)">;
842837
}
843838

844839
let Attributes = [NoThrow, Const, Constexpr] in {
845840
def tzcnt_u16 : X86Builtin<"unsigned short(unsigned short)">;
846841
def tzcnt_u32 : X86Builtin<"unsigned int(unsigned int)">;
842+
def lzcnt_u16 : X86Builtin<"unsigned short(unsigned short)">;
843+
def lzcnt_u32 : X86Builtin<"unsigned int(unsigned int)">;
847844
}
848845

849846
let Features = "bmi2", Attributes = [NoThrow, Const, Constexpr] in {

clang/include/clang/Basic/BuiltinsX86_64.td

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,13 @@ let Features = "rdseed", Attributes = [NoThrow] in {
126126
def rdseed64_step : X86Builtin<"unsigned int(unsigned long long int *)">;
127127
}
128128

129-
let Features = "lzcnt", Attributes = [NoThrow, Const, Constexpr] in {
130-
def lzcnt_u64 : X86Builtin<"unsigned long long int(unsigned long long int)">;
131-
}
132-
133129
let Features = "bmi", Attributes = [NoThrow, Const, Constexpr] in {
134130
def bextr_u64 : X86Builtin<"unsigned long long int(unsigned long long int, unsigned long long int)">;
135131
}
136132

137133
let Attributes = [NoThrow, Const, Constexpr] in {
138134
def tzcnt_u64 : X86Builtin<"unsigned long long int(unsigned long long int)">;
135+
def lzcnt_u64 : X86Builtin<"unsigned long long int(unsigned long long int)">;
139136
}
140137

141138
let Features = "bmi2", Attributes = [NoThrow, Const, Constexpr] in {

clang/include/clang/Basic/DiagnosticParseKinds.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,10 +1657,6 @@ def err_omp_expected_colon : Error<"missing ':' in %0">;
16571657
def err_omp_missing_comma : Error< "missing ',' after %0">;
16581658
def err_omp_expected_context_selector
16591659
: Error<"expected valid context selector in %0">;
1660-
def err_omp_unknown_clause
1661-
: Error<"unknown clause '%0' in %1">;
1662-
def warn_omp_default_deprecated : Warning<"'default' clause for"
1663-
" 'metadirective' is deprecated; use 'otherwise' instead">, InGroup<Deprecated>;
16641660
def err_omp_requires_out_inout_depend_type : Error<
16651661
"reserved locator 'omp_all_memory' requires 'out' or 'inout' "
16661662
"dependency types">;

clang/include/clang/Basic/Module.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -881,10 +881,11 @@ class VisibleModuleSet {
881881
StringRef Message)>;
882882

883883
/// Make a specific module visible.
884-
void setVisible(Module *M, SourceLocation Loc,
885-
VisibleCallback Vis = [](Module *) {},
886-
ConflictCallback Cb = [](ArrayRef<Module *>, Module *,
887-
StringRef) {});
884+
void setVisible(
885+
Module *M, SourceLocation Loc, bool IncludeExports = true,
886+
VisibleCallback Vis = [](Module *) {},
887+
ConflictCallback Cb = [](ArrayRef<Module *>, Module *, StringRef) {});
888+
888889
private:
889890
/// Import locations for each visible module. Indexed by the module's
890891
/// VisibilityID.

clang/include/clang/Format/Format.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3353,7 +3353,12 @@ struct FormatStyle {
33533353
}
33543354
bool isTableGen() const { return Language == LK_TableGen; }
33553355

3356-
/// Language, this format style is targeted at.
3356+
/// The language that this format style targets.
3357+
/// \note
3358+
/// You can also specify the language (``Cpp`` or ``ObjC``) for ``.h`` files
3359+
/// by adding a ``// clang-format Language:`` line before the first
3360+
/// non-comment (and non-empty) line, e.g. ``// clang-format Language: Cpp``.
3361+
/// \endnote
33573362
/// \version 3.5
33583363
LanguageKind Language;
33593364

clang/include/clang/Lex/Preprocessor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,8 @@ class Preprocessor {
17551755
bool LexAfterModuleImport(Token &Result);
17561756
void CollectPpImportSuffix(SmallVectorImpl<Token> &Toks);
17571757

1758-
void makeModuleVisible(Module *M, SourceLocation Loc);
1758+
void makeModuleVisible(Module *M, SourceLocation Loc,
1759+
bool IncludeExports = true);
17591760

17601761
SourceLocation getModuleImportLoc(Module *M) const {
17611762
return CurSubmoduleState->VisibleModules.getImportLoc(M);

clang/include/clang/StaticAnalyzer/Checkers/SValExplainer.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ namespace ento {
2727
class SValExplainer : public FullSValVisitor<SValExplainer, std::string> {
2828
private:
2929
ASTContext &ACtx;
30+
ProgramStateRef State;
3031

3132
std::string printStmt(const Stmt *S) {
3233
std::string Str;
@@ -55,7 +56,8 @@ class SValExplainer : public FullSValVisitor<SValExplainer, std::string> {
5556
}
5657

5758
public:
58-
SValExplainer(ASTContext &Ctx) : ACtx(Ctx) {}
59+
SValExplainer(ASTContext &Ctx, ProgramStateRef State)
60+
: ACtx(Ctx), State(State) {}
5961

6062
std::string VisitUnknownVal(UnknownVal V) {
6163
return "unknown value";
@@ -166,7 +168,7 @@ class SValExplainer : public FullSValVisitor<SValExplainer, std::string> {
166168
.getCanonicalType()->getAs<ObjCObjectPointerType>())
167169
return "object at " + Visit(R->getSymbol());
168170
// Other heap-based symbolic regions are also special.
169-
if (isa<HeapSpaceRegion>(R->getMemorySpace()))
171+
if (R->hasMemorySpace<HeapSpaceRegion>(State))
170172
return "heap segment that starts at " + Visit(R->getSymbol());
171173
return "pointee of " + Visit(R->getSymbol());
172174
}

0 commit comments

Comments
 (0)