Skip to content

Commit ce1ce2a

Browse files
committedMay 19, 2020
Merge remote-tracking branch 'upstream/release/10.x' into rustc/10.0-2020-05-05
2 parents 99580e0 + f79cd71 commit ce1ce2a

File tree

52 files changed

+1898
-196
lines changed

Some content is hidden

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

52 files changed

+1898
-196
lines changed
 

‎clang/include/clang/AST/DeclBase.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -856,14 +856,15 @@ class alignas(8) Decl {
856856
return getParentFunctionOrMethod() == nullptr;
857857
}
858858

859-
/// Returns true if this declaration lexically is inside a function.
860-
/// It recognizes non-defining declarations as well as members of local
861-
/// classes:
859+
/// Returns true if this declaration is lexically inside a function or inside
860+
/// a variable initializer. It recognizes non-defining declarations as well
861+
/// as members of local classes:
862862
/// \code
863863
/// void foo() { void bar(); }
864864
/// void foo2() { class ABC { void bar(); }; }
865+
/// inline int x = [](){ return 0; };
865866
/// \endcode
866-
bool isLexicallyWithinFunctionOrMethod() const;
867+
bool isInLocalScope() const;
867868

868869
/// If this decl is defined inside a function/method/block it returns
869870
/// the corresponding DeclContext, otherwise it returns null.

‎clang/include/clang/Basic/Attr.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def XRayLogArgs : InheritableAttr {
685685

686686
def PatchableFunctionEntry
687687
: InheritableAttr,
688-
TargetSpecificAttr<TargetArch<["aarch64", "x86", "x86_64"]>> {
688+
TargetSpecificAttr<TargetArch<["aarch64", "aarch64_be", "x86", "x86_64"]>> {
689689
let Spellings = [GCC<"patchable_function_entry">];
690690
let Subjects = SubjectList<[Function, ObjCMethod]>;
691691
let Args = [UnsignedArgument<"Count">, DefaultIntArgument<"Offset", 0>];

0 commit comments

Comments
 (0)
Please sign in to comment.