Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/swiftwasm/swift-clang

This repository is no longer in use, please refer to the LLVM monorepo https://github.com/swiftwasm/llvm-project
https://github.com/swiftwasm/swift-clang

[Sema] Correct typos in return statements so the return types of 'auto' functions are always deduced.

Summary:
e.g.
auto foo() {
return no_such_thing; // Return value is a TypoExpr
}
using...

d80516ddef8d4010f79cad378d8716676aa74ebd authored over 5 years ago
Propagating prior merge from 'llvm.org/master'.

55bc6da0df7e64b4be1874feb0a6f021584697a0 authored over 5 years ago
Fix the refactoring tests after upstream update

5505bf1fc0148b3f9446ddcfbe9521353d2c2ce6 authored over 5 years ago
Fix buildbot break after r360195

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360220 91177308-0d34-0410-b5e6-96231b3b...

3d972ea0aa9215851d4ad7461472cb98a53a1ecc authored over 5 years ago
Split ActOnCallExpr into an ActOnCallExpr to be called by the parser,

and a BuildCallExpr to be called internally within Sema to build /
rebuild calls.

git-svn-id: ht...

0fb16153cd5e8eddb8d9ffdd296c8d1c853eb7d8 authored over 5 years ago
Merge remote-tracking branch 'origin/swift-5.1-branch' into stable

81b4284e16132bfe6635e2a06e015a6fd74dda15 authored over 5 years ago
[hip] Fix ambiguity from `>>>` of CUDA.

Summary:
- For template arguments ending with `>>>`, we should cease lookahead
and treat it as...

9a67abdb5cdaf8c25f3ecbe66e1d9d171260d3ce authored over 5 years ago
Merge pull request #309 from shafik/41179814_copy_Argument_Passing_Restrictions_for_CXXRecordDecl

[ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDecl definition

14f814da0e82b23d4e1a798640be35d8e28fa2cb authored over 5 years ago
[COFF] Use COFF stubs for extern_weak functions

Summary:
A COFF stub indirects the reference to a symbol through memory. A
.refptr.$sym global v...

a8b30b5bc95743cbf92708df7908d25d795e29e6 authored over 5 years ago
Merge remote-tracking branch 'origin/swift-5.1-branch' into stable

9bffb9a3362c78e79e12a71cb23a4152ad6adc7b authored over 5 years ago
[analyzer] Fix a crash when doing RVO from within blocks.

When looking for the location context of the call site, unwrap block invocation
contexts because...

f587801ce99f6c812fd961e4147327c3f8e8bef4 authored over 5 years ago
Propagating prior merge from 'llvm.org/master'.

ee0811eaaac2b3ee866668f322734b0f8b8d94c8 authored over 5 years ago
Merge pull request #310 from slavapestov/more-class-stub-fixes

More class stub fixes

da42d30f44f0f7e8ecf8421c51659319ffc72e99 authored over 5 years ago
-frewrite-imports: Add support for wildcard rules in umbrella modules with

This trips over a few other limitations, but in the interests of incremental development I'm sta...

3bfe0e35eb5cde1d941e3f4fcd6463b80f31e36b authored over 5 years ago
Merge pull request #308 from compnerd/linux-testing

backport changes to enable the test suite to pass on Linux

16b84955597499cfcfd2fcc045c055ca2c38b1fe authored over 5 years ago
Revert "[OpenMP][Clang] Support for target math functions"

This commit appears to be breaking stage-2 builds on GreenDragon. The
OpenMP wrappers for cmath ...

e163cbcd8fe0e9b1581e1434ec734665b2f2fc85 authored over 5 years ago
Sema: NFC cleanup for ObjCClassStubAttr checking

4bbb1c73d132398731984bfa13e9836c7eefbd8c authored over 5 years ago
Weak-link reference to objc_loadClassref()

51a96f433b260797ed093860dc1676bb52d73515 authored over 5 years ago
ClangAttrEmitter: CustomCode attributes now bind LangOpts as a name

Prefixing the expression with "S." was really silly because we
could only refer to LangOpts at t...

18571427e274fe0021d1913995a430432dcccf29 authored over 5 years ago
[ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDecl definition

Summary:
For a CXXRecordDecl the RecordDeclBits are stored in the DeclContext. Currently when we...

dd3ef958b4dc24c83a7896e031bb7fd0e5ff4320 authored over 5 years ago
Merge remote-tracking branch 'origin/swift-5.1-branch' into stable

d4bbd5a49be9860426150b7c68bf418a2a4eb73b authored over 5 years ago
[ASTImporter] Corrected type of integer constant in a test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360156 91177308-0d34-0410-b5e6-96231b3b80d8

71cb0968116c5cf783aebae06b39d6d31f085c2e authored over 5 years ago
Add an explicit triple to this test to hopefully appease the build bots.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360155 91177308-0d34-0410-b5e6-96231b3b80d8

5195ebbecfce652c838c3cd4a61610c1f9b74e37 authored over 5 years ago
[Tooling] Add -x flags when inferring compile commands for files with no/invalid extension.

Summary: We treat them as headers, as the motivating case is C++ standard library.

Reviewers: k...

865e584f54b58c624ba6133153799ecb98f3ae4e authored over 5 years ago
[OpenCL] Prevent mangling kernel functions.

Kernel function names have to be preserved as in the original
source to be able to access them f...

96177dc49e3cc8d175f80b0469e6b09837858a97 authored over 5 years ago
Allow field offset lookups in types with incomplete arrays within libclang.

Patch thanks to Jorn Vernee

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360147 9117...

81af6acbd988223940e497387e2a1bc7d8913ad7 authored over 5 years ago
[ASTImporter] Import TemplateParameterLists in function templates.

Summary: Correct missing import of TemplateParameterList in function decl.

Reviewers: martong, ...

f16eeb943facb90735c606d63e18d9f31f5e77f8 authored over 5 years ago
[Tooling] Don't mmap the JSONCompilationDatabase, it's not correct for long-lived processes.

Reviewers: ilya-biryukov

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https:/...

73be1ac6c1ba766af280ddadedde0306a9decd79 authored over 5 years ago
Propagating prior merge from 'llvm.org/master'.

dffc59237b9ce84bd42f966e83e8d9b18785aff1 authored over 5 years ago
[Sema] Add missing VisitMacroQualifiedTypeLoc to TypeSpecLocFiller

To hopefully fix greenbot failures

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@3601...

3bc64f648746048b225e0baff39297c9c8d2a5cd authored over 5 years ago
Improve function / variable disambiguation.

Keep looking for decl-specifiers after an unknown identifier. Don't
issue diagnostics about an e...

983fd48a00d938a22152c9434376786544d2dce5 authored over 5 years ago
Revert "[Modules] Make header inclusion order from umbrella dirs deterministic"

This reverts commit 0f85b105e4f79ee320400c41f30416576a7fcf91. This is
causing more bot failures:...

dbdb83f8bc227a134e6718bf04df9a8aa064ea32 authored over 5 years ago
Recommit r359859 "[Attribute/Diagnostics] Print macro if definition is an attribute declaration"

Updated with fix for read of uninitialized memory.

git-svn-id: https://llvm.org/svn/llvm-projec...

8ad70e473414cc639f35b6e61ed3af1db334d845 authored over 5 years ago
[Modules] Move FILE_SYSTEM_OPTIONS to the unhashed control block

FILE_SYSTEM_OPTIONS is only currently used to track -working-directory.
If we are not making thi...

a926f632283cc7a6c1fbf3af4d04bef346816997 authored over 5 years ago
[Modules] Move search paths outside of the control block

Clang does not currently hashes the search paths, so it doesnt make sense
for them to be in the ...

9dbd2ad3dad75647473dd7079789caecef6d2f1a authored over 5 years ago
Fix typo in risc-v register aliases.

Patch by John.

Differential Revision: https://reviews.llvm.org/D61464

git-svn-id: https://llvm...

8797a17455a3930f894e2888f3f51135d6781d02 authored over 5 years ago
[Clang][NewPM] Don't bail out if the target machine is empty

This matches the behavior of the old pass manager. There are some
targets that don't have target...

741e05796da92b46d4f7bcbee00702ff37df6489 authored over 5 years ago
[Modules] Make header inclusion order from umbrella dirs deterministic

Sort the headers by name before adding the includes in
collectModuleHeaderIncludes. This makes t...

0f85b105e4f79ee320400c41f30416576a7fcf91 authored over 5 years ago
[Sema] Fix for P41774 where `ExpectNoDerefChunk` is assigned twice

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360089 91177308-0d34-0410-b5e6-96231b3b80d8

14bb26600bd457b26ad98b82179a33069f380271 authored over 5 years ago
Revert "Re-commit r357452: SimplifyCFG SinkCommonCodeFromPredecessors: Also sink function calls without used results (PR41259)"

This reverts r357452 (git commit 21eb771dcb5c11d7500fa6ad551c97a921997f05).

This was causing st...

f0cd1a239e9c21789a56d44d497de81f4df6180f authored over 5 years ago
PR41183: Don't emit strict-prototypes warning for an implicit function

declaration.

It should emit _only_ an implicit-function-declaration warning, not
both of them.

...

e95a9090164d18f491726f25a38550274644ac93 authored over 5 years ago
[AArch64] Add __builtin_sponentry, for calling setjmp in MinGW

In MinGW, setjmp isn't expanded as a builtin in the compiler (like it
is for MSVC), but manually...

b91f1c80f6212af9c62b235a4f07dab5067add4b authored over 5 years ago
[MinGW] Use SEH by default on AArch64

The implementation of SEH is pretty mature at this point.

Differential Revision: https://review...

d653c3f8e2168eb215fc2f74728b664947f7a478 authored over 5 years ago
[OPENMP]Fix PR41767: diagnose DSA for variables in clauses with

default(none).

If the combined directive has default(none) clause and has clauses for
inner dire...

03fbaba68257f6ebdec4aceec394580bd29e0b13 authored over 5 years ago
Fixup new test by adding add missing switch cases note

f91a745a4ba7e7c91aa7b63f58c5273e582f6c2f authored over 5 years ago
Fix build after merge

24ff9417e78a9cbb9326322df93ebb95f43c9952 authored over 5 years ago
Merge remote-tracking branch 'llvm.org/master' into upstream-with-swift

Conflicts:
include/clang/AST/DeclTemplate.h
lib/AST/DeclPrinter.cpp

b35d82a3845565cd3a90c9d94c9fd0e7494c1296 authored over 5 years ago
[OpenMP][Clang] Support for target math functions

Summary:
In this patch we propose a temporary solution to resolving math functions for the NVPTX...

1c40858fc28adb9b87e3f8f8bd5b4319defa9624 authored over 5 years ago
[OPENMP]Fix PR41768: check DSA for globals with `default(none)` clauses.

If the `default(none)` was specified for the construct, we might miss
diagnostic for the globals...

336ca528612aa91867d963f22b4c3c6a6d61874f authored over 5 years ago
Fixing SemaObjC tests that take -x objective-c++ with -stdlib=libc++

Clang :: SemaObjC/class-stub-attr-unsupported.m
Clang :: SemaObjC/class-stub-attr.m

beb76cd8a0b6208c3162d9e020fecc7fbd2d584e authored over 5 years ago
Fixing clang-refactor-test tests on Linux by adding -fobjc-runtime=ios-5.0

On Linux, without -fobjc-runtime=ios-5.0 the following:

@implementation NoNeedForImplementation...

82c193fbe3fcb9f88c5027e9c7fda67f7fc861d4 authored over 5 years ago
Fixing swift-clang tests that fail due to missing PrintingPolicy init in ctor.

The following tests that were failing were:

Clang :: OpenMP/for_simd_ast_print.cpp
Clan...

6a72ab1a0889bc176f96d68699848ee5881f88c7 authored over 5 years ago
[CodeComplete] Update python tests after r360042

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360048 91177308-0d34-0410-b5e6-96231b3b80d8

b1749d02f5a6382ec27b937b588a203a841860dd authored over 5 years ago
[CodeComplete] Add a trailing semicolons to some pattern completions

Summary:
Where semicolon is required in any case. Here's a list of completions
that now have a s...

7463f83dc3dddc833b1517a8c86cf006a12e1ae6 authored over 5 years ago
Revert r359949 "[clang] adding explicit(bool) from c++2a"

This caused Clang to start erroring on the following:

struct S {
  template <typename = int...

06edb03dd121a51d2ea4702e224140252a720c86 authored over 5 years ago
[X86] Move files to correct directories after D60552

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360022 91177308-0d34-0410-b5e6-96231b3b80d8

6dab16d8d8d89a49727becbb0d910ddd31983f96 authored over 5 years ago
Enable intrinsics of AVX512_BF16, which are supported for BFLOAT16 in Cooper Lake

Summary:
1. Enable infrastructure of AVX512_BF16, which is supported for BFLOAT16 in Cooper Lake...

7bdbc78bb83e99cfc4bc1f9cfd9fa128cb850771 authored over 5 years ago
P1286R2: Remove restriction that the exception specification of a

defaulted special member matches the implicit exception specification.

git-svn-id: https://llvm....

1b26ab1b5287ec6c00e8e506657abe438c90a71b authored over 5 years ago
Use DiagRuntimeBehavior for -Wunsequenced to weed out false positives

where either the modification or the other access is unreachable.

This reverts r359984 (which re...

71019a8e1da335af8c2a5d03cb268dd7b19b73a6 authored over 5 years ago
[c++20] Implement P1009R2: allow omitting the array bound in an array

new expression.

This was voted into C++20 as a defect report resolution, so we
retroactively app...

5b0a110410710c5e5b3a197edced3676c92b6e89 authored over 5 years ago
The 'CodeGenObjC/illegal-UTF8.m' get failed with Clang built with 32-bit targets only (as example ARM-only) with the following error:

error: unable to create target: 'No available targets are compatible with triple "< ... any 64-b...

f14f7e2753fb69cec95009f4f3b2e3eab14e4f10 authored over 5 years ago
[analyzer][UninitializedObjectChecker] PR41741: Regard all scalar types as primitive.

https://bugs.llvm.org/show_bug.cgi?id=41741

Pretty much the same as D61246 and D61106, this tim...

7490b7d8ede38d701112ea7f4c50313af18fbf53 authored over 5 years ago
Revert rL359962 : Use DiagRuntimeBehavior for -Wunsequenced to weed out false positives

where either the modification or the other access is unreachable.
........
Try to fix buildbots

...

51ad9cd9d2a35c639890261dd414ed0f8a700a5c authored over 5 years ago
[clang] fixing -ast-print for variadic parameter pack in lambda capture

Summary:
currently for:
```
template<typename ... T>
void f(T... t) {
auto l = [t...]{};
}
``...

0d07455a786444c22ac41e9a15f58ff2c994b1d3 authored over 5 years ago
[C++] Interpret unknown identifier in parameter clause as unknown type

instead of as parameter name without a type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/...

3e0c2a51a0e7acafc37b86ce9838c6e1400054d5 authored over 5 years ago
[NFC] Add parentheses to avoid -Wparentheses.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359968 91177308-0d34-0410-b5e6-96231b3b80d8

7985bcbf1b95421a000b3bd70298dfe7532a59db authored over 5 years ago
[c++20] Implement P0428R2 - Familiar template syntax for generic lambdas

Differential Revision: https://reviews.llvm.org/D36527

git-svn-id: https://llvm.org/svn/llvm-pr...

1522af0cc90b176247953be228a1d7ab71447253 authored over 5 years ago
Propagating prior merge from 'llvm.org/master'.

af7b38f27d7081633824e77e18fa83c72377bd29 authored over 5 years ago
[c++20] Implement tweaked __VA_OPT__ rules from P1042R1:

* __VA_OPT__ is expanded if the *expanded* __VA_ARGS__ is non-empty,
not if the original arg...

cebd04fa37ed155f64176e6336c7d221162da5a5 authored over 5 years ago
Use DiagRuntimeBehavior for -Wunsequenced to weed out false positives

where either the modification or the other access is unreachable.

git-svn-id: https://llvm.org/s...

32fd9fe276440ee328369c6e3168b52a289b5b2f authored over 5 years ago
Reduce amount of work ODR hashing does.

When a FunctionProtoType is in the original type in a DecayedType, the decayed
type is a Pointer...

c09c3b4c90d5a5730fd018ca56385437d667b1bf authored over 5 years ago
Disallow the operand of __builtin_constant_p from modifying enclosing

state when it's encountered while evaluating a constexpr function.

We attempt to follow GCC trun...

e9b780230d2dde954d8f6750e05c4b89bc99f0d7 authored over 5 years ago
[Driver] Create non-existent directory for -fcrash-diagnostics-dir

When user specifies non-existent directory to -fcrash-diagnostics-dir,
create it rather than fai...

bd2061a19606a27c81bacdd54da40fb5736945c2 authored over 5 years ago
[cxx_status] Don't list -fmodules / -fmodules-ts against C++ modules

support; those turn on different modules modes. The real C++ modules
support is behind -std=c++2a...

67a39e27344295335e733eab5b576c397ebffd4c authored over 5 years ago
[cxx_status] Replace "SVN" entries with Clang 8 as appropriate.

Also: use the "svn" color for "explicit(bool)" rather than the "full" color.

git-svn-id: https:...

27b6ecdb838d41968d345535bf1b533223d678bb authored over 5 years ago
Merge remote-tracking branch 'origin/swift-5.1-branch' into stable

d9fdd8016527d8bb1f825cfef4d509f5f28afc78 authored over 5 years ago
[clang] adding explicit(bool) from c++2a

this patch adds support for the explicit bool specifier.

Changes:
- The parsing for the explici...

6de0b449c07ec7adbcb34e7c94c544ee37ef5963 authored over 5 years ago
CWG issue 727: Fix numerous bugs in support for class-scope explicit

specializations for variable templates.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@...

6cc60c9164a96f1d73ccfd302303490e0d085b87 authored over 5 years ago
[clang-format] Fix bug in block comment reflow that joins * and /

Fixes PR41213

Differential Revision: https://reviews.llvm.org/D61276

git-svn-id: https://llvm....

db45e9b8b840d510c5c5bc1bf7476e70312c59dd authored over 5 years ago
Merge pull request #307 from apple/custom-clang-module-cache

Provide a custom entry for specifying module cache paths

479a83d4106b2b3c4117f0f181bf909d30ebd28e authored over 5 years ago
Provide a custom entry for specifying module cache paths

This is really handy for use in bots with multiple competing workspaces, for
builds that do not ...

099ed9c8ba6391f0af753c6393e78b37ceec27b3 authored over 5 years ago
[COFF, ARM64] Fix ABI implementation of struct returns

Summary:
Related llvm patch: D60348.
Patch co-authored by Sanjin Sijaric.

Reviewers: rnk, efrie...

39af588aaa995c092806bbb467680649b858d82b authored over 5 years ago
Ensure there is stack usage in stack size warning test

r359906 broke this because the only stack usage was from a spill which
can be avoided since the ...

ae674aeaabfd0889fc35dbfb5b65110ceecbc08e authored over 5 years ago
Attempt to fix the clang-sphinx-docs bot after r358797

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359916 91177308-0d34-0410-b5e6-96231b3b80d8

fc06fc4cff19d3828dd5a94b517895c28e83be43 authored over 5 years ago
Remove else-after-return

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359913 91177308-0d34-0410-b5e6-96231b3b80d8

1801280d2dcb52a20c177f780cd4e1d37d0b5eb3 authored over 5 years ago
[CUDA][Clang][Bugfix] Add missing CUDA 9.2 case

Summary:
The bug was reported on the OpenMP-dev list:

.../obj-release/lib/clang/9.0.0/include/_...

964c2356512fb31b502b5d200a9f2716c93a3805 authored over 5 years ago
[CommandLine] Change help output to prefix long options with `--` instead of `-`. NFC . Part 3 of 5

Summary:
By default, `parseCommandLineOptions()` will accept either a
`-` or `--` prefix for lon...

3814a37959fc1491f75e62e6912aa5386630fbb0 authored over 5 years ago
Added an AST matcher for declarations that are in the `std` namespace

Reviewers: alexfh

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://review...

54eb12a115eb4fbdc59b1335d721d0415ca1f7a8 authored over 5 years ago
[Sema][ObjC] Disable -Wunused-parameter for ObjC methods

The warning isn't very useful when the function is an ObjC method.

rdar://problem/41561853

Dif...

6ef4cf339ce48cf922534c163eaec4bcbf85604f authored over 5 years ago
Propagating prior merge from 'llvm.org/master'.

1b4d71f606b662bb9a7cc75472b475e902e10698 authored over 5 years ago
Revert "[Attribute/Diagnostics] Print macro if definition is an attribute declaration"

This reverts commit fc40cbd9d8c63e65eed3590ba925321afe782e1d.

git-svn-id: https://llvm.org/svn/...

a121961bcb19ce431c7e2be54afedf67c3407d8c authored over 5 years ago
Revert r359814 "[Sema] Emit warning for visibility attribute on internal-linkage declaration"

See cfe-commits thread for r359814.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359...

ecefe8a46344839f5272956a045e6f500f0a927e authored over 5 years ago
SemaOverload: Complete candidates before emitting the error, to ensure diagnostics emitted (or suppressed) during completion don't interfere with the overload notes

Because diagnostics and their notes are not connected at the API level,
if the error message for...

6aecacbb8d3d7322d588b528a34a0425444dfafd authored over 5 years ago
Fix -Wunsequenced false-positives in code controlled by a branch on

__builtin_constant_p.

If the operand of __builtin_constant_p is not constant and has
side-effect...

b4f79aa4368802682268e2f39a29dd8f9b107b59 authored over 5 years ago
[CUDA] Do not pass deprecated option fo fatbinary

CUDA 10.1 tools deprecated some command line options.
fatbinary no longer needs --cuda.

Differe...

2067b5bc0787859213f603c8e37d0d2182df48ff authored over 5 years ago
[Attribute/Diagnostics] Print macro if definition is an attribute declaration

If an address_space attribute is defined in a macro, print the macro instead
when diagnosing a w...

fae4e4715c9bc8ceb9b3714d5c08813363890b7f authored over 5 years ago
Change the metadata for heapallocsite calls when the type is cast.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359823 91177308-0d34-0410-b5e6-96231b3b80d8

c1150d547616902e07d68c5b51f466bac8ff1883 authored over 5 years ago
Another attempt to fix "could not find clang-check" lit warning in analyzer-less builds

r359717 added clang-check as a dep of check-clang unconditionally
because I had missed lit.local...

88767d874da80da9730a6610302dee8a559a4a7e authored over 5 years ago
[Sema] Emit warning for visibility attribute on internal-linkage declaration

GCC warns on these cases, but we currently just silently ignore the attribute.

Differential Rev...

151e674ab9981c986990e45c8a0a97815cac2021 authored over 5 years ago
Use primary template parameter names for variable template debug info

Summary:
Fixes PR41677

Consider:
template <typename LHS, typename RHS> constexpr bool is_same...

8a2708eca05acc8285203bd8efbdc68318f61fcb authored over 5 years ago