Skip to content

Commit 0932ec8

Browse files
author
z1_cciauto
authored
merge main into amd-staging (llvm#3438)
2 parents 299849f + 52aaaf2 commit 0932ec8

File tree

217 files changed

+15294
-13210
lines changed

Some content is hidden

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

217 files changed

+15294
-13210
lines changed

bolt/test/link_fdata.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import argparse
1111
import os
12+
import platform
1213
import shutil
1314
import subprocess
1415
import sys
@@ -19,7 +20,11 @@
1920
parser.add_argument("objfile", help="Object file to extract symbol values from")
2021
parser.add_argument("output")
2122
parser.add_argument("prefix", nargs="?", default="FDATA", help="Custom FDATA prefix")
22-
parser.add_argument("--nmtool", default="nm", help="Path to nm tool")
23+
parser.add_argument(
24+
"--nmtool",
25+
default="llvm-nm" if platform.system() == "Windows" else "nm",
26+
help="Path to nm tool",
27+
)
2328
parser.add_argument("--no-lbr", action="store_true")
2429
parser.add_argument("--no-redefine", action="store_true")
2530

@@ -86,7 +91,10 @@
8691
exit("ERROR: unexpected input:\n%s" % line)
8792

8893
# Read nm output: <symbol value> <symbol type> <symbol name>
89-
is_llvm_nm = os.path.basename(os.path.realpath(shutil.which(args.nmtool))) == "llvm-nm"
94+
# Ignore .exe on Windows host.
95+
is_llvm_nm = os.path.basename(os.path.realpath(shutil.which(args.nmtool))).startswith(
96+
"llvm-nm"
97+
)
9098
nm_output = subprocess.run(
9199
[
92100
args.nmtool,

clang-tools-extra/docs/clang-tidy/checks/bugprone/compare-pointer-to-member-virtual-function.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ virtual functions, thereby improving the overall stability and maintainability
5656
of your code. In scenarios involving pointers to member virtual functions, it's
5757
only advisable to employ ``nullptr`` for comparisons.
5858

59+
5960
Limitations
6061
-----------
6162

clang-tools-extra/docs/clang-tidy/checks/bugprone/copy-constructor-init.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ outcomes. The check ensures that the copy constructor of a derived class
3535
properly calls the copy constructor of the base class, helping to prevent bugs
3636
and improve code quality.
3737

38-
Limitations:
38+
39+
Limitations
40+
-----------
3941

4042
* It won't generate warnings for empty classes, as there are no class members
4143
(including base class sub-objects) to worry about.

clang-tools-extra/docs/clang-tidy/checks/bugprone/crtp-constructor-accessibility.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ Example:
8585

8686
CRTP<int> AlsoCompileTimeError;
8787

88-
Limitations:
88+
89+
Limitations
90+
-----------
8991

9092
* The check is not supported below C++11
9193

clang-tools-extra/docs/clang-tidy/checks/bugprone/nondeterministic-pointer-iteration-order.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ This check only detects range-based for loops over unordered sets and maps. It
3535
also detects calls sorting-like algorithms on containers holding pointers.
3636
Other similar usages will not be found and are false negatives.
3737

38-
Limitations:
38+
39+
Limitations
40+
-----------
3941

4042
* This check currently does not check if a nondeterministic iteration order is
4143
likely to be a mistake, and instead marks all such iterations as bugprone.

clang-tools-extra/docs/clang-tidy/checks/bugprone/redundant-branch-condition.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ Every possible change is considered, thus if the condition variable is not
7878
a local variable of the function, it is a volatile or it has an alias (pointer
7979
or reference) then no warning is issued.
8080

81-
Known limitations
82-
^^^^^^^^^^^^^^^^^
81+
82+
Limitations
83+
-----------
8384

8485
The ``else`` branch is not checked currently for negated condition variable:
8586

clang-tools-extra/docs/clang-tidy/checks/bugprone/sizeof-expression.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@ This check corresponds to the CERT C Coding Standard rule
266266
`ARR39-C. Do not add or subtract a scaled integer to a pointer
267267
<http://wiki.sei.cmu.edu/confluence/display/c/ARR39-C.+Do+not+add+or+subtract+a+scaled+integer+to+a+pointer>`_.
268268

269+
269270
Limitations
270-
"""""""""""
271+
-----------
271272

272273
Cases where the pointee type has a size of `1` byte (such as, and most
273274
importantly, ``char``) are excluded.

clang-tools-extra/docs/clang-tidy/checks/bugprone/standalone-empty.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ A call to ``clear()`` would appropriately clear the contents of the range:
3030
...
3131
v.clear();
3232

33-
Limitations:
33+
34+
Limitations
35+
-----------
3436

3537
* Doesn't warn if ``empty()`` is defined and used with the ignore result in the
3638
class template definition (for example in the library implementation). These

clang-tools-extra/docs/clang-tidy/checks/misc/const-correctness.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ Note that there is the check
5252
:doc:`cppcoreguidelines-avoid-non-const-global-variables <../cppcoreguidelines/avoid-non-const-global-variables>`
5353
to enforce ``const`` correctness on all globals.
5454

55-
Known Limitations
56-
-----------------
55+
56+
Limitations
57+
-----------
5758

5859
The check does not run on `C` code.
5960

clang-tools-extra/docs/clang-tidy/checks/misc/no-recursion.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ References:
1414
* JPL Institutional Coding Standard for the C Programming Language (JPL DOCID D-60411) rule `2.4 Do not use direct or indirect recursion`.
1515
* OpenCL Specification, Version 1.2 rule `6.9 Restrictions: i. Recursion is not supported. <https://www.khronos.org/registry/OpenCL/specs/opencl-1.2.pdf>`_.
1616

17-
Limitations:
17+
18+
Limitations
19+
-----------
1820

1921
* The check does not handle calls done through function pointers
2022
* The check does not handle C++ destructors

0 commit comments

Comments
 (0)