llvm-capstone/clang/test/Parser
Alex Lorenz c8b37e48f6 [clang] extend external_source_symbol attribute with USR clause
Allow the user to specify a concrete USR in the external_source_symbol attribute.
That will let Clang's indexer to use Swift USRs for Swift declarations that are
represented with C++ declarations.

This new clause is used by Swift when generating a C++ header representation
of a Swift module:
https://github.com/apple/swift/pull/63002

Differential Revision: https://reviews.llvm.org/D141324
2023-02-23 14:59:26 -08:00
..
access-spec-attrs.cpp
altivec-bool-128.c [PowerPC] Disable vector types when not supported by subtarget features 2021-10-04 14:16:47 -05:00
altivec-csk-bool.c
altivec-non-type-vector.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
altivec-template-vector.cpp When vector is found as a type or non-type id, check if it is really the altivec vector token. 2021-05-20 12:39:04 -04:00
altivec-typedef-vector.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
altivec-zvector-bool.c Parse vector bool when stdbool.h and altivec.h are included 2021-05-13 11:48:32 -04:00
altivec.c Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
annotation-token-in-lexed-body.cpp
argument_qualified.c
argument_redef.c
argument_scope.c
arm-windows-calling-convention-handling.c
asm-constraints-pr7869.c
asm-goto.c [clang] add __has_extension(gnu_asm_goto_with_outputs_full) 2023-02-16 17:58:35 -08:00
asm-goto.cpp
asm-qualifiers.c
asm.c [clang] Reject non-declaration C++11 attributes on declarations 2022-06-15 11:58:26 +02:00
asm.cpp [clang] Reject non-declaration C++11 attributes on declarations 2022-06-15 11:58:26 +02:00
atomic.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
attr-availability-xcore.c
attr-availability.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
attr-external-source-symbol-cxx11.cpp
attr-external-source-symbol.m [clang] extend external_source_symbol attribute with USR clause 2023-02-23 14:59:26 -08:00
attr-order.cpp parse: process GNU and standard attributes on top-level decls 2022-11-21 22:34:50 +00:00
attributes.c [clang] Reject non-declaration C++11 attributes on declarations 2022-06-15 11:58:26 +02:00
attributes.mm
backtrack-crash.cpp
backtrack-off-by-one.cpp Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
bad-control.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
block-block-storageclass.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
block-pointer-decl.c
bracket-crash.cpp
brackets.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
brackets.cpp
builtin_classify_type.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
builtin_source_location.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
builtin_types_compatible.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
c1x-alignas.c
c1x-generic-selection.c
c2x-attributes.c [clang] Fix crash upon stray coloncolon token in C2x mode 2022-10-18 21:57:32 +08:00
c2x-attributes.m
c2x-func-prototype.c Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
c2x-label.c [Clang] Support case and default labels at end of compound statement 2022-09-21 19:37:22 +00:00
c2x-typeof-ext-warns.c [C2x] implement typeof and typeof_unqual 2022-09-28 13:27:52 -04:00
c2x-typeof.c [C2x] implement typeof and typeof_unqual 2022-09-28 13:27:52 -04:00
c11-noreturn.c Diagnose use of _Noreturn on a struct/union field 2022-07-29 13:18:44 -04:00
c99.c
c-namespace.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
captured-statements.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
char-literal-printing.c
check_cast.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
check-objc2-syntax-1.m
check-syntax-1.m
colon-colon-parentheses.cpp Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
completely-empty-header-file.h
compound_literal.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
compound-token-split.cpp
CompoundStmtScope.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
control-scope.c
crash-report.c
cuda-check-input-kind-assoc.cuh
cuda-force-host-device-templates.cu
cuda-force-host-device.cu
cuda-kernel-call-c++11.cu
cuda-kernel-call.cu Fix comments in test cuda-kernel-call.cu 2021-06-02 10:21:26 -04:00
cxx0x-ambig.cpp Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
cxx0x-attributes.cpp [clang] Reject non-declaration C++11 attributes on declarations 2022-06-15 11:58:26 +02:00
cxx0x-condition.cpp
cxx0x-decl.cpp
cxx0x-for-range.cpp
cxx0x-in-cxx98.cpp
cxx0x-lambda-expressions.cpp [clang] [C++2b] [P1102] Accept lambdas without parameter list (). 2021-03-24 14:42:27 +01:00
cxx0x-literal-operators.cpp
cxx0x-member-initializers.cpp
cxx0x-override-control-keywords.cpp
cxx0x-rvalue-reference.cpp
cxx1z-attributes.cpp
cxx1z-class-template-argument-deduction.cpp Fix crash on invalid code involving late parsed inline methods 2021-12-16 07:58:51 -05:00
cxx1z-constexpr-lambdas.cpp [clang] [C++2b] [P1102] Accept lambdas without parameter list (). 2021-03-24 14:42:27 +01:00
cxx1z-decomposition.cpp [Clang] Reword diagnostic for scope identifier with linkage 2022-09-12 22:40:54 +08:00
cxx1z-fold-expressions.cpp Fix parsing of comma fold-expressions as the operand of a C-style cast. 2022-08-04 17:08:08 -07:00
cxx1z-init-statement.cpp Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
cxx1z-nested-namespace-definition.cpp [test] Make tests pass regardless of gnu++14/gnu++17 default 2022-09-04 05:29:32 +00:00
cxx1z-using-declaration.cpp
cxx2a-abbreviated-templates.cpp
cxx2a-bitfield-init.cpp
cxx2a-concept-declaration.cpp Stop accepting 'bool' in a concept declaration as an extension. 2022-11-28 10:22:54 -08:00
cxx2a-concepts-requires-expr.cpp [concepts] Implement dcl.decl.general p4: No constraints on non-template funcs 2022-05-17 06:21:51 -07:00
cxx2a-constrained-template-param-with-partial-id.cpp
cxx2a-constrained-template-param.cpp
cxx2a-designated-init.cpp
cxx2a-init-statement.cpp [clang] Fix ternary operator in the second for loop statement 2021-05-16 10:42:52 -07:00
cxx2a-inline-nested-namespace-definition.cpp [clang] Improve diagnostic for reopened inline namespace 2022-03-23 22:30:45 +01:00
cxx2a-placeholder-type-constraint.cpp [Concepts] Improve diagnostics on a missing 'auto' keyword. 2022-11-01 11:39:46 -07:00
cxx2a-spaceship.cpp
cxx2a-template-lambdas.cpp [clang] [PR49736] [C++2b] Correctly reject lambdas with requires clause and no parameter list 2021-03-30 13:53:55 +02:00
cxx2b-auto-x.cpp [c++2b] Implement P0849R8 auto(x) 2022-02-28 19:21:08 -06:00
cxx2b-init-statement.cpp Extend init-statement to allow alias-declaration 2021-10-08 07:13:45 -04:00
cxx2b-label.cpp [Clang] Support case and default labels at end of compound statement 2022-09-21 19:37:22 +00:00
cxx2b-lambdas-ext-warns.cpp [Clang] P1169R4: static operator() 2022-09-29 23:03:26 +03:00
cxx2b-lambdas.cpp [Clang] P1169R4: static operator() 2022-09-29 23:03:26 +03:00
cxx2b-subscript.cpp [C++2b] Implement multidimentional subscript operator 2022-02-08 12:10:47 -05:00
cxx11-base-spec-attributes.cpp
cxx11-brace-initializers.cpp
cxx11-stmt-attributes.cpp
cxx11-templates.cpp
cxx11-type-specifier.cpp
cxx11-user-defined-literals.cpp [Clang][C++23] P2071 Named universal character escapes 2022-06-25 19:03:33 +02:00
cxx20-coroutines.cpp [Coroutines] Remove -fcoroutines-ts 2023-02-23 14:40:58 +08:00
cxx20-using-enum.cpp [clang][DR2621] using enum NAME lookup fix 2022-09-28 08:50:27 -07:00
cxx98-enum.cpp
cxx-altivec-bool-128.cpp [PowerPC] Disable vector types when not supported by subtarget features 2021-10-04 14:16:47 -05:00
cxx-altivec.cpp [PowerPC] Remove the lax warning for explicit casts 2023-01-20 14:23:54 -06:00
cxx-ambig-decl-expr-xfail.cpp
cxx-ambig-decl-expr.cpp Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
cxx-ambig-init-templ.cpp
cxx-ambig-paren-expr-asan.cpp
cxx-ambig-paren-expr.cpp
cxx-attributes.cpp Parse: handle another case of invalid handling for attributes 2023-01-05 20:53:52 +00:00
cxx-bool.cpp
cxx-casting.cpp [test] Make tests pass regardless of gnu++14/gnu++17 default 2022-09-04 05:29:32 +00:00
cxx-class-template-specialization.cpp
cxx-class.cpp [test] Make tests pass regardless of gnu++14/gnu++17 default 2022-09-04 05:29:32 +00:00
cxx-concept-declaration.cpp [clang][Parse] Fix crash when emitting template diagnostic 2022-08-30 15:11:38 +02:00
cxx-concepts-ambig-constraint-expr.cpp Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
cxx-concepts-requires-clause.cpp [clang] Add cxx scope if needed for requires clause. 2022-08-26 10:15:54 +02:00
cxx-condition.cpp
cxx-decl.cpp Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
cxx-default-args.cpp
cxx-default-delete.cpp
cxx-ext-delete-default.cpp
cxx-extern-c-array.cpp
cxx-extra-semi.cpp
cxx-extra-virtual-specifiers.cpp [Parse] Improve diagnostic and recovery when there is an extra override in the outline method definition. 2021-10-18 10:00:21 +02:00
cxx-friend.cpp
cxx-in-c.c
cxx-invalid-for-range.cpp
cxx-invalid-function-decl.cpp
cxx-keyword-identifiers.cpp Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
cxx-member-crash.cpp
cxx-member-init-missing-paren-crash.cpp
cxx-member-initializers.cpp [C++2a] P0634r3: Down with typename! 2022-09-28 09:50:19 -07:00
cxx-modules-interface.cppm [Modules] Refactor modules-ts tests to use standard c++ modules 2023-02-16 14:05:16 +08:00
cxx-namespace-alias.cpp
cxx-reference.cpp
cxx-stmt.cpp
cxx-template-argument.cpp [test] Make tests pass regardless of gnu++14/gnu++17 default 2022-09-04 05:29:32 +00:00
cxx-template-decl.cpp [test] Make tests pass regardless of gnu++14/gnu++17 default 2022-09-04 05:29:32 +00:00
cxx-throw.cpp
cxx-typeid.cpp
cxx-typeof.cpp
cxx-undeclared-identifier.cpp Reland "nullptr returned from ActOnTag() is not a valid result" 2023-01-18 12:41:44 +01:00
cxx-using-declaration.cpp
cxx-using-directive.cpp
cxx-variadic-func.cpp
debugger-import-module.m Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
declarators.c Diagnose extensions in 'offsetof' 2023-01-18 08:51:21 -05:00
declspec-recovery.c
declspec-supported.c
decomposed-condition.cpp
DelayedTemplateParsing.cpp
designator.c
diag-crash.c
editor-placeholder-recovery.cpp
empty-translation-unit.c
encode.m
enhanced-proto-1.m
eof2.cpp
eof.cpp
explicit-bool.cpp Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
expressions.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
expressions.cpp
expressions.m Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
ext-int.cpp Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
extension.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
extra-semi-resulting-in-nullstmt-in-init-statement.cpp
extra-semi-resulting-in-nullstmt.cpp [NFC][clang] Fix comments. 2022-01-05 14:49:03 +08:00
extra-semi.cpp
for.cpp
fp-floatcontrol-syntax.cpp Remove redundant option -menable-unsafe-fp-math. 2022-10-14 10:55:29 -04:00
function-decls.c
gcc-__final-compatibility.cpp
gcc-for-loop-init-compatibility.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
goto.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
if-scope-c90.c
if-scope-c99.c
implicit-casts.c Strengthen -Wint-conversion to default to an error 2022-07-22 15:24:54 -04:00
knr_parameter_attributes.c [C89/C2x] Improve diagnostics around strict prototypes in C 2022-04-08 16:19:58 -04:00
lambda-attr.cu [clang][cuda/hip] Allow __noinline__ lambdas 2022-11-04 07:33:31 +00:00
lambda-misplaced-capture-default.cpp
lax-conv.cpp [PowerPC] Remove the lax warning for explicit casts 2023-01-20 14:23:54 -06:00
matrix-type-disabled.c
max-tokens.cpp
message-expr-alt-op.mm
method-def-in-class.m
method-prototype-1.m
MicrosoftExtensions.c Revert "Revert "[clang, llvm] Add __declspec(safebuffers), support it in CodeView"" 2022-09-16 19:39:48 +00:00
MicrosoftExtensions.cpp [clang] Reject non-declaration C++11 attributes on declarations 2022-06-15 11:58:26 +02:00
MicrosoftExtensionsInlineAsm.c
missing-closing-rbrace.m
missing-end-2.m
missing-end-3.m
missing-end-4.m
missing-end.m
missing-selector-name.mm
ms-anachronism.c
ms-if-exists.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
ms-if-exists.cpp
ms-inline-asm-nested-braces.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
ms-inline-asm.c [Clang] reject bit-fields as instruction operands in Microsoft style inline asm blocks. 2022-10-10 15:45:02 -04:00
ms-seh.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
ms-square-bracket-attributes.mm
namelookup-bug-1.c
namelookup-bug-2.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
namespace-alias-attr.cpp
namespace-attributes.cpp [clang][parser] Allow GNU attributes before namespace identifier 2022-03-15 22:30:22 +03:00
namespaces.cpp
nested_blocks_overflow.cpp
nested_function_prototype_overflow.cpp
nested_lambda_overflow.cpp
no-gnu-inline-asm.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
nullability.c
objc-alias-printing.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-at-directive-fixit.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-at-implementation-eof-crash.m
objc-at-interface-eof-crash.m
objc-attr.m
objc-available.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-boxing.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-category-neg-1.m
objc-class-property.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-cxx-keyword-identifiers.mm
objc-diag-width.mm
objc-error-qualified-implementation.m
objc-forcollection-1.m
objc-forcollection-neg-2.m Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
objc-forcollection-neg.m
objc-foreach-syntax.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-implementation-attrs.m [Clang] always_inline statement attribute 2022-03-14 21:45:31 +01:00
objc-init.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-interfaces.m
objc-messaging-1.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-messaging-neg-1.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-missing-impl.m
objc-property-syntax.m
objc-quirks.m
objc-recover.mm
objc-static-assert.m Rewording "static_assert" diagnostics 2022-07-25 07:22:54 -04:00
objc-static-assert.mm [clang][sema] Print more information about failed static assertions 2022-08-11 08:44:38 +02:00
objc-synthesized-recover.m
objc-try-catch-1.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-type-printing.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objcbridge-related-attribute.m
objcxx0x-lambda-expressions.mm
objcxx11-attributes.mm Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
objcxx11-initialized-temps.mm
objcxx11-invalid-lambda.cpp
objcxx11-messaging-and-lambda.mm
objcxx11-protocol-in-template.mm
objcxx11-user-defined-literal.mm
objcxx14-protocol-in-template.mm
objcxx-at.mm
objcxx-enum.mm
objcxx-lambda-expressions-neg.mm
offsetof.c
opencl-astype.cl
opencl-atomics-cl20.cl Use functions with prototypes when appropriate; NFC 2022-03-31 13:45:39 -04:00
opencl-cl20.cl [OpenCL] Change default standard version to CL1.2 2021-07-26 15:04:34 +01:00
opencl-cxx-keywords.cl [HLSL] Add groupshare address space. 2022-10-20 09:29:09 -07:00
opencl-cxx-virtual.cl
opencl-image-access.cl
opencl-kernel.cl Silence some false positive -Wstrict-prototype warnings 2022-05-13 08:31:52 -04:00
opencl-keywords.cl
opencl-pragma.cl [OpenCL] Reword unknown extension pragma diagnostic 2022-06-15 10:54:46 +01:00
opencl-storage-class.cl [OpenCL] Change default standard version to CL1.2 2021-07-26 15:04:34 +01:00
opencl-unroll-hint.cl
p10-vector-bool-128.c
parenthesis-balance.cpp
parmvardecl_conversion.c
parser_overflow.c
placeholder-recovery.m
pointer_promotion.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
pointer-arithmetic.c
PR11000.cpp
PR21872.cpp
pragma-attribute-context.cpp
pragma-attribute-declspec.cpp [Clang] Support multiple attributes in a single pragma 2022-03-18 12:20:41 +00:00
pragma-attribute.cpp [Clang] Support multiple attributes in a single pragma 2022-03-18 12:20:41 +00:00
pragma-fenv_access-ms.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
pragma-fenv_access.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
pragma-fenv_round.c
pragma-fp-contract.c
pragma-fp-contract.cpp
pragma-fp-warn.c [FPEnv] Enable strict fp for AArch64 in clang 2022-11-21 16:02:54 +00:00
pragma-fp.cpp
pragma-loop-safety.cpp
pragma-loop.cpp [Clang] Improve diagnostic message for loop hint pragma 2022-10-28 01:51:24 -07:00
pragma-optimize-diagnostics.cpp
pragma-options.c
pragma-options.cpp
pragma-pack.c
pragma-pipeline.cpp
pragma-unroll-and-jam.cpp
pragma-unroll.cpp
pragma-visibility2.c
pragma-visibility.c
pragma-weak.c
promote_types_in_proto.c
recovery.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
recovery.cpp Reland "nullptr returned from ActOnTag() is not a valid result" 2023-01-18 12:41:44 +01:00
recovery.m
recursion-limits.cpp
selector-1.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
sizeof-missing-parens.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
skip-function-bodies.h
skip-function-bodies.mm
slh-asm-goto-no-warn.cpp
slh-asm-goto.cpp Reword diagnostics for style; NFC 2022-10-10 15:53:48 -04:00
statements.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
static_assert.c Diagnosing the Future Keywords 2022-08-26 09:20:05 -04:00
stmt-attributes.c [Clang] noinline stmt attribute - emit warnings rather than errors 2022-03-14 23:40:17 +01:00
stmt-attributes.cpp
stmt-attributes.m [clang] inheritance fix for nomerge attribute 2022-02-11 15:51:08 +01:00
struct-recursion.c
switch-recovery.cpp [Clang] Support case and default labels at end of compound statement 2022-09-21 19:37:22 +00:00
switch-typo-correction.cpp
top-level-semi-cxx0x.cpp
traditional_arg_scope.c [C89/C2x] Improve diagnostics around strict prototypes in C 2022-04-08 16:19:58 -04:00
typeof.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
types.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
using-if-exists-attr.cpp [clang] Implement the using_if_exists attribute 2021-06-02 10:30:24 -04:00
using-template.cpp
vector-cast-define.cl Use functions with prototypes when appropriate; NFC 2022-03-31 13:45:39 -04:00
vsx.c
warn-cuda-compat.cu
warn-dangling-else.cpp
warn-misleading-indentation-fix.cpp
warn-misleading-indentation.cpp Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
warn-semicolon-before-method-body.m
while-loop-outside-function.c [clang] better error message for while loops outside of control flow 2022-07-25 11:48:24 +08:00
while-loop-outside-function.cpp [clang] better error message for while loops outside of control flow 2022-07-25 11:48:24 +08:00
x64-windows-calling-convention-handling.c