[clang] 5824d2b - Fix the declaration printer to properly handle prototypes in C

2022-02-17 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-02-17T13:54:09-05:00 New Revision: 5824d2bb0f036e631419ae0993fd03d633398266 URL: https://github.com/llvm/llvm-project/commit/5824d2bb0f036e631419ae0993fd03d633398266 DIFF: https://github.com/llvm/llvm-project/commit/5824d2bb0f036e631419ae0993fd03d633398266.diff

[clang] f5b85f1 - Use functions with prototypes when appropriate; NFC

2022-02-17 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-02-17T15:33:50-05:00 New Revision: f5b85f15510db409277d8492524b2fc040e776d8 URL: https://github.com/llvm/llvm-project/commit/f5b85f15510db409277d8492524b2fc040e776d8 DIFF: https://github.com/llvm/llvm-project/commit/f5b85f15510db409277d8492524b2fc040e776d8.diff

[clang] 225b91e - Fix crash getting name of a template decl

2022-04-22 Thread Aaron Ballman via cfe-commits
Author: Tom Eccles Date: 2022-04-22T13:03:28-04:00 New Revision: 225b91e6cbba31ff1ce787a152a67977d08fdcab URL: https://github.com/llvm/llvm-project/commit/225b91e6cbba31ff1ce787a152a67977d08fdcab DIFF: https://github.com/llvm/llvm-project/commit/225b91e6cbba31ff1ce787a152a67977d08fdcab.diff LO

[clang] 8b68797 - Fix "not all control paths return a value" diagnostic; NFC

2022-04-28 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-04-28T12:57:07-04:00 New Revision: 8b687974842d2c3442091681fb4d3008ef5810a7 URL: https://github.com/llvm/llvm-project/commit/8b687974842d2c3442091681fb4d3008ef5810a7 DIFF: https://github.com/llvm/llvm-project/commit/8b687974842d2c3442091681fb4d3008ef5810a7.diff

[clang] ef87865 - Silence -Wstrict-prototype diagnostics in C2x mode

2022-04-29 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-04-29T13:37:33-04:00 New Revision: ef87865b98fa25af1d2c045bab1268b2a1503374 URL: https://github.com/llvm/llvm-project/commit/ef87865b98fa25af1d2c045bab1268b2a1503374 DIFF: https://github.com/llvm/llvm-project/commit/ef87865b98fa25af1d2c045bab1268b2a1503374.diff

[clang-tools-extra] a9d68a5 - Generalize calls to ImplicitlyDefineFunction

2022-04-30 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-04-30T10:03:51-04:00 New Revision: a9d68a5524dea113cace5983697786599cbdce9a URL: https://github.com/llvm/llvm-project/commit/a9d68a5524dea113cace5983697786599cbdce9a DIFF: https://github.com/llvm/llvm-project/commit/a9d68a5524dea113cace5983697786599cbdce9a.diff

[clang] 786954d - Accept -fno-knr-functions as a driver flag as well

2022-04-30 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-04-30T13:37:55-04:00 New Revision: 786954db06ab253dbd62d059036e06f6bbd9223c URL: https://github.com/llvm/llvm-project/commit/786954db06ab253dbd62d059036e06f6bbd9223c DIFF: https://github.com/llvm/llvm-project/commit/786954db06ab253dbd62d059036e06f6bbd9223c.diff

[clang] 1fc208d - Fix Clang sphinx build

2022-05-03 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-03T07:14:12-04:00 New Revision: 1fc208d40012103f81279ab85949a91f8188e7a1 URL: https://github.com/llvm/llvm-project/commit/1fc208d40012103f81279ab85949a91f8188e7a1 DIFF: https://github.com/llvm/llvm-project/commit/1fc208d40012103f81279ab85949a91f8188e7a1.diff

[clang] 50b51b1 - Fix a typo in an OpenMP test

2022-05-03 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-03T10:01:46-04:00 New Revision: 50b51b1860acbfb775d5e2eee3310e25c635d667 URL: https://github.com/llvm/llvm-project/commit/50b51b1860acbfb775d5e2eee3310e25c635d667 DIFF: https://github.com/llvm/llvm-project/commit/50b51b1860acbfb775d5e2eee3310e25c635d667.diff

[clang] 50c959b - Add explicit OpenMP 5.0 case for version macros; NFC

2022-05-03 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-03T10:01:47-04:00 New Revision: 50c959b4fa4288127026a6a908c9a6d74b6f5d11 URL: https://github.com/llvm/llvm-project/commit/50c959b4fa4288127026a6a908c9a6d74b6f5d11 DIFF: https://github.com/llvm/llvm-project/commit/50c959b4fa4288127026a6a908c9a6d74b6f5d11.diff

[clang] 1587f6b - Bump the serialization major version number

2022-05-04 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-04T09:07:57-04:00 New Revision: 1587f6bb3ca2cf83591f392f932007dd0fdb7b54 URL: https://github.com/llvm/llvm-project/commit/1587f6bb3ca2cf83591f392f932007dd0fdb7b54 DIFF: https://github.com/llvm/llvm-project/commit/1587f6bb3ca2cf83591f392f932007dd0fdb7b54.diff

[clang] 94d36fd - Fix a crash on invalid with _Generic expressions

2022-05-04 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-04T12:41:56-04:00 New Revision: 94d36fdbd7d2c6eab250f15f65fd20a6447b92eb URL: https://github.com/llvm/llvm-project/commit/94d36fdbd7d2c6eab250f15f65fd20a6447b92eb DIFF: https://github.com/llvm/llvm-project/commit/94d36fdbd7d2c6eab250f15f65fd20a6447b92eb.diff

[clang] 859d923 - Fix a failing assertion with vector type initialization

2022-05-04 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-04T13:25:21-04:00 New Revision: 859d92394812c0e5e650ab337717719b9687e5ce URL: https://github.com/llvm/llvm-project/commit/859d92394812c0e5e650ab337717719b9687e5ce DIFF: https://github.com/llvm/llvm-project/commit/859d92394812c0e5e650ab337717719b9687e5ce.diff

[clang] b1a55d0 - Fix a crash on targets where __bf16 isn't supported

2022-05-04 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-04T16:45:59-04:00 New Revision: b1a55d0895249a493da5a442e44ee0a846410e88 URL: https://github.com/llvm/llvm-project/commit/b1a55d0895249a493da5a442e44ee0a846410e88 DIFF: https://github.com/llvm/llvm-project/commit/b1a55d0895249a493da5a442e44ee0a846410e88.diff

[clang] 199dfb4 - Silence a false positive about an unevaluated expr w/side effects

2022-05-05 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-05T12:12:30-04:00 New Revision: 199dfb4d0cca0aaa217e79bd2371f96f6336bbc5 URL: https://github.com/llvm/llvm-project/commit/199dfb4d0cca0aaa217e79bd2371f96f6336bbc5 DIFF: https://github.com/llvm/llvm-project/commit/199dfb4d0cca0aaa217e79bd2371f96f6336bbc5.diff

[clang] 967137c - No longer accept scoped enumerations in C

2022-05-05 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-05T14:00:01-04:00 New Revision: 967137ca3cb7cf38b2fedf0415946ff3ffd0ef50 URL: https://github.com/llvm/llvm-project/commit/967137ca3cb7cf38b2fedf0415946ff3ffd0ef50 DIFF: https://github.com/llvm/llvm-project/commit/967137ca3cb7cf38b2fedf0415946ff3ffd0ef50.diff

[clang] f6dff93 - Pedantically warn about // comments in gnu89 mode

2022-05-05 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-05T14:35:47-04:00 New Revision: f6dff93641b2259623e686eb13a1884b8b9f4a00 URL: https://github.com/llvm/llvm-project/commit/f6dff93641b2259623e686eb13a1884b8b9f4a00 DIFF: https://github.com/llvm/llvm-project/commit/f6dff93641b2259623e686eb13a1884b8b9f4a00.diff

[clang] 1c50909 - Revert "Pedantically warn about // comments in gnu89 mode"

2022-05-05 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-05T18:39:13-04:00 New Revision: 1c50909f6f8ac183b82e973457522439a8856e96 URL: https://github.com/llvm/llvm-project/commit/1c50909f6f8ac183b82e973457522439a8856e96 DIFF: https://github.com/llvm/llvm-project/commit/1c50909f6f8ac183b82e973457522439a8856e96.diff

[clang] 43d8ffe - Fix underlining length; NFC

2022-05-06 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-06T08:47:45-04:00 New Revision: 43d8ffeeb1f2ba68e51652ee50da8cf5bf49fdfd URL: https://github.com/llvm/llvm-project/commit/43d8ffeeb1f2ba68e51652ee50da8cf5bf49fdfd DIFF: https://github.com/llvm/llvm-project/commit/43d8ffeeb1f2ba68e51652ee50da8cf5bf49fdfd.diff

[clang-tools-extra] 8614674 - Fix underlining in docs to fix the sphinx build

2022-05-07 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-07T07:21:43-04:00 New Revision: 8614674b55669025e349324f31eb11505becede1 URL: https://github.com/llvm/llvm-project/commit/8614674b55669025e349324f31eb11505becede1 DIFF: https://github.com/llvm/llvm-project/commit/8614674b55669025e349324f31eb11505becede1.diff

[clang] a1bb952 - Revert "[FuzzMutate] Split out FuzzerCLI library that doesn't depend on IR."

2022-05-07 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-07T07:29:57-04:00 New Revision: a1bb952e833b34fdf03bd571e7f8c948191be018 URL: https://github.com/llvm/llvm-project/commit/a1bb952e833b34fdf03bd571e7f8c948191be018 DIFF: https://github.com/llvm/llvm-project/commit/a1bb952e833b34fdf03bd571e7f8c948191be018.diff

[clang-tools-extra] a1bb952 - Revert "[FuzzMutate] Split out FuzzerCLI library that doesn't depend on IR."

2022-05-07 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-07T07:29:57-04:00 New Revision: a1bb952e833b34fdf03bd571e7f8c948191be018 URL: https://github.com/llvm/llvm-project/commit/a1bb952e833b34fdf03bd571e7f8c948191be018 DIFF: https://github.com/llvm/llvm-project/commit/a1bb952e833b34fdf03bd571e7f8c948191be018.diff

[clang] 69fcf4f - Emit SARIF Diagnostics: Create `clang::SarifDocumentWriter` interface

2022-07-11 Thread Aaron Ballman via cfe-commits
Author: Vaibhav Yenamandra Date: 2022-07-11T12:18:13-04:00 New Revision: 69fcf4fd5a014b763061f13b5c4434d49c42c35a URL: https://github.com/llvm/llvm-project/commit/69fcf4fd5a014b763061f13b5c4434d49c42c35a DIFF: https://github.com/llvm/llvm-project/commit/69fcf4fd5a014b763061f13b5c4434d49c42c35a.

[clang] c8a28ae - Revert "Emit SARIF Diagnostics: Create `clang::SarifDocumentWriter` interface"

2022-07-11 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-07-11T12:28:31-04:00 New Revision: c8a28ae214c08c8447a4eb42418585b2b3eef6fb URL: https://github.com/llvm/llvm-project/commit/c8a28ae214c08c8447a4eb42418585b2b3eef6fb DIFF: https://github.com/llvm/llvm-project/commit/c8a28ae214c08c8447a4eb42418585b2b3eef6fb.diff

Re: [clang] c8a28ae - Revert "Emit SARIF Diagnostics: Create `clang::SarifDocumentWriter` interface"

2022-07-11 Thread Aaron Ballman via cfe-commits
On Mon, Jul 11, 2022 at 12:28 PM Aaron Ballman via cfe-commits wrote: > > > Author: Aaron Ballman > Date: 2022-07-11T12:28:31-04:00 > New Revision: c8a28ae214c08c8447a4eb42418585b2b3eef6fb > > URL: > https://github.com/llvm/llvm-project/commit/c8a28ae214c08c8447a4eb4

[clang] 3cfa32a - Undeprecate ATOMIC_FLAG_INIT in C++

2022-07-12 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-07-12T06:48:31-04:00 New Revision: 3cfa32a71ecfbc1bf993358e32b916cf3483299f URL: https://github.com/llvm/llvm-project/commit/3cfa32a71ecfbc1bf993358e32b916cf3483299f DIFF: https://github.com/llvm/llvm-project/commit/3cfa32a71ecfbc1bf993358e32b916cf3483299f.diff

[clang] 23d8eca - Silence a sphinx diagnostic; NFC

2022-07-12 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-07-12T13:02:20-04:00 New Revision: 23d8ecaa9f97a34ddc80d0ee3fcf885aa0302855 URL: https://github.com/llvm/llvm-project/commit/23d8ecaa9f97a34ddc80d0ee3fcf885aa0302855 DIFF: https://github.com/llvm/llvm-project/commit/23d8ecaa9f97a34ddc80d0ee3fcf885aa0302855.diff

[clang] 514dd3c - Update the status for more C DRs

2022-07-12 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-07-12T14:06:39-04:00 New Revision: 514dd3c3c334251e573cf2201273ab3c38982e94 URL: https://github.com/llvm/llvm-project/commit/514dd3c3c334251e573cf2201273ab3c38982e94 DIFF: https://github.com/llvm/llvm-project/commit/514dd3c3c334251e573cf2201273ab3c38982e94.diff

[clang] 2346d19 - Speculatively fix this C DR test

2022-07-12 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-07-12T15:18:03-04:00 New Revision: 2346d19a262eb6d62db9588afb154a5ef856dabb URL: https://github.com/llvm/llvm-project/commit/2346d19a262eb6d62db9588afb154a5ef856dabb DIFF: https://github.com/llvm/llvm-project/commit/2346d19a262eb6d62db9588afb154a5ef856dabb.diff

[clang] b7e77ff - Rewording "static_assert" diagnostics

2022-07-14 Thread Aaron Ballman via cfe-commits
Author: Muhammad Usman Shahid Date: 2022-07-14T07:47:37-04:00 New Revision: b7e77ff25fb2412f6ab6d6cc75b0e2f97bd3 URL: https://github.com/llvm/llvm-project/commit/b7e77ff25fb2412f6ab6d6cc75b0e2f97bd3 DIFF: https://github.com/llvm/llvm-project/commit/b7e77ff25fb2412f6ab6d6cc75b0e2f97b

[clang] 4b03ad6 - [clang] Emit SARIF Diagnostics: Create `clang::SarifDocumentWriter` interface

2022-07-18 Thread Aaron Ballman via cfe-commits
Author: Vaibhav Yenamandra Date: 2022-07-18T08:37:59-04:00 New Revision: 4b03ad650645e2f74a8824c8f69b095ca321fdfe URL: https://github.com/llvm/llvm-project/commit/4b03ad650645e2f74a8824c8f69b095ca321fdfe DIFF: https://github.com/llvm/llvm-project/commit/4b03ad650645e2f74a8824c8f69b095ca321fdfe.

[clang-tools-extra] 7068aa9 - Strengthen -Wint-conversion to default to an error

2022-07-22 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-07-22T15:24:54-04:00 New Revision: 7068aa98412ade19a34b7ed126f4669f581b2311 URL: https://github.com/llvm/llvm-project/commit/7068aa98412ade19a34b7ed126f4669f581b2311 DIFF: https://github.com/llvm/llvm-project/commit/7068aa98412ade19a34b7ed126f4669f581b2311.diff

[clang] 214a760 - Switch from XFAIL to UNSUPPORTED; NFC

2022-07-25 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-07-25T07:21:19-04:00 New Revision: 214a760a211606d14b3b2b852bd9d9a21149317e URL: https://github.com/llvm/llvm-project/commit/214a760a211606d14b3b2b852bd9d9a21149317e DIFF: https://github.com/llvm/llvm-project/commit/214a760a211606d14b3b2b852bd9d9a21149317e.diff

[clang] 882915d - Enum conversion warning when one signed and other unsigned.

2022-05-09 Thread Aaron Ballman via cfe-commits
Author: Micah Weston Date: 2022-05-09T10:16:19-04:00 New Revision: 882915df61e33f3a2b7f58e52f572717e1c11499 URL: https://github.com/llvm/llvm-project/commit/882915df61e33f3a2b7f58e52f572717e1c11499 DIFF: https://github.com/llvm/llvm-project/commit/882915df61e33f3a2b7f58e52f572717e1c11499.diff

[clang] ca75ac5 - Diagnose unreachable generic selection associations

2022-05-10 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-10T11:15:56-04:00 New Revision: ca75ac5f04f269def97e6844c2f5c9596b29c84c URL: https://github.com/llvm/llvm-project/commit/ca75ac5f04f269def97e6844c2f5c9596b29c84c DIFF: https://github.com/llvm/llvm-project/commit/ca75ac5f04f269def97e6844c2f5c9596b29c84c.diff

[clang] 786c721 - Add extension diagnostic for linemarker directives

2022-05-11 Thread Aaron Ballman via cfe-commits
Author: Ken Matsui Date: 2022-05-11T06:42:00-04:00 New Revision: 786c721c2bbd2e0646e314671e010859550423bf URL: https://github.com/llvm/llvm-project/commit/786c721c2bbd2e0646e314671e010859550423bf DIFF: https://github.com/llvm/llvm-project/commit/786c721c2bbd2e0646e314671e010859550423bf.diff LO

[clang] c7ba568 - Fix test; we now expect a pedantic warning

2022-05-11 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-11T06:52:21-04:00 New Revision: c7ba568f40b2d6cbae781223529f63063785b0cf URL: https://github.com/llvm/llvm-project/commit/c7ba568f40b2d6cbae781223529f63063785b0cf DIFF: https://github.com/llvm/llvm-project/commit/c7ba568f40b2d6cbae781223529f63063785b0cf.diff

[clang] 65860a9 - Fix the Clang sphinx build

2022-05-11 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-11T12:09:21-04:00 New Revision: 65860a9f5db1befcbd7dc73059b63b5cbce418f4 URL: https://github.com/llvm/llvm-project/commit/65860a9f5db1befcbd7dc73059b63b5cbce418f4 DIFF: https://github.com/llvm/llvm-project/commit/65860a9f5db1befcbd7dc73059b63b5cbce418f4.diff

[clang] a1545f5 - Warn if using `elifdef` & `elifndef` in not C2x & C++2b mode

2022-05-12 Thread Aaron Ballman via cfe-commits
Author: Ken Matsui Date: 2022-05-12T09:26:44-04:00 New Revision: a1545f51a9ef299ca6c6716bd80b862f360453ab URL: https://github.com/llvm/llvm-project/commit/a1545f51a9ef299ca6c6716bd80b862f360453ab DIFF: https://github.com/llvm/llvm-project/commit/a1545f51a9ef299ca6c6716bd80b862f360453ab.diff LO

[clang] c671041 - Check for resource exhaustion when recursively parsing declarators

2022-05-12 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-12T13:20:35-04:00 New Revision: c671041720347c9deb35b1165ee6b6bb88abf07a URL: https://github.com/llvm/llvm-project/commit/c671041720347c9deb35b1165ee6b6bb88abf07a DIFF: https://github.com/llvm/llvm-project/commit/c671041720347c9deb35b1165ee6b6bb88abf07a.diff

[clang] 4be105c - Silence some false positive -Wstrict-prototype warnings

2022-05-13 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-13T08:31:52-04:00 New Revision: 4be105c98a9c7e083cd878ee1751e11160b97b4a URL: https://github.com/llvm/llvm-project/commit/4be105c98a9c7e083cd878ee1751e11160b97b4a DIFF: https://github.com/llvm/llvm-project/commit/4be105c98a9c7e083cd878ee1751e11160b97b4a.diff

[clang] a247ba9 - Suggest typo corrections for preprocessor directives

2022-05-13 Thread Aaron Ballman via cfe-commits
Author: Ken Matsui Date: 2022-05-13T09:16:46-04:00 New Revision: a247ba9d15635d96225ef39c8c150c08f492e70a URL: https://github.com/llvm/llvm-project/commit/a247ba9d15635d96225ef39c8c150c08f492e70a DIFF: https://github.com/llvm/llvm-project/commit/a247ba9d15635d96225ef39c8c150c08f492e70a.diff LO

[clang] d364307 - Remove a stale FIXME comment; NFC

2022-05-13 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-13T10:23:47-04:00 New Revision: d364307542d19ec5b0f4f5ee9adc5a3b7c8639a5 URL: https://github.com/llvm/llvm-project/commit/d364307542d19ec5b0f4f5ee9adc5a3b7c8639a5 DIFF: https://github.com/llvm/llvm-project/commit/d364307542d19ec5b0f4f5ee9adc5a3b7c8639a5.diff

[clang] 47b8424 - Correct the diagnostic behavior for unreachable _Generic associations in C++

2022-05-18 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-18T12:45:38-04:00 New Revision: 47b8424a533d5c02fd8b3517047cf93e533f00d0 URL: https://github.com/llvm/llvm-project/commit/47b8424a533d5c02fd8b3517047cf93e533f00d0 DIFF: https://github.com/llvm/llvm-project/commit/47b8424a533d5c02fd8b3517047cf93e533f00d0.diff

[clang] d374b65 - Drop qualifiers from return types in C (DR423)

2022-05-19 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-19T13:06:50-04:00 New Revision: d374b65f2da1bdd3d9a7e9ac8ed4ad5467c882f9 URL: https://github.com/llvm/llvm-project/commit/d374b65f2da1bdd3d9a7e9ac8ed4ad5467c882f9 DIFF: https://github.com/llvm/llvm-project/commit/d374b65f2da1bdd3d9a7e9ac8ed4ad5467c882f9.diff

[clang] ade5b55 - Add a page to track C defect report status

2022-05-20 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-20T16:07:48-04:00 New Revision: ade5b55af5747413dab8dd57896532fdee19cdf5 URL: https://github.com/llvm/llvm-project/commit/ade5b55af5747413dab8dd57896532fdee19cdf5 DIFF: https://github.com/llvm/llvm-project/commit/ade5b55af5747413dab8dd57896532fdee19cdf5.diff

[clang] df46fb4 - Test C DR conformance (part one of many)

2022-05-21 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-21T15:02:46-04:00 New Revision: df46fb40557a14807dd508af32251ceb1cab8b86 URL: https://github.com/llvm/llvm-project/commit/df46fb40557a14807dd508af32251ceb1cab8b86 DIFF: https://github.com/llvm/llvm-project/commit/df46fb40557a14807dd508af32251ceb1cab8b86.diff

[clang] 36fde81 - Fix failing test bots from df46fb40557a14807dd508af32251ceb1cab8b86

2022-05-21 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-21T16:10:37-04:00 New Revision: 36fde81f93606cfa6357e6463571c0222e7e6e28 URL: https://github.com/llvm/llvm-project/commit/36fde81f93606cfa6357e6463571c0222e7e6e28 DIFF: https://github.com/llvm/llvm-project/commit/36fde81f93606cfa6357e6463571c0222e7e6e28.diff

[clang] 202a4fd - Test more C DR conformance (part two of many)

2022-05-22 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-05-22T13:37:30-04:00 New Revision: 202a4fde2ba92d70f1eb8760e1919b6ab19f0ced URL: https://github.com/llvm/llvm-project/commit/202a4fde2ba92d70f1eb8760e1919b6ab19f0ced DIFF: https://github.com/llvm/llvm-project/commit/202a4fde2ba92d70f1eb8760e1919b6ab19f0ced.diff

[clang] [clang][nullability] allow _Nonnull etc on nullable class types (PR #82705)

2024-03-13 Thread Aaron Ballman via cfe-commits
@@ -2156,9 +2156,10 @@ def TypeNonNull : TypeAttr { let Documentation = [TypeNonNullDocs]; } -def TypeNullable : TypeAttr { +def TypeNullable : DeclOrTypeAttr { let Spellings = [CustomKeyword<"_Nullable">]; let Documentation = [TypeNullableDocs]; +// let Subjects = Su

[clang] [clang][nullability] allow _Nonnull etc on nullable class types (PR #82705)

2024-03-13 Thread Aaron Ballman via cfe-commits
@@ -1494,6 +1494,15 @@ void Parser::ParseMicrosoftInheritanceClassAttributes(ParsedAttributes &attrs) { } } +void Parser::ParseNullabilityClassAttributes(ParsedAttributes &attrs) { + while (Tok.is(tok::kw__Nullable)) { AaronBallman wrote: With other attri

[clang] [clang][nullability] allow _Nonnull etc on nullable class types (PR #82705)

2024-03-13 Thread Aaron Ballman via cfe-commits
@@ -215,6 +215,18 @@ void Sema::inferGslOwnerPointerAttribute(CXXRecordDecl *Record) { inferGslPointerAttribute(Record, Record); } +void Sema::inferNullableClassAttribute(CXXRecordDecl *CRD) { + static llvm::StringSet<> Nullable{ + "auto_ptr", "shared_ptr", "u

[clang] [clang][nullability] allow _Nonnull etc on nullable class types (PR #82705)

2024-03-13 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/82705 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][nullability] allow _Nonnull etc on nullable class types (PR #82705)

2024-03-13 Thread Aaron Ballman via cfe-commits
@@ -4096,6 +4096,18 @@ non-underscored keywords. For example: @property (assign, nullable) NSView *superview; @property (readonly, nonnull) NSArray *subviews; @end + +As well as built-in pointer types, the nullability attributes can be attached +to C++ classes m

[clang] [clang][nullability] allow _Nonnull etc on nullable class types (PR #82705)

2024-03-13 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM though there may be a minor change to the docs that could make sense (feel free to change when landing if you agree). https://github.com/llvm/llvm-project/pull/82705 ___ cfe-commits mail

[clang] Diagnose misuse of the cleanup attribute (PR #80040)

2024-03-13 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/80040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Turn 'counted_by' into a type attribute and parse it into 'CountAttributedType' (PR #78000)

2024-03-13 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. Thank you for this, it's exciting to see more bounds safety being added to Clang! I think everything looks good to me (we can clean up any surprises in follow-ups at this point). I'm presuming you'll add a release note & docs once mo

[clang] [Clang] [Sema] Fix bug in `_Complex float`+`int` arithmetic (PR #83063)

2024-03-13 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM, thank you for the fix! https://github.com/llvm/llvm-project/pull/83063 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

2024-03-13 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM aside from some coding style guideline nits https://github.com/llvm/llvm-project/pull/81102 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

2024-03-13 Thread Aaron Ballman via cfe-commits
@@ -8485,6 +8485,53 @@ class LValueExprEvaluator }; } // end anonymous namespace +/// Get an lvalue to a field of a lambda's closure type. +static bool HandleLambdaCapture(EvalInfo &Info, const Expr *E, LValue &Result, +const CXXMethodDecl *MD,

[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

2024-03-13 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/81102 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

2024-03-13 Thread Aaron Ballman via cfe-commits
@@ -8485,6 +8485,53 @@ class LValueExprEvaluator }; } // end anonymous namespace +/// Get an lvalue to a field of a lambda's closure type. +static bool HandleLambdaCapture(EvalInfo &Info, const Expr *E, LValue &Result, +const CXXMethodDecl *MD,

[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

2024-03-13 Thread Aaron Ballman via cfe-commits
@@ -9037,45 +9055,46 @@ class PointerExprEvaluator return Error(E); } bool VisitCXXThisExpr(const CXXThisExpr *E) { -// Can't look at 'this' when checking a potential constant expression. -if (Info.checkingPotentialConstantExpression()) - return false; -

[clang] [Clang][Sema]: Allow flexible arrays in unions and alone in structs (PR #84428)

2024-03-13 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Separating out some bits of discussion here. Standardization of flexible arrays in unions --- We can dispense with this topic quickly: the standard doesn't allow this, if the standard should be relaxed then someone needs to write a pap

[clang] [clang] Add `__has_feature(swiftcc)` support (PR #85347)

2024-03-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: You should also add documentation for this to https://github.com/llvm/llvm-project/blob/main/clang/docs/LanguageExtensions.rst and a release note for the change in https://github.com/llvm/llvm-project/blob/main/clang/docs/ReleaseNotes.rst. https://gi

[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)

2024-03-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Thank you for the improvement! Please be sure to add a release note about the changes as well. https://github.com/llvm/llvm-project/pull/81976 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://l

[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)

2024-03-15 Thread Aaron Ballman via cfe-commits
@@ -16191,12 +16191,24 @@ static void AnalyzeImplicitConversions( BO->getRHS()->isKnownToHaveBooleanValue() && BO->getLHS()->HasSideEffects(S.Context) && BO->getRHS()->HasSideEffects(S.Context)) { - S.Diag(BO->getBeginLoc(), diag::warn_bitwise_inste

[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)

2024-03-15 Thread Aaron Ballman via cfe-commits
@@ -16191,12 +16191,24 @@ static void AnalyzeImplicitConversions( BO->getRHS()->isKnownToHaveBooleanValue() && BO->getLHS()->HasSideEffects(S.Context) && BO->getRHS()->HasSideEffects(S.Context)) { - S.Diag(BO->getBeginLoc(), diag::warn_bitwise_inste

[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)

2024-03-15 Thread Aaron Ballman via cfe-commits
@@ -45,8 +45,8 @@ void test(boolean a, boolean b, int *p, volatile int *q, int i) { b = bar() & (i > 4); b = (i == 7) & foo(); #ifdef __cplusplus - b = foo() bitand bar(); // expected-warning {{use of bitwise '&' with boolean operands}} - // expe

[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)

2024-03-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/81976 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Accept lambdas in C++03 as an extensions (PR #73376)

2024-03-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. You should add a release note letting users know about the new extension in clang/docs/ReleaseNotes.rst, but otherwise, this LGTM! https://github.com/llvm/llvm-project/pull/73376 ___ cfe-comm

[clang] [clang][Interp] Integral pointers (PR #84159)

2024-03-15 Thread Aaron Ballman via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -28,11 +28,26 @@ class Block; class DeadBlock; class Pointer; class Context; +template class Integral; enum PrimType : unsigned; class Pointer; inline llvm::raw_ostream &operator<<(llvm::raw_os

[clang] [clang][Interp] Integral pointers (PR #84159)

2024-03-15 Thread Aaron Ballman via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -28,11 +28,26 @@ class Block; class DeadBlock; class Pointer; class Context; +template class Integral; enum PrimType : unsigned; class Pointer; inline llvm::raw_ostream &operator<<(llvm::raw_os

[clang] [clang][Interp] Integral pointers (PR #84159)

2024-03-15 Thread Aaron Ballman via cfe-commits
Timm =?utf-8?q?B=C3=A4der?= , Timm =?utf-8?q?B=C3=A4der?= Message-ID: In-Reply-To: @@ -53,6 +57,10 @@ class FunctionPointer final { return toAPValue().getAsString(Ctx, Func->getDecl()->getType()); } + uint32_t getIntegerRepresentation() const { +return static_cas

[clang] [clang] Add /Zc:__STDC__ flag to clang-cl (PR #68690)

2024-03-18 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,11 @@ +// Note: %s must be preceded by --, otherwise it may be interpreted as a +// command-line option, e.g. on Mac where %s is commonly under /Users. +// +// Note: see also cl-zc.cpp + +// RUN: %clang_cl /TC /dev/null /E -Xclang -dM /Zc:__STDC__- 2>&1 | FileCheck %s

[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)

2024-03-18 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > currently the macro definition for both `&` and `bitand` is not giving any > warning however should the `&` one warn? or current working is correct > behaviour as expected? The current behavior is what I'd expect. The idea being: if the user is using `&` directly, it's n

[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)

2024-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/81976 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)

2024-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM with a small tweak to the release notes. https://github.com/llvm/llvm-project/pull/81976 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)

2024-03-18 Thread Aaron Ballman via cfe-commits
@@ -250,6 +250,11 @@ Improvements to Clang's diagnostics such as attempting to call ``free`` on an unallocated object. Fixes `#79443 `_. +- Clang now does not warn in cases where bitand operator is + intentionally used wi

[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)

2024-03-18 Thread Aaron Ballman via cfe-commits
(-) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 177f424abaa73c..cde9a2a2e466a8 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -106,7 +106,7 @@ Improvements to Clang's diagnostics - Clang now applies syntax highlighting to the code s

[clang] fix unnecessary warning when using bitand with boolean operators (PR #81976)

2024-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/81976 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Allow -Wno-main to suppress the arg wrong error (PR #85494)

2024-03-18 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > There is a use case to pass customized arguments to main without using > -ffreestanding. This is not motivating for C++ because that's not actually valid to do (https://eel.is/c++draft/basic.start.main#3.sentence-1), and it's only barely motivating for C (you can call `m

[clang] [Sema] Allow -Wno-main to suppress the arg wrong error (PR #85494)

2024-03-18 Thread Aaron Ballman via cfe-commits
@@ -250,6 +250,9 @@ Improvements to Clang's diagnostics such as attempting to call ``free`` on an unallocated object. Fixes `#79443 `_. +- The ``XXX parameter of 'main' must be of type`` error can now be disabled via ``-W

[clang] [clang-tools-extra] [libcxx] [clang] Enable sized deallocation by default in C++14 onwards (PR #83774)

2024-03-18 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > There is a Windows failure that I can't reproduce: > https://buildkite.com/llvm-project/github-pull-requests/builds/46331 Can > someone help me to figure out what is wrong? I'm not certain what's going on yet, but it smells a bit like the interpreter needs to know about

[clang] [clang][ExprConst] Can't be past an invalid LValue designator (PR #84293)

2024-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/84293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Ignore assumptions with side effects at compile time (PR #85534)

2024-03-18 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: I think this is also https://eel.is/c++draft/expr.const#6.4, the note is a bit more clear than the standard wording. https://github.com/llvm/llvm-project/pull/85534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

[clang] [Clang] Ignore assumptions with side effects at compile time (PR #85534)

2024-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: LGTM as well. https://github.com/llvm/llvm-project/pull/85534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] add some missing Kinds to libclang python bindings (PR #85571)

2024-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Code changes LGTM (we don't require test coverage for bindings, so that's fine), but can you add a release note to `clang/docs/ReleaseNotes.rst` under `Python Binding Changes` so others know about the improvement? https://github.com/llvm/llvm-project/

[clang] add some missing Kinds to libclang python bindings (PR #85571)

2024-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/85571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] add some missing Kinds to libclang python bindings (PR #85571)

2024-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/85571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] add some missing Kinds to libclang python bindings (PR #85571)

2024-03-18 Thread Aaron Ballman via cfe-commits
@@ -544,6 +544,8 @@ Python Binding Changes -- - Exposed `CXRewriter` API as `class Rewriter`. +- Add some missing kinds from Index.h (CursorKind: 149-156, 272-320, 420-437. + TemplateArgumentKind: 5-9. TypeKind: 161-175 and 178). AaronBal

[clang] add some missing Kinds to libclang python bindings (PR #85571)

2024-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Nit, I'll fix when landing. https://github.com/llvm/llvm-project/pull/85571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] add some missing Kinds to libclang python bindings (PR #85571)

2024-03-18 Thread Aaron Ballman via cfe-commits
sing kinds from Index.h (CursorKind: 149-156, 272-320, 420-437. + TemplateArgumentKind: 5-9. TypeKind: 161-175 and 178). OpenMP Support -- >From e5536af05d1ccb798f4460cad00270590143a842 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 18 Mar 2024 10:12:47 -0400 Subject: [PATCH 4/4] Fix tra

[clang] add some missing Kinds to libclang python bindings (PR #85571)

2024-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/85571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #84014)

2024-03-18 Thread Aaron Ballman via cfe-commits
@@ -1022,7 +1045,17 @@ void DeclPrinter::VisitVarDecl(VarDecl *D) { ? D->getIdentifier()->deuglifiedName() : D->getName(); - printDeclType(T, Name); + if (!Policy.SuppressTagKeyword && Policy.SuppressScope && + !Policy.SuppressUnwrittenScope) {

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #84014)

2024-03-18 Thread Aaron Ballman via cfe-commits
@@ -855,7 +868,17 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) { Out << Proto << " -> "; Proto.clear(); } - AFT->getReturnType().print(Out, Policy, Proto); + if (!Policy.SuppressTagKeyword && Policy.SuppressScope && + !Policy.

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #84014)

2024-03-18 Thread Aaron Ballman via cfe-commits
@@ -1635,6 +1635,17 @@ void TypePrinter::printElaboratedBefore(const ElaboratedType *T, if (T->getKeyword() != ElaboratedTypeKeyword::None) OS << " "; NestedNameSpecifier *Qualifier = T->getQualifier(); +if (!Policy.SuppressTagKeyword && Policy.SuppressScope

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #84014)

2024-03-18 Thread Aaron Ballman via cfe-commits
@@ -679,6 +679,19 @@ static void printExplicitSpecifier(ExplicitSpecifier ES, llvm::raw_ostream &Out, Out << Proto; } +static void AddPrefix(PrintingPolicy &Policy, QualType T, AaronBallman wrote: This is a pretty non-descriptive function name; the caller

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #84014)

2024-03-18 Thread Aaron Ballman via cfe-commits
@@ -855,7 +868,17 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) { Out << Proto << " -> "; Proto.clear(); } - AFT->getReturnType().print(Out, Policy, Proto); + if (!Policy.SuppressTagKeyword && Policy.SuppressScope && + !Policy.

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #84014)

2024-03-18 Thread Aaron Ballman via cfe-commits
@@ -679,6 +679,19 @@ static void printExplicitSpecifier(ExplicitSpecifier ES, llvm::raw_ostream &Out, Out << Proto; } +static void AddPrefix(PrintingPolicy &Policy, QualType T, + llvm::raw_ostream &Out) { + if (!Policy.SuppressTagKeyword && Policy.Supp

<    6   7   8   9   10   11   12   13   14   15   >