Re: [PATCH] D18914: [clang-tidy] new readability-redundant-inline

2016-04-11 Thread Matthias Gehre via cfe-commits
mgehre added inline comments. Comment at: test/clang-tidy/readability-redundant-inline.cpp:6 @@ +5,3 @@ +// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: 'inline' is redundant because method body is defined inside class [readability-redundant-inline] +// CHECK-FIXES: {{^}} int f1()

Re: [PATCH] D18993: [clang-tidy] fix readability-avoid-const-params-in-decls creating invalid code in fix-its

2016-04-11 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. LG. Thank you! http://reviews.llvm.org/D18993 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r265934 - [clang-format] Walk backwards from end() instead of forwards from rend().

2016-04-11 Thread Benjamin Kramer via cfe-commits
On Mon, Apr 11, 2016 at 11:15 PM, Martin Probst wrote: >> > Was/is the 2 correct then? (if it was next(rbegin, 2) that'd be >> > equivalent >> > to prev(end, 3), yes?) >> >> I think it is from looking at the test case, looping in martin to see >> whether I'm right :) > > > At that point in the cod

r266005 - Allow simultaneous safestack and stackprotector attributes.

2016-04-11 Thread Evgeniy Stepanov via cfe-commits
Author: eugenis Date: Mon Apr 11 17:27:55 2016 New Revision: 266005 URL: http://llvm.org/viewvc/llvm-project?rev=266005&view=rev Log: Allow simultaneous safestack and stackprotector attributes. This is the clang part of http://reviews.llvm.org/D18846. SafeStack instrumentation pass adds stack pro

Re: [PATCH] D17993: [CodeGen] Apply 'nonnull' to 'this' pointer arguments.

2016-04-11 Thread John McCall via cfe-commits
rjmccall added a comment. In the cases where we can emit nonnull, I agree that we should be able to safely use dereferenceable for the non-virtual data size of of the type. I'm not too concerned about people calling methods on entirely the wrong type, especially to the relatively small degree

Re: r265934 - [clang-format] Walk backwards from end() instead of forwards from rend().

2016-04-11 Thread Martin Probst via cfe-commits
> > > Was/is the 2 correct then? (if it was next(rbegin, 2) that'd be > equivalent > > to prev(end, 3), yes?) > > I think it is from looking at the test case, looping in martin to see > whether I'm right :) At that point in the code, we have [..., PrePrev = '@', Prev = 'SomeToken'] and CurrentTok

Re: [PATCH] D18961: Add a readability-deleted-default clang-tidy check.

2016-04-11 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/readability/DeletedDefaultCheck.cpp:28 @@ +27,3 @@ + // - actually deleted + // - not in template instantiation. + const auto isBadlyDefaulted = For decls there is `isInstantiated()`, which is defined as

Re: [PATCH] D18879: Lit C++11 Compatibility Patch #6

2016-04-11 Thread Charles Li via cfe-commits
tigerleapgorge closed this revision. tigerleapgorge added a comment. Patch committed @r265982. http://reviews.llvm.org/D18879 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D18997: [SemaObjC] Properly diagnose type arguments and protocols mix in parameterized classes

2016-04-11 Thread Bruno Cardoso Lopes via cfe-commits
bruno created this revision. bruno added a reviewer: doug.gregor. bruno added subscribers: manmanren, dexonsmith, cfe-commits. Under certain conditions clang currently fails to properly diagnostic ObjectC parameter list when type args and protocols are mixed in the same list. This happens when the

[PATCH] D18998: [CodeGen] Explicitly widen non-power-of-2 vector HFA base types.

2016-04-11 Thread Ahmed Bougacha via cfe-commits
ab created this revision. ab added reviewers: rjmccall, uweigand, t.p.northover. ab added a subscriber: cfe-commits. Herald added a subscriber: aemerson. Currently, for the ppc64--gnu and aarch64 ABIs, we recognize: ``` typedef __attribute__((__ext_vector_type__(3))) float v3f32; typedef __attri

Re: [PATCH] D18567: Block: Fix a crash when we have type attributes or qualifiers with omitted return type.

2016-04-11 Thread John McCall via cfe-commits
rjmccall added a comment. Seems okay to me. Normally we wouldn't want to remove an attribute from the DeclSpec because it can apply to multiple declarators, but that's not possible with a block-literal declarator, so it's fine. Richard should sign off, though. http://reviews.llvm.org/D18567

r266031 - [analyzer] Fix assertion in ReturnVisitor for body-farm synthesized getters

2016-04-11 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Mon Apr 11 19:53:26 2016 New Revision: 266031 URL: http://llvm.org/viewvc/llvm-project?rev=266031&view=rev Log: [analyzer] Fix assertion in ReturnVisitor for body-farm synthesized getters Don't emit a path note marking the return site if the return statement does not have a

[PATCH] D19003: Set C99 as default C Standard for PS4 target

2016-04-11 Thread Douglas Yung via cfe-commits
dyung created this revision. dyung added reviewers: rsmith, ygao. dyung added a subscriber: cfe-commits. On the PS4, the default C standard is C99 which differs from the current default of C11. This patch makes the default C99 when targeting the PS4. This change includes the changes previously p

[patch] clang-cl: Remove -isystem, add -imsvc, expose -nostdlibinc

2016-04-11 Thread Nico Weber via cfe-commits
Hi, r260990 exposed -isystem in clang-cl. -isystem adds a directory to the front of the system include search path. The idea was to use this to point to a hermetic msvc install, but as it turns out this doesn't work: -isystem then adds the hermetic headers in front of clang's builtin headers, and

r266039 - Basic: fix profiling with GNU EABI

2016-04-11 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Apr 11 22:05:03 2016 New Revision: 266039 URL: http://llvm.org/viewvc/llvm-project?rev=266039&view=rev Log: Basic: fix profiling with GNU EABI The GNU profiling support indicates that the interface is `_mcount` rather than `mcount`. Conditionalise the behaviour accordi

Re: [PATCH] D18657: Propagate missing empty exception spec from function declared in system header

2016-04-11 Thread John McCall via cfe-commits
rjmccall added a comment. IIRC, isInSystemHeader isn't a terribly cheap check. Please extract this into a function that only needs to be called if the other checks succeed. You should also be able to just ask about the first declaration. There are contrived situations where isInSystemHeader c

Re: [PATCH] D18849: [modules] Avoid module relocation error when building modules from VFS

2016-04-11 Thread Bruno Cardoso Lopes via cfe-commits
bruno updated this revision to Diff 53363. bruno added a comment. Hi Richard & Ben, Thanks for the review! I've attached a new patch and changed the approach: made findUsableModuleForHeader receive a FileName instead of FileEntry. Answering the questions below: FileManager::getFile returns th

[PATCH] D19006: [libcxx] Remove the "reduced-arity-initialization" extension from the uses-allocator constructors

2016-04-11 Thread Eric Fiselier via cfe-commits
EricWF created this revision. EricWF added a subscriber: cfe-commits. http://reviews.llvm.org/D19006 Files: include/tuple test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_UTypes.pass.cpp Index: test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_UTypes.pass.cpp =

r266041 - [OPENMP 4.0] Support for 'uniform' clause in 'declare simd' directive.

2016-04-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Apr 12 00:28:34 2016 New Revision: 266041 URL: http://llvm.org/viewvc/llvm-project?rev=266041&view=rev Log: [OPENMP 4.0] Support for 'uniform' clause in 'declare simd' directive. OpenMP 4.0 defines clause 'uniform' in 'declare simd' directive: 'uniform' '(' ')' The unif

r266043 - [ASTMatchers]: fix crash in hasReturnValue

2016-04-11 Thread Matthias Gehre via cfe-commits
Author: mgehre Date: Tue Apr 12 00:43:18 2016 New Revision: 266043 URL: http://llvm.org/viewvc/llvm-project?rev=266043&view=rev Log: [ASTMatchers]: fix crash in hasReturnValue Summary: The crash was reproduced by the included test case. It was initially found through a crash of clang-tidy's misc-

Re: [PATCH] D18991: [ASTMatchers]: fix crash in hasReturnValue

2016-04-11 Thread Matthias Gehre via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266043: [ASTMatchers]: fix crash in hasReturnValue (authored by mgehre). Changed prior to commit: http://reviews.llvm.org/D18991?vs=53311&id=53367#toc Repository: rL LLVM http://reviews.llvm.org/D18

Re: [PATCH] D18993: [clang-tidy] fix readability-avoid-const-params-in-decls creating invalid code in fix-its

2016-04-11 Thread Matthias Gehre via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266044: [clang-tidy] fix readability-avoid-const-params-in-decls creating invalid… (authored by mgehre). Changed prior to commit: http://reviews.llvm.org/D18993?vs=53322&id=53368#toc Repository: rL L

[clang-tools-extra] r266044 - [clang-tidy] fix readability-avoid-const-params-in-decls creating invalid code in fix-its

2016-04-11 Thread Matthias Gehre via cfe-commits
Author: mgehre Date: Tue Apr 12 00:45:13 2016 New Revision: 266044 URL: http://llvm.org/viewvc/llvm-project?rev=266044&view=rev Log: [clang-tidy] fix readability-avoid-const-params-in-decls creating invalid code in fix-its Summary: The Fix-Its for the added test cases were before: -void F11(cons

Re: [PATCH] D18823: Implementation of VlA of GNU C++ extension

2016-04-11 Thread Doug Gregor via cfe-commits
doug.gregor added a comment. I think it's completely reasonable to implement support for VLAs as a GNU C++ extension. We did go through a phase where we tried to avoid implementing VLAs in C++ because we considered them to be a poor feature in C++. However, their use was wide-spread enough that

Re: [PATCH] D18947: Emit the module hash by default with -flto=thin.

2016-04-11 Thread Mehdi AMINI via cfe-commits
joker.eph closed this revision. joker.eph added a comment. r265977 http://reviews.llvm.org/D18947 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18970: Add functions in ctype.h to builtin function database

2016-04-11 Thread Taewook Oh via cfe-commits
twoh updated this revision to Diff 53369. twoh added a comment. Fix attribute annotation from 'const' to 'pure'. Add support for 'pure' attribute to builtin function database related code. Test case (test/Sema/libbuiltins-ctype.c) added. Line 116 of test/FixIt/typo.m is removed because it is no

<    1   2