Re: [PATCH] D13001: [libclang] Handle AutoType in clang_getTypeDeclaration

2015-12-14 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D13001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

r255484 - clang-format: Fix style default for WebKit and Linux styles.

2015-12-14 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Mon Dec 14 02:24:16 2015 New Revision: 255484 URL: http://llvm.org/viewvc/llvm-project?rev=255484&view=rev Log: clang-format: Fix style default for WebKit and Linux styles. Brought up in codereviews: http://reviews.llvm.org/D15445 http://reviews.llvm.org/D15485 Modified:

Re: [PATCH] D15445: clang-format: Fix WebKit BeforeElse brace wrapping style

2015-12-14 Thread Daniel Jasper via cfe-commits
djasper closed this revision. djasper added a comment. Submitted as r255484. http://reviews.llvm.org/D15445 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r255485 - clang-format: Extend Linux-brace-wrapping test.

2015-12-14 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Mon Dec 14 02:33:07 2015 New Revision: 255485 URL: http://llvm.org/viewvc/llvm-project?rev=255485&view=rev Log: clang-format: Extend Linux-brace-wrapping test. Modified: cfe/trunk/unittests/Format/FormatTest.cpp Modified: cfe/trunk/unittests/Format/FormatTest.cpp URL:

Re: [PATCH] D15485: [clang-format] BraceWrapping.BeforeElse is incorrect for BS_Linux

2015-12-14 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Submitted as r255484 and r255485. http://reviews.llvm.org/D15485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

r255486 - clang-format: Add test for AlignAfterOpenBracket = AlwaysBreak in C++.

2015-12-14 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Mon Dec 14 02:41:18 2015 New Revision: 255486 URL: http://llvm.org/viewvc/llvm-project?rev=255486&view=rev Log: clang-format: Add test for AlignAfterOpenBracket = AlwaysBreak in C++. Revision 251405 added AlwaysBreak to support Google's JavaScript style. This changeset compl

Re: [PATCH] D15062: [clang-format] Add test for AlignAfterOpenBracket = AlwaysBreak in C++.

2015-12-14 Thread Daniel Jasper via cfe-commits
djasper closed this revision. djasper added a comment. Submitted in r255486. Thank you. http://reviews.llvm.org/D15062 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15410: AnalysisConsumer: use canonical decl for both lookup and store of visited decls

2015-12-14 Thread Aleksei Sidorin via cfe-commits
a.sidorin updated this revision to Diff 42691. a.sidorin added a comment. Replaced CHECK with CHECK-NEXT Repository: rL LLVM http://reviews.llvm.org/D15410 Files: lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp test/Analysis/inlining

r255487 - [OPENMP] Fix debug info for 'atomic' construct.

2015-12-14 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Dec 14 03:26:19 2015 New Revision: 255487 URL: http://llvm.org/viewvc/llvm-project?rev=255487&view=rev Log: [OPENMP] Fix debug info for 'atomic' construct. Debug info for statement under 'atomic' construct must point exactly to that statement, not the directive itself.

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-14 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 42694. rmaprath added a comment. Simplified the changes to `__config` header. http://reviews.llvm.org/D14653 Files: include/__config include/array test/std/containers/sequences/array/at.pass.cpp test/support/noexcept.h Index: test/support/noexcept

Re: [PATCH] D12614: [OpenMP] Offloading descriptor registration and device codegen.

2015-12-14 Thread Jonas Hahnfeld via cfe-commits
Hahnfeld added a comment. Is anyone feeling responsible for a final go / review? It would be great for our research project to have at least basic offloading support in 3.8... http://reviews.llvm.org/D12614 ___ cfe-commits mailing list cfe-commits@

Re: [PATCH] D15411: [clang-tidy] Check for suspicious string assignments.

2015-12-14 Thread Gábor Horváth via cfe-commits
xazax.hun marked 7 inline comments as done. Comment at: clang-tidy/misc/StringIntegerAssignmentCheck.cpp:19 @@ +18,3 @@ +namespace { +AST_MATCHER(QualType, isAnyCharacter) { return Node->isAnyCharacterType(); } +} // namespace aaron.ballman wrote: > I think this w

Re: [PATCH] D15411: [clang-tidy] Check for suspicious string assignments.

2015-12-14 Thread Gábor Horváth via cfe-commits
xazax.hun updated this revision to Diff 42698. xazax.hun marked an inline comment as done. xazax.hun added a comment. - Addressed review comments. - Removed fixit suggestions. http://reviews.llvm.org/D15411 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tid

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-14 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 42701. rmaprath added a comment. Further refined the changes to `__config` header. - Now there's only one `_LIBCPP_THROW` macro, which does the right thing depending on the availability of exceptions. - Made `__libcxx_noexceptions_report` not take in the ex

[PATCH] D15490: [libclang] Add a flag to create the precompiled preamble on the first parse.

2015-12-14 Thread Benjamin Kramer via cfe-commits
bkramer created this revision. bkramer added reviewers: doug.gregor, klimek. bkramer added a subscriber: cfe-commits. The current default is to create the preamble on the first reparse, aka second parse. This is useful for clients that do not want to block when opening a file because serializing t

Re: [PATCH] D15490: [libclang] Add a flag to create the precompiled preamble on the first parse.

2015-12-14 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D15490 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D15411: [clang-tidy] Check for suspicious string assignments.

2015-12-14 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/StringIntegerAssignmentCheck.cpp:20 @@ +19,3 @@ +AST_MATCHER(QualType, isAnyCharacter) { return Node->isAnyCharacterType(); } +} // namespace + I prefer `isAnyCharacter` for consistency with `isInteger`. I'

Re: [PATCH] D15411: [clang-tidy] Check for suspicious string assignments.

2015-12-14 Thread Aaron Ballman via cfe-commits
aaron.ballman added a reviewer: klimek. Comment at: clang-tidy/misc/StringIntegerAssignmentCheck.cpp:20 @@ +19,3 @@ +AST_MATCHER(QualType, isAnyCharacter) { return Node->isAnyCharacterType(); } +} // namespace + alexfh wrote: > I prefer `isAnyCharacter` for consis

Re: [PATCH] D15411: [clang-tidy] Check for suspicious string assignments.

2015-12-14 Thread Gábor Horváth via cfe-commits
xazax.hun updated this revision to Diff 42710. xazax.hun marked 4 inline comments as done. xazax.hun added a comment. - Reimplemented fixits. - Addressed the review comments. http://reviews.llvm.org/D15411 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy

Re: [PATCH] D15411: [clang-tidy] Check for suspicious string assignments.

2015-12-14 Thread Gábor Horváth via cfe-commits
xazax.hun added inline comments. Comment at: clang-tidy/misc/StringIntegerAssignmentCheck.cpp:20 @@ +19,3 @@ +AST_MATCHER(QualType, isAnyCharacter) { return Node->isAnyCharacterType(); } +} // namespace + aaron.ballman wrote: > alexfh wrote: > > I prefer `isAnyCha

Re: [PATCH] D15222: [Patch][Profile] add “--dependent-lib= libclang_rt.profile-x86_64.a” to the CC1 command line when enabling code coverage on PS4

2015-12-14 Thread Ying Yi via cfe-commits
MaggieYi added a comment. Thanks for reviewing the patch. I try to answer your questions, could you please let me know if this makes sense to you? Regards, Comment at: lib/Driver/Tools.cpp:4064 @@ -4046,1 +4063,3 @@ + // Add runtime flag for PS4 when PGO or Coverage are ena

Re: [PATCH] D15222: [Patch][Profile] add “--dependent-lib= libclang_rt.profile-x86_64.a” to the CC1 command line when enabling code coverage on PS4

2015-12-14 Thread Ying Yi via cfe-commits
MaggieYi updated this revision to Diff 42711. MaggieYi added a comment. Following Vedant's comments, two test issues have been fixed. http://reviews.llvm.org/D15222 Files: lib/Driver/Tools.cpp test/Driver/ps4-runtime-flags.c Index: test/Driver/ps4-runtime-flags.c ==

Re: [PATCH]: Allow the use of i386/darwin with ELF

2015-12-14 Thread Rafael Espíndola via cfe-commits
It at least needs a testcase. Cheers, Rafael On 13 December 2015 at 09:53, Luboš Doležel wrote: > Hello, > > I'm the developer of Darling, a translation layer for running OS X > binaries on Linux. > > I'm facing many difficulties due to the following differences in i386 > ABI between Darwin and

r255498 - Add parse and sema of OpenMP distribute directive with all clauses except dist_schedule

2015-12-14 Thread Carlo Bertolli via cfe-commits
Author: cbertol Date: Mon Dec 14 08:51:25 2015 New Revision: 255498 URL: http://llvm.org/viewvc/llvm-project?rev=255498&view=rev Log: Add parse and sema of OpenMP distribute directive with all clauses except dist_schedule Added: cfe/trunk/test/OpenMP/distribute_ast_print.cpp cfe/trunk/te

Re: [PATCH] D15125: [OPENMP] 'omp distribute' directive basic support.

2015-12-14 Thread Carlo Bertolli via cfe-commits
carlo.bertolli added a comment. Resubmitted at rev255498 Repository: rL LLVM http://reviews.llvm.org/D15125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D5744: Partial specialization after class template instantiation.

2015-12-14 Thread Anton Bikineev via cfe-commits
AntonBikineev added a comment. @rsmith, are there any plans/suggestions regarding this patch? http://reviews.llvm.org/D5744 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [patch] Let -Wdelete-non-virtual-dtor mention that making the class final is a good fix too

2015-12-14 Thread Nico Weber via cfe-commits
On Sun, Dec 13, 2015 at 6:57 PM, David Blaikie wrote: > (attachment missing) > (whoops. looks as expected though, here it is.) Cursory review based on description: Sounds reasonable to me. Would want to > check the C++98 behavior to ensure it is actually relevant/correct to imply > the possibil

Re: [PATCH] D12407: [clang-format-vs] Add an option to reformat source code when file is saved to disk

2015-12-14 Thread Beren Minor via cfe-commits
berenm updated this revision to Diff 42718. berenm added a comment. - Patch rebased on trunk - Small cleanups in the RunningDocumentTable usage - Tested and appears work on VS >= 2012 http://reviews.llvm.org/D12407 Files: tools/clang-format-vs/ClangFormat/ClangFormat.csproj tools/clang-form

Re: [PATCH] D10370: clang-format: Implement AlwaysBreakAfterDeclarationReturnType.

2015-12-14 Thread Daniel Jasper via cfe-commits
djasper added a comment. I think we can add the option AlwaysBreakAfterReturnType but still be backwards compatible. If clang-format finds only the old option in a configuration file, it can choose the appropriate value of the new option. I also like using just this one option better than using

Re: [PATCH] D12407: [clang-format-vs] Add an option to reformat source code when file is saved to disk

2015-12-14 Thread Beren Minor via cfe-commits
berenm added inline comments. Comment at: tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs:195 @@ -179,1 +194,3 @@ +runningDocumentTable = new RunningDocumentTable(this); +adviseCookie = runningDocumentTable.Advise(this); In this b

Re: [PATCH] D13001: [libclang] Handle AutoType in clang_getTypeDeclaration

2015-12-14 Thread Milian Wolff via cfe-commits
milianw added a comment. lgtm, but someone else should approve http://reviews.llvm.org/D13001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH]: Allow the use of i386/darwin with ELF

2015-12-14 Thread Konstantin Tokarev via cfe-commits
13.12.2015, 17:54, "Luboš Doležel via cfe-commits" : > Hello, > > I'm the developer of Darling, a translation layer for running OS X > binaries on Linux. > > I'm facing many difficulties due to the following differences in i386 > ABI between Darwin and Linux: > > * size_t on Darwin/i386 is 'unsig

Re: [PATCH] D15222: [Patch][Profile] add “--dependent-lib= libclang_rt.profile-x86_64.a” to the CC1 command line when enabling code coverage on PS4

2015-12-14 Thread Vedant Kumar via cfe-commits
vsk added inline comments. Comment at: lib/Driver/Tools.cpp:4067 @@ -4049,1 +4066,3 @@ + // Add runtime flag for PS4 when PGO or Coverage are enabled. + if (getToolChain().getTriple().isPS4CPU()) Sorry, I don't know why I thought this was in ParsePIC. This see

Re: [PATCH] D15462: [CMake] Add support for generating profdata for clang from training files

2015-12-14 Thread Chris Bieneman via cfe-commits
beanz added a comment. Sean, The reason for restricting to Unix is two fold. (1) the shell script goop, which I can replace with python and (2) I don't have a windows box to test on, so I didn't want people to think it worked. If I replace the shell goop with Python this will probably "Just Wo

Re: [PATCH] D15223: [ARM] [AARCH64] Add CodeGen IR tests for {VS}QRDML{AS}H v8.1a intrinsics.

2015-12-14 Thread Alexandros Lamprineas via cfe-commits
labrinea added a comment. Hi Eric, The main optimization I feel is useful is mem2reg. Without that, if I want to properly check the right values go to the right operands of the intrinsic calls I have to write FileCheck matchers that match stores and their relevant loads, plus bitcasts. This no

Re: [PATCH] D15223: [ARM] [AARCH64] Add CodeGen IR tests for {VS}QRDML{AS}H v8.1a intrinsics.

2015-12-14 Thread Eric Christopher via cfe-commits
echristo added a comment. I understand the conflicting priorities here for sure. You'd like a test that's as minimal as possible, without having to depend on external (to clang) libraries here. I really would appreciate it if you'd make the test not rely on mem2reg etc so we can be sure that cl

r255510 - [Hexagon] Xfail two tests that fail due to over-aligning arrays

2015-12-14 Thread Krzysztof Parzyszek via cfe-commits
Author: kparzysz Date: Mon Dec 14 11:17:20 2015 New Revision: 255510 URL: http://llvm.org/viewvc/llvm-project?rev=255510&view=rev Log: [Hexagon] Xfail two tests that fail due to over-aligning arrays Modified: cfe/trunk/test/CodeGen/c-strings.c cfe/trunk/test/CodeGen/string-literal-short-w

[libcxx] r255513 - Add add_lvalue_ref tests for a few function types, with a note why not more

2015-12-14 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Dec 14 11:34:03 2015 New Revision: 255513 URL: http://llvm.org/viewvc/llvm-project?rev=255513&view=rev Log: Add add_lvalue_ref tests for a few function types, with a note why not more Modified: libcxx/trunk/test/std/utilities/meta/meta.trans/meta.trans.ref/add_lval

Lit C++11 Compatibility Patch #6

2015-12-14 Thread Li, Charles via cfe-commits
Hello Everyone, Here is the 6th Lit tests C++11 compatibility patch. It is super simple this time. 17 OpenMP tests have their expected diagnostics updated. The changes to each file are identical. C++11 has expanded diagnostics when an expression is not an integral constant expression. C++11

Re: [PATCH] D15478: [MS ABI] Don't rely on terminatepad

2015-12-14 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm http://reviews.llvm.org/D15478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r255515 - [Power PC] add soft float support for ppc32

2015-12-14 Thread Petar Jovanovic via cfe-commits
Author: petarj Date: Mon Dec 14 11:51:50 2015 New Revision: 255515 URL: http://llvm.org/viewvc/llvm-project?rev=255515&view=rev Log: [Power PC] add soft float support for ppc32 This patch enables soft float support for ppc32 architecture and fixes the ABI for variadic functions. This is the first

Re: [PATCH] D13351: [Power PC] add soft float support for ppc32

2015-12-14 Thread Petar Jovanovic via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL255515: [Power PC] add soft float support for ppc32 (authored by petarj). Changed prior to commit: http://reviews.llvm.org/D13351?vs=41736&id=42733#toc Repository: rL LLVM http://reviews.llvm.org/D1

[libcxx] r255517 - Fix a corner case that involved calling rethrow_if_nested with a type that had a deleted operator&. Added a test to catch this as well. Thanks to Ville for the heads-up.

2015-12-14 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Dec 14 12:01:56 2015 New Revision: 255517 URL: http://llvm.org/viewvc/llvm-project?rev=255517&view=rev Log: Fix a corner case that involved calling rethrow_if_nested with a type that had a deleted operator&. Added a test to catch this as well. Thanks to Ville for the h

[libcxx] r255518 - Missed this on the previous (255517) commit

2015-12-14 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Dec 14 12:02:23 2015 New Revision: 255518 URL: http://llvm.org/viewvc/llvm-project?rev=255518&view=rev Log: Missed this on the previous (255517) commit Modified: libcxx/trunk/include/type_traits Modified: libcxx/trunk/include/type_traits URL: http://llvm.org/viewv

[libcxx] r255519 - K-Ballo pointed out a mistake in the add_lvalue_ref tests I checked in; now more of them are passing. Thanks

2015-12-14 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Dec 14 12:11:51 2015 New Revision: 255519 URL: http://llvm.org/viewvc/llvm-project?rev=255519&view=rev Log: K-Ballo pointed out a mistake in the add_lvalue_ref tests I checked in; now more of them are passing. Thanks Modified: libcxx/trunk/test/std/utilities/meta/

r255521 - [MS ABI] Don't rely on terminatepad

2015-12-14 Thread David Majnemer via cfe-commits
Author: majnemer Date: Mon Dec 14 12:34:18 2015 New Revision: 255521 URL: http://llvm.org/viewvc/llvm-project?rev=255521&view=rev Log: [MS ABI] Don't rely on terminatepad We'd like to remove support for terminatepad from LLVM. To do this, we need to move Clang off of it first. The intent behind

Re: [PATCH] D15478: [MS ABI] Don't rely on terminatepad

2015-12-14 Thread David Majnemer via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL255521: [MS ABI] Don't rely on terminatepad (authored by majnemer). Changed prior to commit: http://reviews.llvm.org/D15478?vs=42641&id=42736#toc Repository: rL LLVM http://reviews.llvm.org/D15478

Re: [PATCH] D15463: [Objective-c] Fix a crash

2015-12-14 Thread Justin Bogner via cfe-commits
Akira Hatanaka via cfe-commits writes: > ahatanak created this revision. > ahatanak added a subscriber: cfe-commits. > > This patch fixes a crash that occurs when __kindof is incorrectly used > in the type parameter list of an interface. The crash occurs because > ObjCTypeParamList::back() is call

Re: [PATCH] D15223: [ARM] [AARCH64] Add CodeGen IR tests for {VS}QRDML{AS}H v8.1a intrinsics.

2015-12-14 Thread Tim Northover via cfe-commits
On 14 December 2015 at 09:20, Eric Christopher via cfe-commits wrote: > I understand the conflicting priorities here for sure. You'd like a test > that's as minimal as possible, without having to depend on external (to > clang) libraries here. I really would appreciate it if you'd make the test

r255524 - clang-cl: make /Wall turn on both -Wall and -Wextra (PR25563)

2015-12-14 Thread Hans Wennborg via cfe-commits
Author: hans Date: Mon Dec 14 12:46:11 2015 New Revision: 255524 URL: http://llvm.org/viewvc/llvm-project?rev=255524&view=rev Log: clang-cl: make /Wall turn on both -Wall and -Wextra (PR25563) The documentation suggests /Wall should really turn on -Wextra and any other warnings that are not enabl

Re: [PATCH] D15490: [libclang] Add a flag to create the precompiled preamble on the first parse.

2015-12-14 Thread Doug Gregor via cfe-commits
doug.gregor added a comment. For reference, you can test this by setting the environment variable LIBCLANG_TIMING in your test, and checking that the string "Precompiling preamble" shows up on first parse. http://reviews.llvm.org/D15490 ___ cfe-co

Re: [PATCH] D15223: [ARM] [AARCH64] Add CodeGen IR tests for {VS}QRDML{AS}H v8.1a intrinsics.

2015-12-14 Thread Eric Christopher via cfe-commits
On Mon, Dec 14, 2015 at 10:44 AM Tim Northover wrote: > On 14 December 2015 at 09:20, Eric Christopher via cfe-commits > wrote: > > I understand the conflicting priorities here for sure. You'd like a test > that's as minimal as possible, without having to depend on external (to > clang) librarie

Re: [PATCH] D15486: [RFC] Emit note pointing to a discarded qualifier [-Wincompatible-pointer-types-discards-qualifiers]

2015-12-14 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. Can you write up a couple of testcases for the new diagnostic? There should be some examples you can follow in clang/test/Sema ans clang/test/SemaCXX. I'd also be interested in seeing a concrete example of the setter thing you were talking about in ObjC/ObjC++. http:

Re: [PATCH] D15223: [ARM] [AARCH64] Add CodeGen IR tests for {VS}QRDML{AS}H v8.1a intrinsics.

2015-12-14 Thread Tim Northover via cfe-commits
> I don't think it's going to be even vaguely that bad here and that you're > blowing it a bit out of proportion. [...] It does make the tests a little > harder > to write, but having done a bunch of them it's not that bad. I've also tried to write such tests in the past, and I did find it that b

Re: [PATCH] D15223: [ARM] [AARCH64] Add CodeGen IR tests for {VS}QRDML{AS}H v8.1a intrinsics.

2015-12-14 Thread Eric Christopher via cfe-commits
On Mon, Dec 14, 2015 at 11:05 AM Tim Northover wrote: > > I don't think it's going to be even vaguely that bad here and that you're > > blowing it a bit out of proportion. [...] It does make the tests a > little harder > > to write, but having done a bunch of them it's not that bad. > > I've also

r255531 - Allow pseudo-destructor calls on forward-declared Objective-C class pointers.

2015-12-14 Thread John McCall via cfe-commits
Author: rjmccall Date: Mon Dec 14 13:12:54 2015 New Revision: 255531 URL: http://llvm.org/viewvc/llvm-project?rev=255531&view=rev Log: Allow pseudo-destructor calls on forward-declared Objective-C class pointers. rdar://18522255 Added: cfe/trunk/test/SemaObjCXX/pseudo-destructor.mm Modified:

Re: [PATCH] D14938: Fix implicit conversion from _Nullable to _Nonnull warnings in C++

2015-12-14 Thread George Burgess IV via cfe-commits
george.burgess.iv added a comment. Ping :) http://reviews.llvm.org/D14938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14779: Adding checker to detect excess padding in records

2015-12-14 Thread Ben Craig via cfe-commits
bcraig marked 3 inline comments as done. bcraig added a comment. In http://reviews.llvm.org/D14779#309170, @zaks.anna wrote: > With respect to the issues this checker found, I suggest submitting patches > for the clang issues that can be fixed. Can the x-macro case be suppressed > with the reco

Re: [PATCH] D15223: [ARM] [AARCH64] Add CodeGen IR tests for {VS}QRDML{AS}H v8.1a intrinsics.

2015-12-14 Thread Tim Northover via cfe-commits
On 14 December 2015 at 11:12, Eric Christopher wrote: > There really is a pretty good separation of concerns and for a lot if not > most of the tests here all the difference is checking is the arguments, > keeping track of an alloca and making sure that goes is pretty simple and > not really hard

r255533 - [PowerPC] Fix make-check issues

2015-12-14 Thread Petar Jovanovic via cfe-commits
Author: petarj Date: Mon Dec 14 13:22:35 2015 New Revision: 255533 URL: http://llvm.org/viewvc/llvm-project?rev=255533&view=rev Log: [PowerPC] Fix make-check issues Previous change r255515 introduced a couple of issues likely caused by a different configure setup. Modified: cfe/trunk/test/Co

Re: [PATCH] D15223: [ARM] [AARCH64] Add CodeGen IR tests for {VS}QRDML{AS}H v8.1a intrinsics.

2015-12-14 Thread James Molloy via cfe-commits
Fwiw, I am certainly in Tim'a camp here! Writing a test for that output is doable, and if that's what people want then that's what we'll do. But it's certainly not nice or readable ! On Mon, 14 Dec 2015 at 19:25, Tim Northover via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On 14 December 2

Re: [PATCH] D15490: [libclang] Add a flag to create the precompiled preamble on the first parse.

2015-12-14 Thread Benjamin Kramer via cfe-commits
bkramer updated this revision to Diff 42749. bkramer added a comment. Add test case. http://reviews.llvm.org/D15490 Files: include/clang-c/Index.h include/clang/Frontend/ASTUnit.h lib/Frontend/ASTUnit.cpp test/Index/complete-preamble.cpp tools/c-index-test/c-index-test.c tools/libcl

Re: [PATCH] D14779: Adding checker to detect excess padding in records

2015-12-14 Thread Anna Zaks via cfe-commits
zaks.anna added inline comments. Comment at: lib/StaticAnalyzer/Checkers/Checkers.td:49 @@ -48,1 +48,3 @@ +def Performance : Package<"performance">; + zaks.anna wrote: > I think Performance should be in the OptIn package. What do you think about this one? http

r255539 - [PowerPC] Fix test/CodeGen/ppc-sfvarargs

2015-12-14 Thread Petar Jovanovic via cfe-commits
Author: petarj Date: Mon Dec 14 14:30:02 2015 New Revision: 255539 URL: http://llvm.org/viewvc/llvm-project?rev=255539&view=rev Log: [PowerPC] Fix test/CodeGen/ppc-sfvarargs The issue seems to be that .ll file may either use number of register value or alias %numUsedRegs, so the check needs to co

Re: [PATCH] D14779: Adding checker to detect excess padding in records

2015-12-14 Thread Ben Craig via cfe-commits
bcraig updated this revision to Diff 42742. bcraig marked an inline comment as done. http://reviews.llvm.org/D14779 Files: lib/StaticAnalyzer/Checkers/CMakeLists.txt lib/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/PaddingChecker.cpp test/Analysis/padding_c.c test/Ana

Re: [PATCH] D14779: Adding checker to detect excess padding in records

2015-12-14 Thread Ben Craig via cfe-commits
bcraig marked 2 inline comments as done. bcraig added a comment. http://reviews.llvm.org/D14779 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D15506: [ASTMatchers] Allow hasName() to look through inline namespaces

2015-12-14 Thread Samuel Benzaquen via cfe-commits
sbenza created this revision. sbenza added a reviewer: klimek. sbenza added a subscriber: cfe-commits. Herald added a subscriber: klimek. Allow hasName() to look through inline namespaces. This will fix the interaction between some clang-tidy checks and libc++. libc++ defines names in an inline n

Re: [PATCH] D15410: AnalysisConsumer: use canonical decl for both lookup and store of visited decls

2015-12-14 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. I wonder if we can refactor the code so that it is less error prone.. shouldSkipFunction(D, Visited, VisitedAsTopLevel) works with two sets. I assume that you have not updated Decls coming from VisitedAsTopLevel because they come from the CFG and should already be can

Re: [PATCH] D15411: [clang-tidy] Check for suspicious string assignments.

2015-12-14 Thread Richard via cfe-commits
LegalizeAdulthood added inline comments. Comment at: test/clang-tidy/misc-string-integer-assignment.cpp:46 @@ +45,3 @@ + ws += L'c'; + ws += (wchar_t)6; + Use `static_cast<>` instead of C-style cast? http://reviews.llvm.org/D15411 __

Re: [PATCH] D15411: [clang-tidy] Check for suspicious string assignments.

2015-12-14 Thread Richard via cfe-commits
LegalizeAdulthood added inline comments. Comment at: test/clang-tidy/misc-string-integer-assignment.cpp:33 @@ +32,3 @@ + s = 'c'; + s = (char)6; + What happens if the test code had used `static_cast`? http://reviews.llvm.org/D15411 _

Re: [PATCH]: git-clang-format

2015-12-14 Thread Alexander Shukaev via cfe-commits
On 12/11/2015 04:40 PM, Daniel Jasper wrote: Please submit patches to clang-format to reviews.llvm.org. Also, any change no matter how easy it is to deduce from the code itself deserves a proper change description :-). Bullet points are fine. Thanks for the quick reply. I've submitted the patc

Re: [PATCH] D14938: Fix implicit conversion from _Nullable to _Nonnull warnings in C++

2015-12-14 Thread Justin Bogner via cfe-commits
George Burgess IV via cfe-commits writes: > george.burgess.iv created this revision. > george.burgess.iv added a reviewer: doug.gregor. > george.burgess.iv added subscribers: cfe-commits, doug.gregor. > > Currently, code like this compiles cleanly in C++, but with warnings > (as it should) in C:

Re: [PATCH] D15463: [Objective-c] Fix a crash

2015-12-14 Thread Akira Hatanaka via cfe-commits
On Mon, Dec 14, 2015 at 10:39 AM, Justin Bogner wrote: > Akira Hatanaka via cfe-commits writes: > > ahatanak created this revision. > > ahatanak added a subscriber: cfe-commits. > > > > This patch fixes a crash that occurs when __kindof is incorrectly used > > in the type parameter list of an in

Re: [PATCH] D15462: [CMake] Add support for generating profdata for clang from training files

2015-12-14 Thread Chris Bieneman via cfe-commits
beanz updated this revision to Diff 42761. beanz added a comment. Updates based on feedback from Sean and Vedant. - Should work on Windows now - Cleaned up lit config code http://reviews.llvm.org/D15462 Files: CMakeLists.txt utils/perf-training/CMakeLists.txt utils/perf-training/README.t

Re: [PATCH] D15097: [Sema] Issue a warning for integer overflow in struct initializer

2015-12-14 Thread Akira Hatanaka via cfe-commits
ping On Mon, Nov 30, 2015 at 4:30 PM, Akira Hatanaka wrote: > ahatanak created this revision. > ahatanak added a subscriber: cfe-commits. > > Issue a warning if an initializing integer expression overflows. > > For example, clang should issue a warning when compiling the following > code because

Re: [PATCH] D10370: clang-format: Implement AlwaysBreakAfterDeclarationReturnType.

2015-12-14 Thread Zachary Turner via cfe-commits
zturner added a comment. In http://reviews.llvm.org/D10370#309789, @djasper wrote: > I think we can add the option AlwaysBreakAfterReturnType but still be > backwards compatible. If clang-format finds only the old option in a > configuration file, it can choose the appropriate value of the new

Re: [PATCH] D15506: [ASTMatchers] Allow hasName() to look through inline namespaces

2015-12-14 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. Comment at: lib/ASTMatchers/ASTMatchersInternal.cpp:320 @@ -323,3 +319,3 @@ - if (Pattern.startswith("::")) -return FullName == Pattern; + for (bool SkipUnwritten : {false, true}) { +llvm::SmallString<128> NodeName = Str

Re: [PATCH] D15506: [ASTMatchers] Allow hasName() to look through inline namespaces

2015-12-14 Thread Yaron Keren via cfe-commits
MSVC 2013 Update 5 accepts for (bool SkipUnwritten : {false, true}). Possibly changed in one of the Updates? 2015-12-14 23:35 GMT+02:00 Aaron Ballman via cfe-commits < cfe-commits@lists.llvm.org>: > aaron.ballman added a subscriber: aaron.ballman. > > > Comment at: lib/ASTMatcher

r255545 - [PATCH] Adding checker to detect excess padding in records

2015-12-14 Thread Ben Craig via cfe-commits
Author: bcraig Date: Mon Dec 14 15:38:59 2015 New Revision: 255545 URL: http://llvm.org/viewvc/llvm-project?rev=255545&view=rev Log: [PATCH] Adding checker to detect excess padding in records The intent of this checker is to generate a report for any class / structure that could reduce its paddin

Re: [PATCH] D15506: [ASTMatchers] Allow hasName() to look through inline namespaces

2015-12-14 Thread Aaron Ballman via cfe-commits
On Mon, Dec 14, 2015 at 4:39 PM, Yaron Keren wrote: > MSVC 2013 Update 5 accepts for (bool SkipUnwritten : {false, true}). > Possibly changed in one of the Updates? I tested using MSVC 2013 Update 5. Microsoft Visual Studio Ultimate 2013 Version 12.0.40629.00 Update 5 Microsoft .NET Framework Ve

Re: [PATCH] D14779: Adding checker to detect excess padding in records

2015-12-14 Thread Ben Craig via cfe-commits
bcraig closed this revision. bcraig added a comment. Submitted to r255545 http://reviews.llvm.org/D14779 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15486: [RFC] Emit note pointing to a discarded qualifier [-Wincompatible-pointer-types-discards-qualifiers]

2015-12-14 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. I would be interested in seeing test cases where this is an improvement. For instance, would it be equally as useful to pass in the type range to the existing diagnostic so that the type gets highlighted as well (and skip the note entirely)? http://reviews.llvm.

Re: [PATCH] D15506: [ASTMatchers] Allow hasName() to look through inline namespaces

2015-12-14 Thread Samuel Benzaquen via cfe-commits
sbenza updated this revision to Diff 42767. sbenza added a comment. Minor fixes http://reviews.llvm.org/D15506 Files: lib/ASTMatchers/ASTMatchersInternal.cpp unittests/ASTMatchers/ASTMatchersTest.cpp Index: unittests/ASTMatchers/ASTMatchersTest.cpp =

Re: [PATCH] D15506: [ASTMatchers] Allow hasName() to look through inline namespaces

2015-12-14 Thread Yaron Keren via cfe-commits
That's odd. I'm using the same update 5 exactly, added " for (bool SkipUnwritten : {false, true});" inside a LLVM source file and re-compiled. MSVC complained about the unused SkipUnwritten but was therwise OK with the code. 2015-12-14 23:43 GMT+02:00 Aaron Ballman : > On Mon, Dec 14, 2015 at 4

Re: [PATCH] D15506: [ASTMatchers] Allow hasName() to look through inline namespaces

2015-12-14 Thread Samuel Benzaquen via cfe-commits
sbenza added a comment. I am thinking on doing this some other way. Copying the PrintingPolicy object is very expensive, as it contains quite a few strings and vectors of strings. In the past I changed this matcher to make no allocations in the common path (ie using SmallString<>, etc) to reduce

r255552 - Reordering fields to reduce padding in Clang. NFC

2015-12-14 Thread Ben Craig via cfe-commits
Author: bcraig Date: Mon Dec 14 15:54:11 2015 New Revision: 22 URL: http://llvm.org/viewvc/llvm-project?rev=22&view=rev Log: Reordering fields to reduce padding in Clang. NFC Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp cfe/trunk/lib/Sema/SemaType.cpp Modified: cfe/trunk/lib/Co

Re: [PATCH] D15506: [ASTMatchers] Allow hasName() to look through inline namespaces

2015-12-14 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: lib/ASTMatchers/ASTMatchersInternal.cpp:320-331 @@ -323,4 +319,14 @@ - if (Pattern.startswith("::")) -return FullName == Pattern; + const bool SkipUnwrittenCases[] = {false, true}; + for (bool SkipUnwritten : SkipUnwrittenC

Re: [PATCH] D15506: [ASTMatchers] Allow hasName() to look through inline namespaces

2015-12-14 Thread Yaron Keren via cfe-commits
yaron.keren added inline comments. Comment at: lib/ASTMatchers/ASTMatchersInternal.cpp:322 @@ +321,3 @@ + for (bool SkipUnwritten : SkipUnwrittenCases) { +llvm::SmallString<128> NodeName = StringRef("::"); +llvm::raw_svector_ostream OS(NodeName); StringRe

Re: [PATCH] D14938: Fix implicit conversion from _Nullable to _Nonnull warnings in C++

2015-12-14 Thread George Burgess IV via cfe-commits
> Are there already tests in place for the C version? I assume so, but > please double check. Looks to me like the warning in the example is tested in C. Added 2 other cases (assignment + passing a _Nullable variable as a _Nonnull argument) for good measure. > LGTM with a couple of nits, below.

Re: [PATCH] D14938: Fix implicit conversion from _Nullable to _Nonnull warnings in C++

2015-12-14 Thread George Burgess IV via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL26: [Sema] Make nullness warnings appear in C++. (authored by gbiv). Changed prior to commit: http://reviews.llvm.org/D14938?vs=40987&id=42770#toc Repository: rL LLVM http://reviews.llvm.org/D14

r255556 - [Sema] Make nullness warnings appear in C++.

2015-12-14 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Mon Dec 14 16:00:49 2015 New Revision: 26 URL: http://llvm.org/viewvc/llvm-project?rev=26&view=rev Log: [Sema] Make nullness warnings appear in C++. Given the following code: int *_Nullable ptr; int *_Nonnull nn = ptr; ...In C, clang will warn you about `nn =

Re: [PATCH] D15440: [libc++abi] Use libgcc and libgcc_s to provide _Unwind symbols instead of libgcc_eh.a

2015-12-14 Thread Eric Fiselier via cfe-commits
EricWF updated the summary for this revision. EricWF updated this revision to Diff 42772. EricWF added a comment. This patch is updated in the following ways: 1. No longer try and remove `-Wl,-z,defs` from the link flags. I think I was mistaken that this caused an issue. 2. No longer try and lin

Re: [PATCH] D10370: clang-format: Implement AlwaysBreakAfterDeclarationReturnType.

2015-12-14 Thread Zachary Turner via cfe-commits
zturner updated this revision to Diff 42774. zturner added a comment. This patch was very old, so it didn't apply against ToT. So this initial update is just to rebase against ToT. I will make changes in a followup patch. http://reviews.llvm.org/D10370 Files: include/clang/Format/Format.h

Re: [PATCH] D9600: Add scan-build python implementation

2015-12-14 Thread Laszlo Nagy via cfe-commits
rizsotto.mailinglist added inline comments. Comment at: tools/scan-build-py/libear/ear.c:142 @@ +141,3 @@ +#endif +if (!initialized) +initialized = bear_capture_env_t(&initial_env); dcoughlin wrote: > rizsotto.mailinglist wrote: > > rizsotto.mailinglis

Re: [PATCH] D15163: Attach maximum function count to Module when using PGO mode.

2015-12-14 Thread David Li via cfe-commits
davidxl added inline comments. Comment at: cfe/trunk/test/CodeGen/pgo-max-function-count.c:1 @@ +1,2 @@ +// RUN: %clang -fprofile-generate -o %t -O2 %s +// RUN: env LLVM_PROFILE_FILE=%t.profraw %t Use -fprofile-instr-generate option. -fprofile-generate is for GCC

[libcxxabi] r255559 - [libc++abi] Use libgcc and libgcc_s to provide _Unwind symbols instead of libgcc_eh.a

2015-12-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Dec 14 16:20:04 2015 New Revision: 29 URL: http://llvm.org/viewvc/llvm-project?rev=29&view=rev Log: [libc++abi] Use libgcc and libgcc_s to provide _Unwind symbols instead of libgcc_eh.a Summary: libgcc_eh.a cannot be used when building libc++abi as a shared libra

Re: [PATCH] D15440: [libc++abi] Use libgcc and libgcc_s to provide _Unwind symbols instead of libgcc_eh.a

2015-12-14 Thread Eric Fiselier via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL29: [libc++abi] Use libgcc and libgcc_s to provide _Unwind symbols instead of… (authored by EricWF). Changed prior to commit: http://reviews.llvm.org/D15440?vs=42772&id=42777#toc Repository: rL L

[libcxx] r255560 - Update how libc++/libc++abi link the tests. Follow up on r255559.

2015-12-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Dec 14 16:24:19 2015 New Revision: 255560 URL: http://llvm.org/viewvc/llvm-project?rev=255560&view=rev Log: Update how libc++/libc++abi link the tests. Follow up on r29. Modified: libcxx/trunk/test/libcxx/test/config.py Modified: libcxx/trunk/test/libcxx/test/con

Re: [PATCH] D15441: [libc++] Use libgcc_s and libgcc instead of libgcc_eh when running the libc++ tests

2015-12-14 Thread Eric Fiselier via cfe-commits
EricWF closed this revision. EricWF added a comment. r255560. http://reviews.llvm.org/D15441 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r255561 - Update paths in libc++ build instructions. Patch from Jonathan Anderson.

2015-12-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Dec 14 16:26:28 2015 New Revision: 255561 URL: http://llvm.org/viewvc/llvm-project?rev=255561&view=rev Log: Update paths in libc++ build instructions. Patch from Jonathan Anderson. Modified: libcxx/trunk/docs/BuildingLibcxx.rst Modified: libcxx/trunk/docs/BuildingLib

  1   2   >