r339456 - Allow relockable scopes with thread safety attributes.

2018-08-10 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri Aug 10 10:33:47 2018 New Revision: 339456 URL: http://llvm.org/viewvc/llvm-project?rev=339456&view=rev Log: Allow relockable scopes with thread safety attributes. Patch by Aaron Puchert Modified: cfe/trunk/lib/Analysis/ThreadSafety.cpp cfe/trunk/test/SemaCX

[clang-tools-extra] r339516 - Add a new check to the readability module that flags uses of "magic numbers" (both floating-point and integral).

2018-08-12 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Aug 12 07:35:13 2018 New Revision: 339516 URL: http://llvm.org/viewvc/llvm-project?rev=339516&view=rev Log: Add a new check to the readability module that flags uses of "magic numbers" (both floating-point and integral). Patch by Florin Iucha Added: clang-too

[clang-tools-extra] r339517 - Adding the readability module to the list of dependencies for the C++ Core Guidelines module. Amends r339516 for a failing bot.

2018-08-12 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Aug 12 07:47:16 2018 New Revision: 339517 URL: http://llvm.org/viewvc/llvm-project?rev=339517&view=rev Log: Adding the readability module to the list of dependencies for the C++ Core Guidelines module. Amends r339516 for a failing bot. Modified: clang-tools-ext

r339527 - Renaming arg_const_range to const_arg_range; NFC.

2018-08-12 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Aug 12 14:19:22 2018 New Revision: 339527 URL: http://llvm.org/viewvc/llvm-project?rev=339527&view=rev Log: Renaming arg_const_range to const_arg_range; NFC. This form makes more sense (it is a range over constant arguments) and is most consistent with const_arg_it

Re: [PATCH] D50647: [Sema] fix -Wfloat-conversion test case.

2018-08-13 Thread Aaron Ballman via cfe-commits
On Mon, Aug 13, 2018 at 1:08 PM, Nick Desaulniers via Phabricator wrote: > nickdesaulniers created this revision. > nickdesaulniers added reviewers: aaron.ballman, gkistanova. > Herald added a subscriber: cfe-commits. > > Fixes commit 6bbde717f7fb ("[SEMA] add more -Wfloat-conversion to > compound

[clang-tools-extra] r332519 - Add a new check, readability-simplify-subscript-expr, that diagnoses array subscript expressions that can be simplified.

2018-05-16 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed May 16 13:12:06 2018 New Revision: 332519 URL: http://llvm.org/viewvc/llvm-project?rev=332519&view=rev Log: Add a new check, readability-simplify-subscript-expr, that diagnoses array subscript expressions that can be simplified. Currently, diagnoses code that calls

[clang-tools-extra] r332716 - Silence a truncation warning; NFC.

2018-05-18 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri May 18 06:18:41 2018 New Revision: 332716 URL: http://llvm.org/viewvc/llvm-project?rev=332716&view=rev Log: Silence a truncation warning; NFC. Modified: clang-tools-extra/trunk/clangd/Quality.cpp Modified: clang-tools-extra/trunk/clangd/Quality.cpp URL: http:/

[clang-tools-extra] r332723 - Silence more truncation warnings; NFC.

2018-05-18 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri May 18 07:53:32 2018 New Revision: 332723 URL: http://llvm.org/viewvc/llvm-project?rev=332723&view=rev Log: Silence more truncation warnings; NFC. Modified: clang-tools-extra/trunk/unittests/clangd/QualityTests.cpp Modified: clang-tools-extra/trunk/unittests/cl

r314463 - Properly parse a postfix expression following a Boolean literal. Fixes PR34273.

2017-09-28 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Sep 28 14:29:18 2017 New Revision: 314463 URL: http://llvm.org/viewvc/llvm-project?rev=314463&view=rev Log: Properly parse a postfix expression following a Boolean literal. Fixes PR34273. Patch by Nicolas Lesser. Modified: cfe/trunk/lib/Parse/ParseExpr.cpp

[clang-tools-extra] r315057 - Fix nested namespaces in google-readability-nested-namespace-comments.

2017-10-06 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri Oct 6 05:57:28 2017 New Revision: 315057 URL: http://llvm.org/viewvc/llvm-project?rev=315057&view=rev Log: Fix nested namespaces in google-readability-nested-namespace-comments. Fixes PR34701. Patch by Alexandru Octavian Buțiu. Added: clang-tools-extra/trunk

[clang-tools-extra] r315059 - Fixing the command line for a test and switching from tabs to spaces.

2017-10-06 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri Oct 6 06:14:28 2017 New Revision: 315059 URL: http://llvm.org/viewvc/llvm-project?rev=315059&view=rev Log: Fixing the command line for a test and switching from tabs to spaces. Modified: clang-tools-extra/trunk/test/clang-tidy/google-readability-nested-namespa

[clang-tools-extra] r315060 - Renaming a test to start with the name of the check based on post-commit review feedback; NFC.

2017-10-06 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri Oct 6 06:27:59 2017 New Revision: 315060 URL: http://llvm.org/viewvc/llvm-project?rev=315060&view=rev Log: Renaming a test to start with the name of the check based on post-commit review feedback; NFC. Added: clang-tools-extra/trunk/test/clang-tidy/google-rea

Re: [clang-tools-extra] r315057 - Fix nested namespaces in google-readability-nested-namespace-comments.

2017-10-06 Thread Aaron Ballman via cfe-commits
On Fri, Oct 6, 2017 at 9:27 AM, Alexander Kornienko wrote: > > > On 6 Oct 2017 14:59, "Aaron Ballman via cfe-commits" > wrote: > > Author: aaronballman > Date: Fri Oct 6 05:57:28 2017 > New Revision: 315057 > > URL: http://llvm.org/viewvc/llvm-project

Re: [clang-tools-extra] r315060 - Renaming a test to start with the name of the check based on post-commit review feedback; NFC.

2017-10-11 Thread Aaron Ballman via cfe-commits
On Wed, Oct 11, 2017 at 3:29 PM, Alexander Kornienko wrote: > On Fri, Oct 6, 2017 at 3:27 PM, Aaron Ballman via cfe-commits > wrote: >> >> Author: aaronballman >> Date: Fri Oct 6 06:27:59 2017 >> New Revision: 315060 >> >> URL: http://llvm.org/view

Re: [clang-tools-extra] r315057 - Fix nested namespaces in google-readability-nested-namespace-comments.

2017-10-12 Thread Aaron Ballman via cfe-commits
On Thu, Oct 12, 2017 at 10:01 AM, Alexander Kornienko wrote: > > On Fri, Oct 6, 2017 at 2:57 PM, Aaron Ballman via cfe-commits > wrote: >> >> Author: aaronballman >> Date: Fri Oct 6 05:57:28 2017 >> New Revision: 315057 >> >> URL: http://llvm.org/v

r315856 - Add -f[no-]double-square-bracket-attributes as new driver options to control use of [[]] attributes in all language modes. This is the initial implementation of WG14 N2165, which is a propos

2017-10-15 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Oct 15 08:01:42 2017 New Revision: 315856 URL: http://llvm.org/viewvc/llvm-project?rev=315856&view=rev Log: Add -f[no-]double-square-bracket-attributes as new driver options to control use of [[]] attributes in all language modes. This is the initial implementation

Re: r315856 - Add -f[no-]double-square-bracket-attributes as new driver options to control use of [[]] attributes in all language modes. This is the initial implementation of WG14 N2165, which is a pr

2017-10-15 Thread Aaron Ballman via cfe-commits
On Sun, Oct 15, 2017 at 12:52 PM, Saleem Abdulrasool wrote: > > > On Sun, Oct 15, 2017 at 8:01 AM, Aaron Ballman via cfe-commits > wrote: >> >> Author: aaronballman >> Date: Sun Oct 15 08:01:42 2017 >> New Revision: 315856 >> >> URL: http://llvm.or

r316026 - Enable support for the [[nodiscard]] attribute from WG14 N2050 when enabling double square bracket attributes in C code.

2017-10-17 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Oct 17 13:33:35 2017 New Revision: 316026 URL: http://llvm.org/viewvc/llvm-project?rev=316026&view=rev Log: Enable support for the [[nodiscard]] attribute from WG14 N2050 when enabling double square bracket attributes in C code. Added: cfe/trunk/test/Sema/c2x-n

Re: r316026 - Enable support for the [[nodiscard]] attribute from WG14 N2050 when enabling double square bracket attributes in C code.

2017-10-17 Thread Aaron Ballman via cfe-commits
I said WG14 N2050 when I meant N2051. My fat fingers and I apologize for the confusion with the commit log. ~Aaron On Tue, Oct 17, 2017 at 4:33 PM, Aaron Ballman via cfe-commits wrote: > Author: aaronballman > Date: Tue Oct 17 13:33:35 2017 > New Revision: 316026 > > URL: http://

r316028 - This test case was missing -fsyntax-only, so I've added it. NFC to the actual test contents, just how the test is executed.

2017-10-17 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Oct 17 13:49:30 2017 New Revision: 316028 URL: http://llvm.org/viewvc/llvm-project?rev=316028&view=rev Log: This test case was missing -fsyntax-only, so I've added it. NFC to the actual test contents, just how the test is executed. Modified: cfe/trunk/test/CXX/

Re: r315856 - Add -f[no-]double-square-bracket-attributes as new driver options to control use of [[]] attributes in all language modes. This is the initial implementation of WG14 N2165, which is a pr

2017-10-18 Thread Aaron Ballman via cfe-commits
ame() == "gsl") { > ^~ > tools/clang/include/clang/Basic/AttrHasAttributeImpl.inc:532:1: note: here > case AttrSyntax::C: { > ^~~~ > cc1plus: all warnings being treated as errors > > Please have a look? > > Thanks > > Galina > > On Sun, Oct 15, 2017

r316075 - Silence -Wimplicit-fallthrough warnings with the generated code; NFC.

2017-10-18 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Oct 18 05:11:58 2017 New Revision: 316075 URL: http://llvm.org/viewvc/llvm-project?rev=316075&view=rev Log: Silence -Wimplicit-fallthrough warnings with the generated code; NFC. Modified: cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp Modified: cfe/trunk/utils/T

r316083 - Enable support for the [[fallthrough]] attribute from WG14 N2052 when enabling double square bracket attributes in C code.

2017-10-18 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Oct 18 07:33:27 2017 New Revision: 316083 URL: http://llvm.org/viewvc/llvm-project?rev=316083&view=rev Log: Enable support for the [[fallthrough]] attribute from WG14 N2052 when enabling double square bracket attributes in C code. Added: cfe/trunk/test/Sema/c2x

Re: r315856 - Add -f[no-]double-square-bracket-attributes as new driver options to control use of [[]] attributes in all language modes. This is the initial implementation of WG14 N2165, which is a pr

2017-10-18 Thread Aaron Ballman via cfe-commits
ame() == "gsl") { >> ^~ >> tools/clang/include/clang/Basic/AttrHasAttributeImpl.inc:532:1: note: here >> case AttrSyntax::C: { >> ^~~~ >> cc1plus: all warnings being treated as errors >> >> Please have a look? >> >> Thanks >> &g

r316086 - Silencing a redefinition warning that was not germane to the test.

2017-10-18 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Oct 18 07:48:33 2017 New Revision: 316086 URL: http://llvm.org/viewvc/llvm-project?rev=316086&view=rev Log: Silencing a redefinition warning that was not germane to the test. Modified: cfe/trunk/test/Sema/c2x-fallthrough.c Modified: cfe/trunk/test/Sema/c2x-fall

r316096 - Enable support for the [[maybe_unused]] attribute from WG14 N2053 when enabling double square bracket attributes in C code.

2017-10-18 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Oct 18 09:59:27 2017 New Revision: 316096 URL: http://llvm.org/viewvc/llvm-project?rev=316096&view=rev Log: Enable support for the [[maybe_unused]] attribute from WG14 N2053 when enabling double square bracket attributes in C code. Added: cfe/trunk/test/Sema/c2

r316184 - These attributes are supported by GCC with the gnu vendor namespace for C++11-style attributes. Enabling the gnu namespace by switching to the GCC spelling.

2017-10-19 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Oct 19 14:09:39 2017 New Revision: 316184 URL: http://llvm.org/viewvc/llvm-project?rev=316184&view=rev Log: These attributes are supported by GCC with the gnu vendor namespace for C++11-style attributes. Enabling the gnu namespace by switching to the GCC spelling.

r316186 - These attributes are not supported by GCC and should not be in the gnu namespace. Switching from the GCC spelling to the GNU spelling so that they are only supported with __attribute__(()).

2017-10-19 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Oct 19 14:20:28 2017 New Revision: 316186 URL: http://llvm.org/viewvc/llvm-project?rev=316186&view=rev Log: These attributes are not supported by GCC and should not be in the gnu namespace. Switching from the GCC spelling to the GNU spelling so that they are only s

Attribute spelling policy

2017-10-21 Thread Aaron Ballman via cfe-commits
Attributes come with multiple spelling flavors, but when it comes to adding new attributes that are not present in other compiler tools such as GCC or MSVC, we have done a poor job of being consistent with which spelling flavors we adopt the attributes under. Some of our attributes are specified wi

r316267 - Fixing broken attribute documentation for __attribute__((noescape)); a code block was missing and the existing code block was missing a mandatory newline.

2017-10-21 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sat Oct 21 09:43:01 2017 New Revision: 316267 URL: http://llvm.org/viewvc/llvm-project?rev=316267&view=rev Log: Fixing broken attribute documentation for __attribute__((noescape)); a code block was missing and the existing code block was missing a mandatory newline. Mo

r316269 - Add release notes for the recent -fdouble-square-bracket-attributes and -fno-double-square-bracket-attributes compiler flags.

2017-10-21 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sat Oct 21 09:45:08 2017 New Revision: 316269 URL: http://llvm.org/viewvc/llvm-project?rev=316269&view=rev Log: Add release notes for the recent -fdouble-square-bracket-attributes and -fno-double-square-bracket-attributes compiler flags. Modified: cfe/trunk/docs/Re

r316275 - Fix a typo with -fno-double-square-bracket-attributes and add a test to demonstrate that it works as expected in C++11 mode. Additionally corrected the handling of -fdouble-square-bracket-at

2017-10-21 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sat Oct 21 13:28:58 2017 New Revision: 316275 URL: http://llvm.org/viewvc/llvm-project?rev=316275&view=rev Log: Fix a typo with -fno-double-square-bracket-attributes and add a test to demonstrate that it works as expected in C++11 mode. Additionally corrected the handl

Re: r316278 - [libclang, bindings]: add spelling location

2017-10-21 Thread Aaron Ballman via cfe-commits
This commit appears to have broken several bots. Can you revert or quickly fix the issue? http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/11896 http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/12380 Thanks! ~Aaron On Sat, Oct 21, 2017 at 4:53 PM, Masud Rahman via cfe-comm

r316279 - Reverting r316278 due to failing build bots.

2017-10-21 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sat Oct 21 14:52:48 2017 New Revision: 316279 URL: http://llvm.org/viewvc/llvm-project?rev=316279&view=rev Log: Reverting r316278 due to failing build bots. http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/11896 http://lab.llvm.org:8011/builders/clang-s390x-

Re: r316278 - [libclang, bindings]: add spelling location

2017-10-21 Thread Aaron Ballman via cfe-commits
I've reverted back to green in r316279 due to more bots failing. ~Aaron On Sat, Oct 21, 2017 at 5:35 PM, Aaron Ballman wrote: > This commit appears to have broken several bots. Can you revert or > quickly fix the issue? > > http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/11896 > htt

Re: Attribute spelling policy

2017-10-23 Thread Aaron Ballman via cfe-commits
On Mon, Oct 23, 2017 at 9:48 AM, Hal Finkel wrote: > > On 10/21/2017 10:14 AM, Aaron Ballman via cfe-commits wrote: >> >> Attributes come with multiple spelling flavors, but when it comes to >> adding new attributes that are not present in other compiler tools >> suc

Re: Attribute spelling policy

2017-10-23 Thread Aaron Ballman via cfe-commits
On Mon, Oct 23, 2017 at 11:16 AM, Arthur O'Dwyer wrote: > On Mon, Oct 23, 2017 at 7:33 AM, Aaron Ballman via cfe-commits > wrote: >> >> On Mon, Oct 23, 2017 at 9:48 AM, Hal Finkel wrote: >> > On 10/21/2017 10:14 AM, Aaron Ballman via cfe-commits wrote: >>

Re: [PATCH] D49885: Thread safety analysis: Allow relockable scopes

2018-08-23 Thread Aaron Ballman via cfe-commits
On Wed, Aug 22, 2018 at 6:35 PM, Aaron Puchert via Phabricator wrote: > aaronpuchert added inline comments. > > > > Comment at: lib/Analysis/ThreadSafety.cpp:932 > + // We're relocking the underlying mutexes. Warn on double locking. > + if (FSet.findLock(FactMan, UnderCp

r340636 - Thread safety analysis no longer hands when analyzing a self-referencing initializer.

2018-08-24 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri Aug 24 11:48:35 2018 New Revision: 340636 URL: http://llvm.org/viewvc/llvm-project?rev=340636&view=rev Log: Thread safety analysis no longer hands when analyzing a self-referencing initializer. This fixes PR38640. Modified: cfe/trunk/lib/Analysis/ThreadSafety.

[clang-tools-extra] r340915 - Introduce the abseil-str-cat-append check.

2018-08-29 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Aug 29 04:17:31 2018 New Revision: 340915 URL: http://llvm.org/viewvc/llvm-project?rev=340915&view=rev Log: Introduce the abseil-str-cat-append check. This flags uses of absl::StrCat when absl::StrAppend should be used instead. Patch by Hugo Gonzalez and Benjamin K

[clang-tools-extra] r340918 - Introduce the abseil-redundant-strcat-calls check.

2018-08-29 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Aug 29 04:29:07 2018 New Revision: 340918 URL: http://llvm.org/viewvc/llvm-project?rev=340918&view=rev Log: Introduce the abseil-redundant-strcat-calls check. This flags redundant calls to absl::StrCat where the result is being passed to another call to absl::StrCa

Re: r341009 - Adjust Attr representation so that changes to documentation don't affect

2018-08-30 Thread Aaron Ballman via cfe-commits
On Wed, Aug 29, 2018 at 9:01 PM, Richard Smith via cfe-commits wrote: > Author: rsmith > Date: Wed Aug 29 18:01:07 2018 > New Revision: 341009 > > URL: http://llvm.org/viewvc/llvm-project?rev=341009&view=rev > Log: > Adjust Attr representation so that changes to documentation don't affect > how we

Re: [PATCH] D30009: Add support for '#pragma clang attribute'

2018-08-30 Thread Aaron Ballman via cfe-commits
On Wed, Aug 29, 2018 at 8:41 PM, Richard Smith - zygoloid via Phabricator wrote: > rsmith added a comment. > Herald added a subscriber: llvm-commits. > > One consequence of this patch (see https://reviews.llvm.org/rL341002) is that > adding documentation to an existing attribute //changes the beh

Re: [PATCH] D51473: Improve attribute documentation to list which spellings are used in which syntaxes.

2018-08-30 Thread Aaron Ballman via cfe-commits
On Thu, Aug 30, 2018 at 3:21 PM, Richard Smith - zygoloid via Phabricator wrote: > rsmith marked an inline comment as done. > rsmith added inline comments. > > > > Comment at: utils/TableGen/ClangAttrEmitter.cpp:3881 > +SpellingKind K = (SpellingKind)Kind; > +// FIXME: Why

Re: [PATCH] D51473: Improve attribute documentation to list which spellings are used in which syntaxes.

2018-08-31 Thread Aaron Ballman via cfe-commits
On Thu, Aug 30, 2018 at 4:12 PM, Richard Smith wrote: > On Thu, 30 Aug 2018 at 12:27, Aaron Ballman via cfe-commits > wrote: >> >> On Thu, Aug 30, 2018 at 3:21 PM, Richard Smith - zygoloid via >> Phabricator wrote: >> > rsmith marked an inline comment as done.

Re: [PATCH] D51507: Allow all supportable attributes to be used with #pragma clang attribute.

2018-08-31 Thread Aaron Ballman via cfe-commits
On Fri, Aug 31, 2018 at 9:23 AM, Duncan P. N. Exon Smith via Phabricator wrote: > dexonsmith added inline comments. > > > > Comment at: test/Misc/pragma-attribute-supported-attributes-list.test:50 > // CHECK-NEXT: EnumExtensibility (SubjectMatchRule_enum) > +// CHECK-NEXT: ExtVec

Re: r341539 - [OpenCL] Disallow negative attribute arguments

2018-09-06 Thread Aaron Ballman via cfe-commits
On Thu, Sep 6, 2018 at 7:54 AM, Andrew Savonichev via cfe-commits wrote: > Author: asavonic > Date: Thu Sep 6 04:54:09 2018 > New Revision: 341539 > > URL: http://llvm.org/viewvc/llvm-project?rev=341539&view=rev > Log: > [OpenCL] Disallow negative attribute arguments > > Summary: > Negative argum

Re: r341539 - [OpenCL] Disallow negative attribute arguments

2018-09-06 Thread Aaron Ballman via cfe-commits
On Thu, Sep 6, 2018 at 10:00 AM, Andrew Savonichev wrote: > Hi Aaron, > >> On Thu, Sep 6, 2018 at 7:54 AM, Andrew Savonichev via cfe-commits >> wrote: >>> Author: asavonic >>> Date: Thu Sep 6 04:54:09 2018 >>> New Revision: 341539 >>> >>> URL: http://llvm.org/viewvc/llvm-project?rev=341539&view=

Re: r337470 - [Sema] Add a new warning, -Wmemset-transposed-args

2018-07-23 Thread Aaron Ballman via cfe-commits
On Sat, Jul 21, 2018 at 4:40 PM, Arthur O'Dwyer via cfe-commits wrote: > In this case Clang is complaining about > > memset(complicated-expr, 0, 0); > > which means that transposing the last two arguments would not "fix" > anything. Clang ought to not complain in this case. +1 ~Aaron > It d

r338024 - Allow thread safety annotation lock upgrading and downgrading.

2018-07-26 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Jul 26 06:03:16 2018 New Revision: 338024 URL: http://llvm.org/viewvc/llvm-project?rev=338024&view=rev Log: Allow thread safety annotation lock upgrading and downgrading. Patch thanks to Aaron Puchert! Modified: cfe/trunk/lib/Analysis/ThreadSafety.cpp cfe/t

Re: r338291 - Remove trailing space

2018-07-30 Thread Aaron Ballman via cfe-commits
On Mon, Jul 30, 2018 at 3:52 PM, Fāng-ruì Sòng wrote: > Oops.. sorry but now they have been committed.. The commits can still be reverted and I think they should be. ~Aaron ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/c

Re: r338291 - Remove trailing space

2018-07-30 Thread Aaron Ballman via cfe-commits
On Mon, Jul 30, 2018 at 4:24 PM, Michael Kruse wrote: > I think removing trailing space is a good thing. Some editors remove > any trailing space when saving a file. This shows up in diffs that I > then have to undo manually. I've also run into the same issues on occasion. However, this isn't abo

Re: r338291 - Remove trailing space

2018-07-30 Thread Aaron Ballman via cfe-commits
On Mon, Jul 30, 2018 at 4:43 PM, Fāng-ruì Sòng wrote: > Does this apply to only public headers (include/llvm include/llvm-c > include/clang ...) or everything? (lib/**/*.{cpp,h})? I've understood it applies to "everything" in that you should not commit large-scale NFC changes that don't have cons

Re: r338291 - Remove trailing space

2018-07-30 Thread Aaron Ballman via cfe-commits
On Mon, Jul 30, 2018 at 5:36 PM, Michael Kruse wrote: > Can you point me to such a discussion about trailing whitespace? I don't know of one, which is why I am concerned with these commits. > It seems to contradict the conclusion in another current thread to not > consider churn for out-of-tree

Re: r338291 - Remove trailing space

2018-07-30 Thread Aaron Ballman via cfe-commits
On Mon, Jul 30, 2018 at 6:17 PM, Fāng-ruì Sòng wrote: > On 2018-07-30, Aaron Ballman wrote: > >> On Mon, Jul 30, 2018 at 4:43 PM, Fāng-ruì Sòng >> wrote: >> >>> Does this apply to only public headers (include/llvm include/llvm-c >>> include/clang ...) or everything? (lib/**/*.{cpp,h})? >>> >> >>

Re: [PATCH] D48100: Append new attributes to the end of an AttributeList.

2018-08-03 Thread Aaron Ballman via cfe-commits
On Fri, Aug 3, 2018 at 8:53 AM, Erich Keane via Phabricator wrote: > erichkeane added a comment. > > In https://reviews.llvm.org/D48100#1186654, @Meinersbur wrote: > >> I have two approaches to tackle the wrong marker order: >> https://reviews.llvm.org/D50215 and https://reviews.llvm.org/D50216.

Re: [PATCH] D48100: Append new attributes to the end of an AttributeList.

2018-08-03 Thread Aaron Ballman via cfe-commits
On Fri, Aug 3, 2018 at 10:09 AM, Keane, Erich wrote: >> As a possible idea (that may or may not work): the Attr object itself has a >> SourceRange on it; perhaps a solution is to keep the > attributes in sorted >> order within DeclBase::addAttr() based on the SourceRanges passed in? > > Interest

r338912 - Properly add shared locks to the initial list of locks being tracked, instead of assuming unlock functions always use exclusive locks.

2018-08-03 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri Aug 3 12:37:45 2018 New Revision: 338912 URL: http://llvm.org/viewvc/llvm-project?rev=338912&view=rev Log: Properly add shared locks to the initial list of locks being tracked, instead of assuming unlock functions always use exclusive locks. Patch by Aaron Puchert

r324890 - Allow the NS, CF, and ObjC attributes to be used with -fdouble-square-bracket-attributes. The syntactic locations for such attributes on ObjC constructs have been specifically chosen to foll

2018-02-12 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Mon Feb 12 05:38:25 2018 New Revision: 324890 URL: http://llvm.org/viewvc/llvm-project?rev=324890&view=rev Log: Allow the NS, CF, and ObjC attributes to be used with -fdouble-square-bracket-attributes. The syntactic locations for such attributes on ObjC constructs have

Re: [PATCH] D43120: [clang-tidy] New checker for exceptions that are created but not thrown

2018-02-15 Thread Aaron Ballman via cfe-commits
On Thu, Feb 15, 2018 at 4:11 AM, Phabricator via Phabricator wrote: > This revision was automatically updated to reflect the committed changes. > Closed by commit rL325222: [clang-tidy] New checker for exceptions that are > created but not thrown (authored by xazax, committed by ). There's nothi

r325261 - Amend r325256. This change was not properly merged locally before the commit happened.

2018-02-15 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Feb 15 08:28:10 2018 New Revision: 325261 URL: http://llvm.org/viewvc/llvm-project?rev=325261&view=rev Log: Amend r325256. This change was not properly merged locally before the commit happened. Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp Modified: cfe/trunk

r325292 - Silence some -Wunused-variable warnings; NFC.

2018-02-15 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Feb 15 12:56:19 2018 New Revision: 325292 URL: http://llvm.org/viewvc/llvm-project?rev=325292&view=rev Log: Silence some -Wunused-variable warnings; NFC. Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp Modified: cfe/trunk/lib/StaticAnalyzer/Core/E

r325293 - Silence a -Wparentheses warning; NFC.

2018-02-15 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Feb 15 13:03:39 2018 New Revision: 325293 URL: http://llvm.org/viewvc/llvm-project?rev=325293&view=rev Log: Silence a -Wparentheses warning; NFC. Modified: cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp Modified: cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp

r325520 - Add several more attributes to be parsed in C with [[]] when -fdouble-square-bracket-attributes is specified.

2018-02-19 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Mon Feb 19 09:32:07 2018 New Revision: 325520 URL: http://llvm.org/viewvc/llvm-project?rev=325520&view=rev Log: Add several more attributes to be parsed in C with [[]] when -fdouble-square-bracket-attributes is specified. Also flags a few attributes that should not be

Re: r325678 - [ASTMatchers] isTemplateInstantiation: also match explicit instantiation declaration.

2018-02-21 Thread Aaron Ballman via cfe-commits
On Wed, Feb 21, 2018 at 8:51 AM, Eric Liu via cfe-commits wrote: > Author: ioeric > Date: Wed Feb 21 05:51:27 2018 > New Revision: 325678 > > URL: http://llvm.org/viewvc/llvm-project?rev=325678&view=rev > Log: > [ASTMatchers] isTemplateInstantiation: also match explicit instantiation > declaratio

Re: r325678 - [ASTMatchers] isTemplateInstantiation: also match explicit instantiation declaration.

2018-02-21 Thread Aaron Ballman via cfe-commits
On Wed, Feb 21, 2018 at 8:56 AM, Eric Liu wrote: > Oops, I only saw this after landing the patch. I'll send another one to > update the doc. Sorry about that! No worries! I didn't see the patch until after the commit anyway. Thanks for taking care of it! ~Aaron > > On Wed, Feb 21, 2018 at 2:54

r326036 - Add a C++11 and C2x spelling for the availability attribute in the clang vendor namespace.

2018-02-24 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sat Feb 24 09:16:42 2018 New Revision: 326036 URL: http://llvm.org/viewvc/llvm-project?rev=326036&view=rev Log: Add a C++11 and C2x spelling for the availability attribute in the clang vendor namespace. This attribute has custom parsing rules that previously prevented

r326038 - Add a C++11 and C2x spelling for the objc_bridge_related attribute in the clang vendor namespace.

2018-02-24 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sat Feb 24 09:37:37 2018 New Revision: 326038 URL: http://llvm.org/viewvc/llvm-project?rev=326038&view=rev Log: Add a C++11 and C2x spelling for the objc_bridge_related attribute in the clang vendor namespace. This attribute has custom parsing rules that previously pre

r326052 - Add a C++11 and C2x spelling for the type safety attribute (argument_with_type_tag, pointer_with_type_tag, and type_tag_for_datatype) in the clang vendor namespace.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 06:01:04 2018 New Revision: 326052 URL: http://llvm.org/viewvc/llvm-project?rev=326052&view=rev Log: Add a C++11 and C2x spelling for the type safety attribute (argument_with_type_tag, pointer_with_type_tag, and type_tag_for_datatype) in the clang vendor nam

r326053 - Add a C2x spelling for the external_source_symbol and internal_linkage attributes in the clang vendor namespace.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 06:43:45 2018 New Revision: 326053 URL: http://llvm.org/viewvc/llvm-project?rev=326053&view=rev Log: Add a C2x spelling for the external_source_symbol and internal_linkage attributes in the clang vendor namespace. Both of these attributes have existing meani

r326054 - Document why the consumed attributes (consumable, callable_when, et al) are not exposed with a C2x spelling. NFC.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 06:54:25 2018 New Revision: 326054 URL: http://llvm.org/viewvc/llvm-project?rev=326054&view=rev Log: Document why the consumed attributes (consumable, callable_when, et al) are not exposed with a C2x spelling. NFC. Modified: cfe/trunk/include/clang/Basic

r326055 - Switch the default behavior of the Clang<> spelling to opt-in to the C2x attribute spellings. NFC to the attribute spellings themselves.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 07:34:17 2018 New Revision: 326055 URL: http://llvm.org/viewvc/llvm-project?rev=326055&view=rev Log: Switch the default behavior of the Clang<> spelling to opt-in to the C2x attribute spellings. NFC to the attribute spellings themselves. The Clang<> spelling

r326057 - Fix a failing assertion with the pointer_with_type_tag attribute when the function the attribute appertains to is variadic.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 12:28:10 2018 New Revision: 326057 URL: http://llvm.org/viewvc/llvm-project?rev=326057&view=rev Log: Fix a failing assertion with the pointer_with_type_tag attribute when the function the attribute appertains to is variadic. Patch by Joel Denny. Modified:

r326058 - When diagnosing the arguments to alloc_size, report the failing argument using a 1-based index instead of a 0-based index for consistency.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 12:40:06 2018 New Revision: 326058 URL: http://llvm.org/viewvc/llvm-project?rev=326058&view=rev Log: When diagnosing the arguments to alloc_size, report the failing argument using a 1-based index instead of a 0-based index for consistency. Patch by Joel Denn

Re: r303712 - Enhance the 'diagnose_if' attribute so that we can apply it for ObjC methods and properties as well

2017-05-24 Thread Aaron Ballman via cfe-commits
On Tue, May 23, 2017 at 8:46 PM, Argyrios Kyrtzidis via cfe-commits wrote: > Author: akirtzidis > Date: Tue May 23 19:46:27 2017 > New Revision: 303712 > > URL: http://llvm.org/viewvc/llvm-project?rev=303712&view=rev > Log: > Enhance the 'diagnose_if' attribute so that we can apply it for ObjC met

Re: r303712 - Enhance the 'diagnose_if' attribute so that we can apply it for ObjC methods and properties as well

2017-05-24 Thread Aaron Ballman via cfe-commits
On Wed, May 24, 2017 at 1:05 PM, Argyrios Kyrtzidis wrote: > >> On May 24, 2017, at 8:59 AM, Aaron Ballman wrote: >> >> On Tue, May 23, 2017 at 8:46 PM, Argyrios Kyrtzidis via cfe-commits >> wrote: >>> Author: akirtzidis >>> Date: Tue May 23 19:46:27 2017 >>> New Revision: 303712 >>> >>> URL: ht

Re: r303712 - Enhance the 'diagnose_if' attribute so that we can apply it for ObjC methods and properties as well

2017-05-24 Thread Aaron Ballman via cfe-commits
On Wed, May 24, 2017 at 1:37 PM, Argyrios Kyrtzidis wrote: > > On May 24, 2017, at 10:12 AM, Aaron Ballman wrote: > > On Wed, May 24, 2017 at 1:05 PM, Argyrios Kyrtzidis > wrote: > > > On May 24, 2017, at 8:59 AM, Aaron Ballman wrote: > > On Tue, May 23, 2017 at 8:46 PM, Argyrios Kyrtzidis via

r303913 - Update the getting started documentation to match the corresponding LLVM commit in r303912.

2017-05-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu May 25 16:02:49 2017 New Revision: 303913 URL: http://llvm.org/viewvc/llvm-project?rev=303913&view=rev Log: Update the getting started documentation to match the corresponding LLVM commit in r303912. Modified: cfe/trunk/www/get_started.html Modified: cfe/trunk

r304000 - Adding a const overload of DesignatedInitExpr::getDesignator().

2017-05-26 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri May 26 10:55:52 2017 New Revision: 304000 URL: http://llvm.org/viewvc/llvm-project?rev=304000&view=rev Log: Adding a const overload of DesignatedInitExpr::getDesignator(). Modified: cfe/trunk/include/clang/AST/Expr.h Modified: cfe/trunk/include/clang/AST/Expr.h

Re: [PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Aaron Ballman via cfe-commits
On Fri, Jun 2, 2017 at 3:04 PM, Richard Smith wrote: > On 2 June 2017 at 11:39, Aaron Ballman via Phabricator via cfe-commits > wrote: >> >> aaron.ballman added a comment. >> >> In https://reviews.llvm.org/D33788#771671, @bruno wrote: >> >> > > I'm unaware of any other API that canonicalizes the

Re: [PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Aaron Ballman via cfe-commits
On Fri, Jun 2, 2017 at 3:22 PM, Richard Smith wrote: > On 2 June 2017 at 12:04, Richard Smith wrote: >> >> On 2 June 2017 at 11:39, Aaron Ballman via Phabricator via cfe-commits >> wrote: >>> >>> aaron.ballman added a comment. >>> >>> In https://reviews.llvm.org/D33788#771671, @bruno wrote: >>>

Re: [PATCH] D34002: [clang-tidy] When" -fno-exceptions is used", this warning is better to be suppressed.

2017-06-08 Thread Aaron Ballman via cfe-commits
On Thu, Jun 8, 2017 at 6:24 PM, Alexander Kornienko via Phabricator wrote: > alexfh added a comment. > > In https://reviews.llvm.org/D34002#776193, @chh wrote: > >> In https://reviews.llvm.org/D34002#775830, @alexfh wrote: >> >> > IIUC, when `vector` (for a class `T` that has both move and copy >

r305385 - Corrected some comment typos; NFC.

2017-06-14 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Jun 14 07:48:18 2017 New Revision: 305385 URL: http://llvm.org/viewvc/llvm-project?rev=305385&view=rev Log: Corrected some comment typos; NFC. Modified: cfe/trunk/include/clang/Frontend/FrontendOptions.h Modified: cfe/trunk/include/clang/Frontend/FrontendOption

r305432 - Handle -ast-dump-all when passed as the only option.

2017-06-14 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Jun 14 19:00:08 2017 New Revision: 305432 URL: http://llvm.org/viewvc/llvm-project?rev=305432&view=rev Log: Handle -ast-dump-all when passed as the only option. Patch by Don Hinton Modified: cfe/trunk/lib/Frontend/ASTConsumers.cpp cfe/trunk/test/Coverage/as

r305586 - Killing a tab and some other spurious whitespace; NFC.

2017-06-16 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri Jun 16 15:52:59 2017 New Revision: 305586 URL: http://llvm.org/viewvc/llvm-project?rev=305586&view=rev Log: Killing a tab and some other spurious whitespace; NFC. Modified: cfe/trunk/lib/Frontend/FrontendActions.cpp Modified: cfe/trunk/lib/Frontend/FrontendActi

r305738 - Typo fix: appropo -> apropos. NFC.

2017-06-19 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Mon Jun 19 15:08:20 2017 New Revision: 305738 URL: http://llvm.org/viewvc/llvm-project?rev=305738&view=rev Log: Typo fix: appropo -> apropos. NFC. Modified: cfe/trunk/docs/Block-ABI-Apple.rst Modified: cfe/trunk/docs/Block-ABI-Apple.rst URL: http://llvm.org/viewvc

Re: r320697 - Warn if we find a Unicode homoglyph for a symbol in an identifier.

2017-12-14 Thread Aaron Ballman via cfe-commits
On Thu, Dec 14, 2017 at 8:15 AM, Richard Smith via cfe-commits wrote: > Author: rsmith > Date: Thu Dec 14 05:15:08 2017 > New Revision: 320697 > > URL: http://llvm.org/viewvc/llvm-project?rev=320697&view=rev > Log: > Warn if we find a Unicode homoglyph for a symbol in an identifier. > > Specifical

[clang-tools-extra] r320713 - Add support for NOLINT and NOLINTNEXTLINE comments mentioning specific check names.

2017-12-14 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Dec 14 08:13:57 2017 New Revision: 320713 URL: http://llvm.org/viewvc/llvm-project?rev=320713&view=rev Log: Add support for NOLINT and NOLINTNEXTLINE comments mentioning specific check names. Supports a comma-separated list of check names to be disabled on the give

r320752 - Harmonize GNU- and C++-style attribute spellings.

2017-12-14 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Dec 14 14:17:09 2017 New Revision: 320752 URL: http://llvm.org/viewvc/llvm-project?rev=320752&view=rev Log: Harmonize GNU- and C++-style attribute spellings. Most attributes will now use the Clang<"name"> construct to provide both __attribute__((name)) and [[clang:

r321228 - Silence a -Wreorder warning from r321223.

2017-12-20 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Dec 20 15:11:05 2017 New Revision: 321228 URL: http://llvm.org/viewvc/llvm-project?rev=321228&view=rev Log: Silence a -Wreorder warning from r321223. Modified: cfe/trunk/lib/AST/ASTDumper.cpp Modified: cfe/trunk/lib/AST/ASTDumper.cpp URL: http://llvm.org/viewv

r321237 - Reverting a file that snuck in with r321229 by accident.

2017-12-20 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Dec 20 17:34:46 2017 New Revision: 321237 URL: http://llvm.org/viewvc/llvm-project?rev=321237&view=rev Log: Reverting a file that snuck in with r321229 by accident. Modified: cfe/trunk/test/Misc/ast-dump-color.cpp Modified: cfe/trunk/test/Misc/ast-dump-color.cp

Re: [clang-tools-extra] r321363 - [clang-tidy] Adding Fuchsia checker for overloaded operators

2017-12-22 Thread Aaron Ballman via cfe-commits
On Fri, Dec 22, 2017 at 11:52 AM, Julie Hockett via cfe-commits wrote: > Author: juliehockett > Date: Fri Dec 22 08:52:25 2017 > New Revision: 321363 > > URL: http://llvm.org/viewvc/llvm-project?rev=321363&view=rev > Log: > [clang-tidy] Adding Fuchsia checker for overloaded operators > > Adds a ch

Re: [PATCH] D41512: [Sema] -Wtautological-constant-compare is too good. Cripple it.

2017-12-24 Thread Aaron Ballman via cfe-commits
On Sun, Dec 24, 2017 at 11:45 AM, Dimitry Andric via Phabricator wrote: > dim added a comment. > > Actually, having thought about it a little more, if the warning is "rather > broken", or even "completely broken", depending on one's point of view, then > maybe it is better not have it under `-We

Re: [clang-tools-extra] r321762 - [clang-tidy] Update fuchsia-overloaded-operator to check for valid loc

2018-01-03 Thread Aaron Ballman via cfe-commits
Hans, I'd like to nominate this patch for the 6.0 branch. It fixes a failing assertion with new functionality; without this fix, anyone enabling this check and including a STL header that transitively includes (which is most of them) will hit the assertion. Thanks! ~Aaron On Wed, Jan 3, 2018 at

r321763 - Introduce some infrastructure for adding C attributes with [[]] syntax.

2018-01-03 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Jan 3 14:22:48 2018 New Revision: 321763 URL: http://llvm.org/viewvc/llvm-project?rev=321763&view=rev Log: Introduce some infrastructure for adding C attributes with [[]] syntax. This patch adds support to the attribute tablegen for specifying a [[]] attribute is

r322074 - Track in the AST whether the operand to a UnaryOperator can overflow and then use that logic when evaluating constant expressions and emitting codegen.

2018-01-09 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Jan 9 05:07:03 2018 New Revision: 322074 URL: http://llvm.org/viewvc/llvm-project?rev=322074&view=rev Log: Track in the AST whether the operand to a UnaryOperator can overflow and then use that logic when evaluating constant expressions and emitting codegen. Modif

r326266 - Improve the way attribute argument printing happens for omitted optional arguments when pretty printing.

2018-02-27 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Feb 27 15:49:28 2018 New Revision: 326266 URL: http://llvm.org/viewvc/llvm-project?rev=326266&view=rev Log: Improve the way attribute argument printing happens for omitted optional arguments when pretty printing. Patch by Joel Denny. Added: cfe/trunk/test/Sema

Re: r326542 - [Frontend] Avoid including default system header paths on Fuchsia

2018-03-02 Thread Aaron Ballman via cfe-commits
On Fri, Mar 2, 2018 at 2:19 AM, Petr Hosek via cfe-commits wrote: > Author: phosek > Date: Thu Mar 1 23:19:42 2018 > New Revision: 326542 > > URL: http://llvm.org/viewvc/llvm-project?rev=326542&view=rev > Log: > [Frontend] Avoid including default system header paths on Fuchsia > > These paths are

r326604 - Fix the hasType() AST matcher to not assert when the QualType is invalid.

2018-03-02 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri Mar 2 11:14:21 2018 New Revision: 326604 URL: http://llvm.org/viewvc/llvm-project?rev=326604&view=rev Log: Fix the hasType() AST matcher to not assert when the QualType is invalid. There's not a particularly good way to test this with the AST matchers unit tests b

[clang-tools-extra] r326605 - Adds a clang-tidy test for a failing assertion in the misc-misplaced-const check.

2018-03-02 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri Mar 2 11:14:34 2018 New Revision: 326605 URL: http://llvm.org/viewvc/llvm-project?rev=326605&view=rev Log: Adds a clang-tidy test for a failing assertion in the misc-misplaced-const check. The test case previously triggered an assertion in the AST matchers because

  1   2   3   4   5   6   7   8   9   10   >