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

Do not warn on switches over enums that do not use [[maybe_unused]] enumerators

PR36231, [dcl.attr.unused]p3

Reviewers: aaron.ballman

Differential Revision: https://reviews.l...

39c763f34df97613dbe191833e704122831d7d30 authored almost 6 years ago
[OpenCL] Fix initialisation of this via pointer.

When the expression used to initialise 'this' has a pointer type,
check the address space of the...

15e8bd3ce55bc36e6e359d069e472464c798d55f authored almost 6 years ago
[OpenCL] Deduce static data members to __global addr space.

Similarly to static variables in OpenCL, static class data
members should be deduced to __global...

c38febbb182950aea135ddba6520186103110074 authored almost 6 years ago
Fix typo in test case.

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

55766dd673f380c24949a424794764f62ce3242f authored almost 6 years ago
Propagating prior merge from 'llvm.org/master'.

0673d162882651532f6cbcb97bf297e78802d054 authored almost 6 years ago
Adapt -fsanitize=function to SANITIZER_NON_UNIQUE_TYPEINFO

This follows up after b7692bc3e9ad2691fc07261904b88fb15f30696b "[UBSan] Fix
isDerivedFromAtOffse...

9804d3b2a09843e47b5f87a3583db6e84079e981 authored almost 6 years ago
Merge remote-tracking branch 'origin/swift-5.1-branch' into stable

f40cbaaa95fe84018f482f8b386fd24d64467636 authored almost 6 years ago
Replace ad-hoc tracking of pattern for an instantiated class-scope

explicit function specialization with the MemberSpecializationInfo used
everywhere else.

Not NFC...

672ad5280a92fdc73cf54e6fc6ec50e73f6aa7d3 authored almost 6 years ago
Diagnose non-dependent qualified friend function template declarations

that don't match any existing declaration. Don't get confused and treat
such declarations as temp...

2d77937455e8f133a9e4df562d91f40a97c59c8c authored almost 6 years ago
[COFF, ARM64] Align global symbol by size for ARM64 MSVC ABI

According to alignment section in below ARM64 ABI document, MSVC could increase
alignment of glo...

7a72a8bc72710febe64ee092f919514f3de6cf88 authored almost 6 years ago
Consume unexpected "template" keywords after "using"

The parser was dealing with unexpected "template" keywords after "using"
keywords too late and p...

c9884fd36d9a452fad1edc440dbc2835340e1602 authored almost 6 years ago
Revert r359717, "Make check-clang depend on the clang-check binary always"

The Tooling tests do have a lit.local.cfg with

if not config.root.clang_staticanalyzer:
...

b1e9fc11aabd9b342d59b9449936426731e0d023 authored almost 6 years ago
[analyzer] Fix buildbot failures caused by a forgotten initialization

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

e8fadf080df69ce960e7ae6aabe5e3246e5bc8dd authored almost 6 years ago
Make clang/utils/creduce-clang-crash.py executable

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

6e0cfff80b3c22e0ee832692042faabce09e4e89 authored almost 6 years ago
[analyzer] Don't display implementation checkers under -analyzer-checker-help, but do under the new flag -analyzer-checker-help-hidden

During my work on analyzer dependencies, I created a great amount of new
checkers that emitted n...

34d90848338b864821e93b2a033e3717d2010f78 authored almost 6 years ago
Make check-clang depend on the clang-check binary always

check-clang (the target that runs all clang tests) used to
only depend on clang-check (a binary ...

1b085d0df0cf720bab2a6192f50ee0f69f458ef7 authored almost 6 years ago
[Parser] Avoid correcting delayed typos in array subscript multiple times.

We correct some typos in `ActOnArraySubscriptExpr` and
`ActOnOMPArraySectionExpr`, so when their...

e6996109950703f1ceded58caedd5216e28f3382 authored almost 6 years ago
Propagating prior merge from 'llvm.org/master'.

ac5bf362462a2ad37907e6618ee4d9b0695281a2 authored almost 6 years ago
[clang-format] Fix a bug in AlignConsecutiveDeclarations.

Fixes PR37175

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

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

c93a7477d59bf70daf83a5d8c32c65dcc9590388 authored almost 6 years ago
Merge remote-tracking branch 'llvmorg/master' into upstream-with-swift

Conflicts:
include/clang/Basic/DiagnosticIDs.h

73d19ac596ca98a10f0af4efe4f28832b709a36d authored almost 6 years ago
[Driver] Explicitly request platform rtlib in the Driver pic test

This test checks whether crtbegin.o and crtend.o appear on the link
line, but names of these fil...

faa9d11b755b3e108b0bb2811f821fe3b6da8499 authored almost 6 years ago
Bump DIAG_SIZE_SEMA, as we've hit it.

$ grep 'DIAG_SIZE_SEMA =' include/clang/Basic/DiagnosticIDs.h
DIAG_SIZE_SEMA ...

24af12e424f144d65011f37af1379cd91fb0b3a2 authored almost 6 years ago
Propagating prior merge from 'llvm.org/master'.

75dcde0899bb2c195c90da68fb6ad69363592165 authored almost 6 years ago
[analyzer][tests][NFC] Add EOF newlines, normalize reference expected files

Reference expected files not ending with a newline are normalized to
have said newlines. Additio...

8559468771b1d8912eaf6fd60506149bb545d9ac authored almost 6 years ago
[analyzer][tests] Use diff_plist, correct order of arguments for missed cases; NFC

For various files under `clang/test/Analysis`, D52036 applied
`%diff_plist` to replace `diff` in...

e35d49b2898a69ac6457f39e2f6c1a0e26849e75 authored almost 6 years ago
[clang-format] Fix bug that misses some function-like macro usages

Fixes PR41483

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

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

f1f9d1bbc248fc274711984e89e4923fd0d81db8 authored almost 6 years ago
Change llvm-{objdump,readobj} -long-option to --long-option or well-known short options in tests. NFC

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

056b030299b4d15dec39445fbd531242370c536c authored almost 6 years ago
Propagating prior merge from 'llvm.org/master'.

abf6aad986a441d8ec8647b35b91c2ad8ee717b0 authored almost 6 years ago
lib/Header: Fix Visual Studio builds try #2

Summary:
This is a follow up to r355253 and a better fix than the first attempt
which was r35925...

a0b7c9ab792d9fbbf1481e203c7c0d34666eea84 authored almost 6 years ago
Fix auto-init test

r359628 changed the initialization of padding to follow C, but I didn't update the C++ tests.

g...

c2ce2ceab5433089a487194a1c7b6afa6123ed67 authored almost 6 years ago
Variable auto-init: don't initialize aggregate padding of all aggregates

Summary:
C guarantees that brace-init with fewer initializers than members in the
aggregate will...

799b95f345a257070420583430c05b5556f08753 authored almost 6 years ago
Merge remote-tracking branch 'origin/swift-5.1-branch' into stable

a382bb141ce8bbafddb3b45e03b0137e3a9c5f6d authored almost 6 years ago
Fix auto-init test

r359628 changed the initialization of padding to follow C, but I didn't update the C++ tests.

g...

9f6cfd8878f210c55a1c7463ddc9225b33ece398 authored almost 6 years ago
[WebAssembly] Use the "wasm32-wasi" triple in tests

Similar to https://reviews.llvm.org/D61334, update clang tests to use the
"wasm32-wasi" triple, ...

30106dd5be4e81ca5a21d021527d4e8eccf915d1 authored almost 6 years ago
Variable auto-init: don't initialize aggregate padding of all aggregates

Summary:
C guarantees that brace-init with fewer initializers than members in the
aggregate will...

11659cf432decd2e9de8e2a88faf4bff614ca95d authored almost 6 years ago
Remove two unnecessary wrappers of canPassInRegisters

These extra layers aren't necessary.

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

99dc6c40f040f036121b39cf02431c3166779ad7 authored almost 6 years ago
Set LoopInterleaved in the PassManagerBuilder.

Summary: Corresponds to D61030.

Subscribers: jlebar, cfe-commits, llvm-commits

Tags: #clang

D...

bccbbe90172a6a2f7405fdc1ee7db60f52752a26 authored almost 6 years ago
[analyzer] Treat functions without run-time branches as "small".

Currently we always inline functions that have no branches, i.e. have exactly
three CFG blocks: ...

a98dc4a4249fee7c50474d0af5a32228e03913d3 authored almost 6 years ago
[analyzer] SmartPtrModeling: Fix a null dereference.

Don't crash when trying to model a call in which the callee is unknown
in compile time, eg. a po...

a44ea132e02aa9090752cad50648ec86b3bfb423 authored almost 6 years ago
[Driver] Support compiler-rt crtbegin.o/crtend.o for Linux

When compiler-rt is selected as the runtime library for Linux targets
use its crtbegin.o/crtend....

238601847845651682cc8740ef5135ec85212119 authored almost 6 years ago
Add requires amdgpu-registered-target for amdgpu-float16.cpp

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

3a337f1126e331163a3f787dbb95be40007a96a7 authored almost 6 years ago
AMDGPU: Enable _Float16

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

63e574d77118038bbb1364585dc3a681660bc252 authored almost 6 years ago
[LibTooling] Fix broken test after r359574.

r359574 changed the way that failures are reported, which broke the test TransformerTest.NodePar...

fcfa5da42784b3c350c3ce31373656904e6d06dd authored almost 6 years ago
[LibTooling] Change Transformer's TextGenerator to a partial function.

Summary:
Changes the signature of the TextGenerator std::function to return an Expected<std::str...

f62caab5336554b0c4389a72a5684b98bc63d4b3 authored almost 6 years ago
Fix inconsistency in calculating DIAG_START_ values.

This was introduced at r313975. As DIAG_SIZE_CROSSTU and
DIAG_SIZE_COMMENT are both 100 this sho...

6332c523cd84170619dbeac19f6204f8eb1d668d authored almost 6 years ago
Fix gcc "-Wdangling-else" warning. NFCI.

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

655f341a43b511f158ff9ae5d11d95c3ac641854 authored almost 6 years ago
Fix gcc "-Wdangling-else" warnings. NFCI.

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

f8cb6c3418c7171f4d726d69ba302b7e0f2d23f6 authored almost 6 years ago
[analyzer][UninitializedObjectChecker] PR41611: Regard vector types as primitive

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

Similarly to D61106, the checker ran over an llvm_u...

bbce6781086684deafc9a99d1f9bc6783aa70787 authored almost 6 years ago
Propagating prior merge from 'llvm.org/master'.

626fae8e770cf2b4c469f20e1d558c1b3df2d393 authored almost 6 years ago
[analyzer] Treat functions without run-time branches as "small".

Currently we always inline functions that have no branches, i.e. have exactly
three CFG blocks: ...

c208eda5d902a10fcbc85024a06a60f72fbed767 authored almost 6 years ago
[analyzer] SmartPtrModeling: Fix a null dereference.

Don't crash when trying to model a call in which the callee is unknown
in compile time, eg. a po...

4ecb1e1c614b63724545e32904ca321e148e629c authored almost 6 years ago
Merge remote-tracking branch 'origin/swift-5.1-branch' into stable

f6ae6ad8c950949caf3db1b2d351a24982459818 authored almost 6 years ago
[NFC] typo

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

753d85a17fa0430aa27e38fa6ac5d5dd0240c351 authored almost 6 years ago
[NFC] typo

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

c7d252e2a5818fb25e7a2f7f229b1acc7b62e8f0 authored almost 6 years ago
Add __builtin_dcbf support for PPC

Summary:
This patch adds support for __builtin_dcbf for PPC.

__builtin_dcbf copies the contents...

cde6bbc766130822b7b296d84d9e03cbdd010b95 authored almost 6 years ago
[Diagnostics] Support -Wtype-limits for GCC compatibility

Summary:
GCC's -Wtype-limits (part of -Wextra):
Warn if a comparison is always true or always f...

6eedd8523a8d0f6c4deb0a240408270ce850b59b authored almost 6 years ago
Re-land r359250, [COFF] Statically link certain runtime library functions

Reverts the revert of r359251, this time with fixed tests.

Differential Revision: https://revie...

887ff701b7382dfa758099f6fb8fccc665e54384 authored almost 6 years ago
Make test more robust by writing stdout/stderr to different files.

Our internal build bots were failing this test randomly as the stderr
output was emitted to the ...

71a069a6ebdaea8a2881b5f2837a0e75dcd74351 authored almost 6 years ago
Simplify exclusion of nested classes from extern template instantiation, NFC

Summary:
This simplifies three checks for MS ABI, Win Itanium, or Win GNU to just
"is Windows".
...

fbebf8caed44af2049f8f1ebe470c76c03ec780b authored almost 6 years ago
When skipping code at the start of a file during PCH use, Preprocessor::Lex

is not used since it consumes all preprocessor directives until it returns
a real token. Using th...

8e6b618dacf4ea1f54007bb2aecdedac400d323d authored almost 6 years ago
[ASTImporter] Add an ImportImpl method to allow customizing Import behavior.

Summary:
We are currently implementing support in LLDB that reconstructs the STL templates from
...

49c79db1f9b52237211136e3aa190a9a36b30d40 authored almost 6 years ago
[analyzer] RetainCount: Add a suppression for "the Matching rule".

In the OSObject universe there appears to be another slightly popular contract,
apart from "crea...

61879a50c85eed4559b96eef99fe50de06a1fb49 authored almost 6 years ago
[analyzer] RetainCount: Allow offsets in return values.

Because RetainCountChecker has custom "local" reasoning about escapes,
it has a separate facilit...

e85dba6911152b192832a42425d799e3cfd22918 authored almost 6 years ago
[analyzer] Fix crash when returning C++ objects from ObjC messages-to-nil.

the assertion is in fact incorrect: there is a cornercase in Objective-C++
in which a C++ object...

13c35d23bd0f846ad6f7eec9f27d6a33178268a3 authored almost 6 years ago
[analyzer] Fix macro names in diagnostics within bigger macros.

If macro "CHECK_X(x)" expands to something like "if (x != NULL) ...",
the "Assuming..." note no ...

7f9065c3c1c9d162457da129a6afd3ee93b2bd0f authored almost 6 years ago
[analyzer] Unbreak body farms in presence of multiple declarations.

When growing a body on a body farm, it's essential to use the same redeclaration
of the function...

7a635519a0486aa9ae421932aab49305e162ec57 authored almost 6 years ago
[analyzer] PR41335: Fix crash when no-store event is in a body-farmed function.

Stuffing invalid source locations (such as those in functions produced by
body farms) into path ...

8a0891bf67b775b96fca4767e3293e1070e34369 authored almost 6 years ago
[analyzer] PR41269: Add a bit of C++ smart pointer modeling.

Implement cplusplus.SmartPtrModeling, a new checker that doesn't
emit any warnings but models me...

e72761d15fed2a78fc3703d18be4057e5e8c612d authored almost 6 years ago
Re-apply r357823 "[Lexer] NFC: Fix an off-by-one bug in getAsCharRange()."

It now comes with a follow-up fix for the clients of this API
in clangd and clang-tidy.

Differe...

c666419c95441a3da1f9debd7ee5e6b0170a7b84 authored almost 6 years ago
[LibTooling] Fix unneeded use of unique_ptr where shared_ptr is expected.

Summary: This fixes a few places in the Stencil implementation where a unique_ptr is created at ...

b95334e6d4479448c926ca826a813714324eb18c authored almost 6 years ago
[OPENMP]Fix PR41617: crash on template instantiation.

Fixed the crash on the template instantiation when trying to check the
data locality in the curr...

5192e612264da0e1990e81920410da77a10fa43f authored almost 6 years ago
Merge pull request #305 from apple/revert-304-swift-5.1-branch-sort-umbrellas

Revert "[Modules] Make header inclusion order from umbrella dirs deterministic"

b83e6be41558a997f51f30cb5756746aedddb654 authored almost 6 years ago
Revert "[Modules] Make header inclusion order from umbrella dirs deterministic"

This reverts commit 60018917a0520c9befef02d01935f6058c8cf63b.

e11ced3681bef671cfb1eecd617f1e0d6b882087 authored almost 6 years ago
[libclang] Add missing export for clang_Cursor_isAnonymousRecordDecl

Follow up for D61232 to fix build.

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

91f21b447d4e34a0bd1b13489bfd3acd337e080b authored almost 6 years ago
[libclang] Restore old clang_Cursor_isAnonymous behaviour

D54996 Changed the behaviour of clang_Cursor_isAnonymous, but there is no alternative available ...

44566ab1c4af8ad6a51c035f6440197a0ff0c7ee authored almost 6 years ago
Propagating prior merge from 'llvm.org/master'.

e34675c5443c19e67c3078caf1ffdf2d0e56d5a8 authored almost 6 years ago
[PowerPC][Clang] Add tests for PowerPC MMX intrinsics

Add the rest of test cases covering functions defined in mmintrin.h on PowerPC.

Reviewed By: Ji...

ec2a7351eae3c202f9509754724ab877380b1b42 authored almost 6 years ago
Merge remote-tracking branch 'origin/swift-5.1-branch' into stable

3ca8cf0b1e89fa7b0066626a992cda8c58032084 authored almost 6 years ago
Reinstate r359059, reverted in r359361, with a fix to properly prevent

us emitting the operand of __builtin_constant_p if it has side-effects.

Original commit message:...

009d37df084524bc027fa893b47b17faba9815fa authored almost 6 years ago
Propagating prior merge from 'llvm.org/master'.

ebc968eddc2de4b2d58015b309bbe882312f24ce authored almost 6 years ago
[AArch64] Initialize HasMTE

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

de845c08ccfe69d37f648ef4b5faa7d3782f2b71 authored almost 6 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...

60018917a0520c9befef02d01935f6058c8cf63b authored almost 6 years ago
Merge remote-tracking branch 'origin/swift-5.1-branch' into stable

dd953cb616aecbaedfa8b7dfa1246fee4b5ce875 authored almost 6 years ago
Revert Fix interactions between __builtin_constant_p and constexpr to match current trunk GCC.

This reverts r359059 (git commit 0b098754b73f3b96d00ecb1c7605760b11c90298)

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

2b5f7f9e2e42cca4f8df5763cd2529324a2d421a authored almost 6 years ago
[Fuchsia] Support multilib for -fsanitize=address and -fno-exceptions

This introduces a support for multilibs to Fuchsia driver. Unlike the
existing multilibs that ar...

dfdff39b85e15408d742af86698d9e0db4f900e0 authored almost 6 years ago
[Driver] Support priority for multilibs

When more than one multilib flag matches, try to select the best
possible match based on priorit...

b8a27facb342a656ec9e00a8e5ae58e0073e54d4 authored almost 6 years ago
[clang][driver] Weaken the test from 359353 to appease Windows bots

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

6b3068a9c53b2160671833c21cf15cc1cd17b0e0 authored almost 6 years ago
[driver][macOS] Link libarclite from the default toolchain when clang

is running in a toolchain outside of xcode

'libarclite' usually lives in the same toolchain as '...

c609f16f149a94687d7dc41c64bef05c2f6f5077 authored almost 6 years ago
[driver][macOS] Link libarclite from the default toolchain when clang

is running in a toolchain outside of xcode

'libarclite' usually lives in the same toolchain as '...

6c1a7472fe28f11e86b8e44e41da52660b7a5719 authored almost 6 years ago
Add to the release notes the fact that UninitializedObject checker is now

considered as stable

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

1e503de6aa612b6178a938b5b9711b52e592b60a authored almost 6 years ago
[AArch64] Add support for MTE intrinsics

This provides intrinsics support for Memory Tagging Extension (MTE),
which was introduced with th...

bf0e87411c9175f911b7319f03c9cde84075152b authored almost 6 years ago
[MinGW] Always emit local typeinfo

This makes sure that code built with headers for a statically linked
libc++ also works when link...

cde9c9e3de199301f9b3e23b8eacebcd86ffe502 authored almost 6 years ago
[HIP] Fix visibility of `__constant__` variables.

Summary:
- `__constant__` variables should not be `hidden` as the linker may turn
them into `L...

3bbed5ed96fe98ec1c57a7455c8e56378c29cbd6 authored almost 6 years ago
[MinGW] Do dllexport inline methods in template instantiation

Normally, in MinGW mode, inline methods aren't dllexported.

However, in the case of a dllimport...

2061b0cab0002c264af632bf5e6ba5306c589c94 authored almost 6 years ago
[MinGW] Don't let template instantiation declarations cover nested classes

An explicit template instantiation declaration used to let
callers assume both outer and nested ...

7331c3301af9628719664c9a4feea576df3994a9 authored almost 6 years ago
[OPENMP]Added check for non-random access types for the dependent loop

counters.

According to the OpenMP 5.0, For any associated loop where the b or lb
expression is n...

bb82b001564e9b72c0dfcb4323798888c0bdde3b authored almost 6 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...

f894ac01dc3f4a29fa6fbaf44518c5de98c848b4 authored almost 6 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...

289f8eed4f00eac75902d76addd1cbd551637a1c authored almost 6 years ago
[BPF] do not generate predefined macro bpf

"DefineStd(Builder, "bpf", Opts)" generates the following three
macros:
bpf
__bpf
__bpf__
...

276b4e7f86499fe84998342d76d0db521ca7f0aa authored almost 6 years ago
[MinGW] Fix dllexport of explicit template instantiation

Contrary to MSVC, GCC/MinGW needs to have the dllexport attribute
on the template instantiation ...

1242a1271457e94c85a1c34fd296af6f337745b1 authored almost 6 years ago