[PATCH] D13279: Decorating virtual functions load with invariant.load

2015-09-29 Thread Piotr Padlewski via cfe-commits
Prazek created this revision. Prazek added reviewers: rsmith, majnemer, nlewycky, rjmccall. Prazek added a subscriber: cfe-commits. http://reviews.llvm.org/D13279 Files: lib/CodeGen/ItaniumCXXABI.cpp test/CodeGenCXX/virtual-function-calls.cpp Index: test/CodeGenCXX/virtual-function-calls.cpp

Re: [PATCH] D13249: Divide TraverseInitListExpr to a different function for each form.

2015-09-29 Thread Manuel Klimek via cfe-commits
I think it's worth figuring out when this is called with the semantic or syntactic version and why this can't lead to double visitation. Then add a comment while you're changing the method so the next person doesn't have to figure it all out :) On Wed, Sep 30, 2015 at 12:15 AM Angel Garcia wrote:

r248869 - Fix the sample profile format that breaks in test http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/505

2015-09-29 Thread Dehao Chen via cfe-commits
Author: dehao Date: Tue Sep 29 20:03:10 2015 New Revision: 248869 URL: http://llvm.org/viewvc/llvm-project?rev=248869&view=rev Log: Fix the sample profile format that breaks in test http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/505 http://reviews.llvm.org/D1

Re: [PATCH] D12839: Extend MoveConstructorInitCheck to also flag constructor arguments passed by value and can be moved assigned to fields.

2015-09-29 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. In http://reviews.llvm.org/D12839#256179, @flx wrote: > I had to convert the line endings of mis-move-constructor-init.cpp to unix > style otherwise the test would not correctly work. This took a long time to > debug since the checks failed complaining that error message

Re: [PATCH] D13134: [analyzer] Add keyboard shortcuts to report.html

2015-09-29 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. Thanks for the patch! This looks very useful. What browsers does the JavaScript support? One thing I noticed is that after immediately loading a new report page the 'j' and 'k' shortcuts don't work for me. In Safari, I get: TypeError: null is not an object (evaluat

Re: [PATCH] D12839: Extend MoveConstructorInitCheck to also flag constructor arguments passed by value and can be moved assigned to fields.

2015-09-29 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good. Please fix the patch and I can commit it for you. Comment at: clang-tidy/utils/IncludeSorter.cpp:289 @@ +288,3 @@ +IncludeSorter::IncludeStyle +IncludeSorter::toIn

Re: [PATCH] D12945: [PATCH] Add checker for objects that should not be value types

2015-09-29 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. One of the error messages still needs to be made more clear. Otherwise looks good. Thank you! Comment at: clang-tidy/misc/NonCopyableObjects.cpp:88 @@ +87,3 @@ + else if (E

Re: [PATCH] D12906: [RFC] Bug identification("issue_hash") change for CmpRuns.py

2015-09-29 Thread Anna Zaks via cfe-commits
zaks.anna requested changes to this revision. zaks.anna added a comment. This revision now requires changes to proceed. I find it very confusing to have 2 different fields for bug identification - issue_hash and BugId. Why do we need to treat the HTML reports differently from plist files? http

r248867 - Promote a warning on ill-formed code (redeclaration missing an exception

2015-09-29 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Sep 29 19:48:50 2015 New Revision: 248867 URL: http://llvm.org/viewvc/llvm-project?rev=248867&view=rev Log: Promote a warning on ill-formed code (redeclaration missing an exception specification) to an error. No compiler other than Clang seems to allow this, and it doesn't

Re: [PATCH] D12761: MPI-Checker patch for Clang Static Analyzer

2015-09-29 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. We gave a talk about building checkers a while back; even though it does not talk about the bug reporter visitors, it might be worth watching if you haven't already seen it. http://llvm.org/devmtg/2012-11/ Building a Checker in 24 hours Comment at:

[PATCH] D13276: Don't adjust field offsets for external record layouts

2015-09-29 Thread Zachary Turner via cfe-commits
zturner created this revision. zturner added a reviewer: majnemer. zturner added a subscriber: cfe-commits. injecting the VBPtr always behaves this way, but injecting the VFPtr was not. This patch fixes that. http://reviews.llvm.org/D13276 Files: lib/AST/RecordLayoutBuilder.cpp Index: lib/A

Re: r246985 - Compute and preserve alignment more faithfully in IR-generation.

2015-09-29 Thread John McCall via cfe-commits
> On Sep 27, 2015, at 5:56 PM, Joerg Sonnenberger > wrote: > On Tue, Sep 08, 2015 at 08:06:00AM -, John McCall via cfe-commits wrote: >> Author: rjmccall >> Date: Tue Sep 8 03:05:57 2015 >> New Revision: 246985 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=246985&view=rev >> Log: >> Co

r248862 - Don't crash when a reserved global placement operator new is paired

2015-09-29 Thread John McCall via cfe-commits
Author: rjmccall Date: Tue Sep 29 18:55:17 2015 New Revision: 248862 URL: http://llvm.org/viewvc/llvm-project?rev=248862&view=rev Log: Don't crash when a reserved global placement operator new is paired with a non-reserved operator delete in a new-expression. Modified: cfe/trunk/lib/CodeGen/C

Re: [PATCH] D13099: [Analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods (PR 21606)

2015-09-29 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. > I think I understand, but to clarify: > The fields that shouldn't be invalidated should still be added to > ValuesToInvalidate, but with > RegionAndSymbolInvalidationTraits::TK_PreserveContents set. This will result > in > checkConstPointerEscape being called

Re: [PATCH] D12839: Extend MoveConstructorInitCheck to also flag constructor arguments passed by value and can be moved assigned to fields.

2015-09-29 Thread Felix Berger via cfe-commits
flx updated this revision to Diff 36049. flx marked 3 inline comments as done. flx added a comment. I had to convert the line endings of mis-move-constructor-init.cpp to unix style otherwise the test would not correctly work. This took a long time to debug since the checks failed complaining tha

Re: [PATCH] D13171: [CUDA] Added a wrapper header for inclusion of stock CUDA headers.

2015-09-29 Thread Artem Belevich via cfe-commits
tra updated this revision to Diff 36048. tra added a comment. Renamed wrapper to cuda_runtime.h Similarly to nvcc, automatically add "-include cuda_runtime.h" to CC1 invocations unless -nocudainc is specified. http://reviews.llvm.org/D13171 Files: lib/Driver/ToolChains.cpp lib/Headers/CMak

Re: r248826 - CGDebugInfo: Don't reuse a reference into a DenseMap if the DenseMap may

2015-09-29 Thread David Blaikie via cfe-commits
On Tue, Sep 29, 2015 at 4:01 PM, Adrian Prantl wrote: > > On Sep 29, 2015, at 3:52 PM, David Blaikie wrote: > > > > On Tue, Sep 29, 2015 at 1:44 PM, Adrian Prantl via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: adrian >> Date: Tue Sep 29 15:44:46 2015 >> New Revision: 248826

Re: r248826 - CGDebugInfo: Don't reuse a reference into a DenseMap if the DenseMap may

2015-09-29 Thread Adrian Prantl via cfe-commits
> On Sep 29, 2015, at 3:52 PM, David Blaikie wrote: > > > > On Tue, Sep 29, 2015 at 1:44 PM, Adrian Prantl via cfe-commits > mailto:cfe-commits@lists.llvm.org>> wrote: > Author: adrian > Date: Tue Sep 29 15:44:46 2015 > New Revision: 248826 > > URL: http://llvm.org/viewvc/llvm-project?rev=24

Re: r248826 - CGDebugInfo: Don't reuse a reference into a DenseMap if the DenseMap may

2015-09-29 Thread David Blaikie via cfe-commits
On Tue, Sep 29, 2015 at 1:44 PM, Adrian Prantl via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: adrian > Date: Tue Sep 29 15:44:46 2015 > New Revision: 248826 > > URL: http://llvm.org/viewvc/llvm-project?rev=248826&view=rev > Log: > CGDebugInfo: Don't reuse a reference into a DenseMa

r248836 - Move functions declared in ExprObjC.h into ExprObjC.cpp.

2015-09-29 Thread James Y Knight via cfe-commits
Author: jyknight Date: Tue Sep 29 17:28:44 2015 New Revision: 248836 URL: http://llvm.org/viewvc/llvm-project?rev=248836&view=rev Log: Move functions declared in ExprObjC.h into ExprObjC.cpp. r51703 back in 2008 split out all the ObjC Expr subclasses from Expr.h to a new ExprObjC.h file, but fail

[PATCH] Keep the IfStmt node even if the condition is invalid

2015-09-29 Thread Olivier Goffart via cfe-commits
Hi, Please review the attached patch. It does not discard the full 'if' statement if the condition is invalid. This is quite useful for IDE's or other tools which would like to recover as much as possible even if there are a few errors in the code, and discarding the full 'if' bodies is unfor

Re: [PATCH] D13249: Divide TraverseInitListExpr to a different function for each form.

2015-09-29 Thread Angel Garcia via cfe-commits
angelgarcia added a comment. Yes, it breaks a few tests: FAIL: Clang :: Analysis/operator-calls.cpp (598 of 8596) FAIL: Clang :: Analysis/misc-ps-region-store.cpp (599 of 8596) FAIL: Clang :: Analysis/array-struct-region.c (602 of 8596) http://reviews.llvm.org/D13249 __

Re: [PATCH] D13187: [Clang] Fix Clang-tidy modernize-use-nullptr warnings in headers and generated files; other minor cleanups.

2015-09-29 Thread Hans Wennborg via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL248828: Fix Clang-tidy modernize-use-nullptr warnings in headers and generated files… (authored by hans). Changed prior to commit: http://reviews.llvm.org/D13187?vs=35789&id=36034#toc Repository: rL

r248828 - Fix Clang-tidy modernize-use-nullptr warnings in headers and generated files; other minor cleanups.

2015-09-29 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Sep 29 15:56:43 2015 New Revision: 248828 URL: http://llvm.org/viewvc/llvm-project?rev=248828&view=rev Log: Fix Clang-tidy modernize-use-nullptr warnings in headers and generated files; other minor cleanups. By Eugene Zelenko! Differential Revision: http://reviews.llvm.or

Re: [PATCH] D13187: [Clang] Fix Clang-tidy modernize-use-nullptr warnings in headers and generated files; other minor cleanups.

2015-09-29 Thread Hans Wennborg via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. lgtm Repository: rL LLVM http://reviews.llvm.org/D13187 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

r248826 - CGDebugInfo: Don't reuse a reference into a DenseMap if the DenseMap may

2015-09-29 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Tue Sep 29 15:44:46 2015 New Revision: 248826 URL: http://llvm.org/viewvc/llvm-project?rev=248826&view=rev Log: CGDebugInfo: Don't reuse a reference into a DenseMap if the DenseMap may be modified in between. (NFC) Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Modified

Re: [PATCH] D12793: Three new overflow builtins with generic argument types

2015-09-29 Thread David Grayson via cfe-commits
DavidEGrayson added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:303 @@ +302,3 @@ +// the first element is the bit width of an integer type and the second element +// is true if the integer type is signed. +static struct WidthAndSignedness Sorry, I need

[PATCH] D13263: Addition of __attribute__((pass_object_size)) to Clang

2015-09-29 Thread George Burgess IV via cfe-commits
george.burgess.iv created this revision. george.burgess.iv added a reviewer: rsmith. george.burgess.iv added subscribers: cfe-commits, rsmith. This was a fun patch :) This patch adds the parameter attribute `pass_object_size` to Clang. The design doc for this attribute is available here: https:

r248815 - Forgot to remove a FIXME that has been fixed. NFC.

2015-09-29 Thread Nemanja Ivanovic via cfe-commits
Author: nemanjai Date: Tue Sep 29 13:20:59 2015 New Revision: 248815 URL: http://llvm.org/viewvc/llvm-project?rev=248815&view=rev Log: Forgot to remove a FIXME that has been fixed. NFC. Modified: cfe/trunk/lib/Headers/altivec.h Modified: cfe/trunk/lib/Headers/altivec.h URL: http://llvm.org/

r248813 - Addition of interfaces the FE to conform to Table A-2 of ELF V2 ABI V1.1

2015-09-29 Thread Nemanja Ivanovic via cfe-commits
Author: nemanjai Date: Tue Sep 29 13:13:34 2015 New Revision: 248813 URL: http://llvm.org/viewvc/llvm-project?rev=248813&view=rev Log: Addition of interfaces the FE to conform to Table A-2 of ELF V2 ABI V1.1 This patch corresponds to review: http://reviews.llvm.org/D13190 Implemented the followi

Re: [PATCH] D13190: Addition of interfaces the FE to conform to Table A-2 of ELF V2 ABI V1.1

2015-09-29 Thread Nemanja Ivanovic via cfe-commits
nemanjai closed this revision. nemanjai added a comment. Committed revision 248813. Repository: rL LLVM http://reviews.llvm.org/D13190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

r248808 - Added MSVC natvis visualizers for Type and QualType. These could probably be improved, but anything is better than staring at hex values in the debugger.

2015-09-29 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Sep 29 12:32:36 2015 New Revision: 248808 URL: http://llvm.org/viewvc/llvm-project?rev=248808&view=rev Log: Added MSVC natvis visualizers for Type and QualType. These could probably be improved, but anything is better than staring at hex values in the debugger. Mod

Re: [PATCH] D13249: Divide TraverseInitListExpr to a different function for each form.

2015-09-29 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: include/clang/AST/RecursiveASTVisitor.h:2097 @@ +2096,3 @@ +template +bool RecursiveASTVisitor::TraverseInitListExpr(InitListExpr *S) { + TRY_TO(TraverseSyntacticInitListExpr(S)); Did you try putting an assert(S->isSeman

Re: [PATCH] D12492: [Clang-Format] Add AlwaysBreakBeforeElse and AlwaysBreakBeforeCatch Style to avoid cuddled else/catch

2015-09-29 Thread Daniel Jasper via cfe-commits
djasper added a comment. What do you mean by "this looks good"? http://reviews.llvm.org/D12492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12492: [Clang-Format] Add AlwaysBreakBeforeElse and AlwaysBreakBeforeCatch Style to avoid cuddled else/catch

2015-09-29 Thread Paul Hoad via cfe-commits
MyDeveloperDay added a comment. I don't have permission to commit This looks good though. http://reviews.llvm.org/D12492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r248807 - Fix typo.

2015-09-29 Thread Yaron Keren via cfe-commits
Author: yrnkrn Date: Tue Sep 29 11:51:08 2015 New Revision: 248807 URL: http://llvm.org/viewvc/llvm-project?rev=248807&view=rev Log: Fix typo. Modified: cfe/trunk/lib/Lex/Preprocessor.cpp Modified: cfe/trunk/lib/Lex/Preprocessor.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Le

r248805 - Thread Safety Analysis: allow capability attribute on unions.

2015-09-29 Thread DeLesley Hutchins via cfe-commits
Author: delesley Date: Tue Sep 29 11:24:18 2015 New Revision: 248805 URL: http://llvm.org/viewvc/llvm-project?rev=248805&view=rev Log: Thread Safety Analysis: allow capability attribute on unions. Modified: cfe/trunk/include/clang/Basic/Attr.td cfe/trunk/lib/Sema/SemaDeclAttr.cpp cfe/

Re: [PATCH] D12362: [clang-format] Add support of consecutive declarations alignment

2015-09-29 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: unittests/Format/FormatTest.cpp:8699 @@ +8698,3 @@ + Alignment)); + Alignment.AlignConsecutiveAssignments = true; + verifyFormat("float something = 2000;\n" berenm wrote: > djasper wrote: > > Can

Re: [PATCH] D12362: [clang-format] Add support of consecutive declarations alignment

2015-09-29 Thread Beren Minor via cfe-commits
berenm added inline comments. Comment at: unittests/Format/FormatTest.cpp:8699 @@ +8698,3 @@ + Alignment)); + Alignment.AlignConsecutiveAssignments = true; + verifyFormat("float something = 2000;\n" djasper wrote: > Can you add a case (unl

[PATCH] D13249: Divide TraverseInitListExpr to a different function for each form.

2015-09-29 Thread Angel Garcia via cfe-commits
angelgarcia created this revision. angelgarcia added a reviewer: klimek. angelgarcia added subscribers: alexfh, cfe-commits. create TraverseSyntacticInitListExpr and TraverseSemanticInitListExpr. http://reviews.llvm.org/D13249 Files: include/clang/AST/RecursiveASTVisitor.h Index: include/clan

r248803 - Thread Safety Analysis: fix before/after checks so that they work on global

2015-09-29 Thread DeLesley Hutchins via cfe-commits
Author: delesley Date: Tue Sep 29 10:25:51 2015 New Revision: 248803 URL: http://llvm.org/viewvc/llvm-project?rev=248803&view=rev Log: Thread Safety Analysis: fix before/after checks so that they work on global variables as well member variables. Modified: cfe/trunk/include/clang/Analysis/An

Re: [PATCH] D12362: [clang-format] Add support of consecutive declarations alignment

2015-09-29 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/WhitespaceManager.cpp:270 @@ +269,3 @@ + if (Changes[i].NewlinesBefore > 1 || !FoundDeclarationOnLine || + FoundLeftBraceOnLine || FoundLeftParenOnLine) { +AlignSequence(); Generally, we d

Re: [PATCH] D12492: [Clang-Format] Add AlwaysBreakBeforeElse and AlwaysBreakBeforeCatch Style to avoid cuddled else/catch

2015-09-29 Thread Daniel Jasper via cfe-commits
djasper added a comment. I think r248802 should make this mostly obsolete, but feel free to add the tests :-). http://reviews.llvm.org/D12492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

Re: [PATCH] D13210: Make brace styles more configurable

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

r248802 - clang-format: Add a new brace style "custom" as well as flags to

2015-09-29 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Sep 29 09:57:55 2015 New Revision: 248802 URL: http://llvm.org/viewvc/llvm-project?rev=248802&view=rev Log: clang-format: Add a new brace style "custom" as well as flags to control the individual braces. The existing choices for brace wrapping are now merely presets for t

Re: [PATCH] D13168: [OpenCL] OpenCL2.0 - Apply default address space rules

2015-09-29 Thread Pekka Jääskeläinen via cfe-commits
pekka.jaaskelainen requested changes to this revision. This revision now requires changes to proceed. Comment at: lib/Sema/SemaType.cpp:6166 @@ -6166,2 +6165,3 @@ attr.setUsedAsTypeAttr(); + hasOpenCLAddressSpace = true; break; Should this be be

Re: [PATCH] D13081: [clang-tidy] Implement FixitHints for identifier references in IdentifierNamingCheck

2015-09-29 Thread Beren Minor via cfe-commits
berenm marked 3 inline comments as done. berenm added a comment. http://reviews.llvm.org/D13081 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13081: [clang-tidy] Implement FixitHints for identifier references in IdentifierNamingCheck

2015-09-29 Thread Beren Minor via cfe-commits
berenm updated this revision to Diff 35974. berenm added a comment. Fix arcanist messup... http://reviews.llvm.org/D13081 Files: clang-tidy/readability/IdentifierNamingCheck.cpp test/clang-tidy/Inputs/readability-identifier-naming/system/system-header.h test/clang-tidy/Inputs/readability-

Re: [PATCH] D13081: [clang-tidy] Implement FixitHints for identifier references in IdentifierNamingCheck

2015-09-29 Thread Beren Minor via cfe-commits
berenm updated this revision to Diff 35972. berenm added a comment. Address the latest comments, as well as useless code removal. - Only the start of the token range is stored, so there is no need to care about the end of the range. Remove the code that was trying to match the end of the range

[PATCH] D13246: Fix bug in modernize-use-nullptr.

2015-09-29 Thread Angel Garcia via cfe-commits
angelgarcia created this revision. angelgarcia added a reviewer: klimek. angelgarcia added subscribers: alexfh, cfe-commits. https://llvm.org/bugs/show_bug.cgi?id=24960 modernize-use-nullptr would hit an assertion in some cases involving macros and initializer lists, due to finding a node with m

[clang-tools-extra] r248797 - Some of the build bots are unhappy about the overload of the global operator new() because it was accidentally marked noexcept instead of noexcept(false). This should cor

2015-09-29 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Sep 29 09:26:00 2015 New Revision: 248797 URL: http://llvm.org/viewvc/llvm-project?rev=248797&view=rev Log: Some of the build bots are unhappy about the overload of the global operator new() because it was accidentally marked noexcept instead of noexcept(false). Th

Re: [PATCH] D13081: [clang-tidy] Implement FixitHints for identifier references in IdentifierNamingCheck

2015-09-29 Thread Beren Minor via cfe-commits
berenm added inline comments. Comment at: clang-tidy/readability/IdentifierNamingCheck.cpp:545 @@ +544,3 @@ + if (const auto *Loc = Result.Nodes.getNodeAs("typeLoc")) { +if (const auto &Ref = Loc->getAs()) { + addUsage(NamingCheckFailures, Ref.getDecl(), Loc->getSourceRa

[clang-tools-extra] r248794 - Silencing bot failures a more creative and definitive way.

2015-09-29 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Sep 29 08:38:00 2015 New Revision: 248794 URL: http://llvm.org/viewvc/llvm-project?rev=248794&view=rev Log: Silencing bot failures a more creative and definitive way. Modified: clang-tools-extra/trunk/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp

[clang-tools-extra] r248792 - Hopefully silencing some built bot warnings. Note, this should be unsigned long instead of unsigned int, but then *other* builds start to fail because of duplicate redefi

2015-09-29 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Sep 29 08:20:26 2015 New Revision: 248792 URL: http://llvm.org/viewvc/llvm-project?rev=248792&view=rev Log: Hopefully silencing some built bot warnings. Note, this should be unsigned long instead of unsigned int, but then *other* builds start to fail because of dup

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-29 Thread Aaron Ballman via cfe-commits
aaron.ballman marked 3 inline comments as done. aaron.ballman added a comment. In http://reviews.llvm.org/D13071#255446, @alexfh wrote: > Looks good with a few comments. > > Thanks for the new check! Do you think whether this could be a compiler > warning some day? I thought about implementing

[clang-tools-extra] r248791 - Adding a checker (misc-new-delete-overloads) that detects mismatched overloads of operator new and operator delete. Corresponds to the CERT C++ secure coding rule: https:

2015-09-29 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Sep 29 08:12:21 2015 New Revision: 248791 URL: http://llvm.org/viewvc/llvm-project?rev=248791&view=rev Log: Adding a checker (misc-new-delete-overloads) that detects mismatched overloads of operator new and operator delete. Corresponds to the CERT C++ secure coding

Re: [PATCH] D12945: [PATCH] Add checker for objects that should not be value types

2015-09-29 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/misc/NonCopyableObjects.cpp:88 @@ +87,3 @@ + else if (E) +diag(E->getExprLoc(), "expression has suspicious type '%0'") +<< BD->getName(); alexfh wrote: > What's a "suspicious type" and why sh

[libclc] r248780 - Implement tanh builtin

2015-09-29 Thread Niels Ole Salscheider via cfe-commits
Author: olesalscheider Date: Tue Sep 29 01:39:09 2015 New Revision: 248780 URL: http://llvm.org/viewvc/llvm-project?rev=248780&view=rev Log: Implement tanh builtin This is a port from the AMD builtin library. Added: libclc/trunk/generic/include/clc/math/tanh.h libclc/trunk/generic/includ

Re: [PATCH] D12945: [PATCH] Add checker for objects that should not be value types

2015-09-29 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/NonCopyableObjects.cpp:88 @@ +87,3 @@ + else if (E) +diag(E->getExprLoc(), "expression has suspicious type '%0'") +<< BD->getName(); What's a "suspicious type" and why should the user know abou

Re: [PATCH] D13081: [clang-tidy] Implement FixitHints for identifier references in IdentifierNamingCheck

2015-09-29 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/readability/IdentifierNamingCheck.cpp:537 @@ +536,3 @@ + return; +Range.setBegin(Range.getBegin().getLocWithOffset(1)); + There are cases where this will fail (`~ ClassName()` or `??-ClassName` or `~\C

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-29 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good with a few comments. Thanks for the new check! Do you think whether this could be a compiler warning some day? Comment at: clang-tidy/misc/NewDeleteOverloadsCheck

[clang-tools-extra] r248785 - Create modernize-make-unique check.

2015-09-29 Thread Angel Garcia Gomez via cfe-commits
Author: angelgarcia Date: Tue Sep 29 04:36:41 2015 New Revision: 248785 URL: http://llvm.org/viewvc/llvm-project?rev=248785&view=rev Log: Create modernize-make-unique check. Summary: create a check that replaces 'std::unique_ptr(new type(args...))' with 'std::make_unique(args...)'. It was on the

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-29 Thread Angel Garcia via cfe-commits
angelgarcia updated this revision to Diff 35949. angelgarcia added a comment. Add a comment. http://reviews.llvm.org/D13166 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/MakeUniqueCheck.cpp clang-tidy/modernize/MakeUniqueCheck.h clang-tidy/modernize/ModernizeTidyModule

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-29 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. apart from the comment, LG Comment at: clang-tidy/modernize/MakeUniqueCheck.cpp:67-70 @@ +66,6 @@ + SourceLocation ConstructCallEnd; + if (LAngle == StringRef::npos) { +

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

2015-09-29 Thread Beren Minor via cfe-commits
berenm updated this revision to Diff 35946. berenm added a comment. Update the diff with the ProvideAutoLoad attribute. Thanks @MyDeveloperDay for the review and tips! http://reviews.llvm.org/D12407 Files: tools/clang-format-vs/ClangFormat/ClangFormat.csproj tools/clang-format-vs/ClangForm

Re: [PATCH] D12633: Implement ACLE 2.0 macros of chapters 6.6 and 6.7 for [ARM] and [Aarch64] targets

2015-09-29 Thread Alexandros Lamprineas via cfe-commits
labrinea added a comment. ping http://reviews.llvm.org/D12633 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13228: clang-format: Extend #include sorting functionality

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

r248782 - clang-format: Extend #include sorting functionality

2015-09-29 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Sep 29 02:53:08 2015 New Revision: 248782 URL: http://llvm.org/viewvc/llvm-project?rev=248782&view=rev Log: clang-format: Extend #include sorting functionality Recognize the main module header as well as different #include categories. This should now mimic the behavior o

Re: [PATCH] D13210: Make brace styles more configurable

2015-09-29 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/D13210 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D13228: clang-format: Extend #include sorting functionality

2015-09-29 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/D13228 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D13228: clang-format: Extend #include sorting functionality

2015-09-29 Thread Daniel Jasper via cfe-commits
djasper marked an inline comment as done. Comment at: lib/Format/Format.cpp:1677 @@ +1676,3 @@ +unsigned Category; +if (LookForMainHeader &&! Matches[1].startswith("<")) { + Category = 0; klimek wrote: > Run clang-format. > > Also, should

Re: [PATCH] D13228: clang-format: Extend #include sorting functionality

2015-09-29 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: lib/Format/Format.cpp:1665 @@ +1664,3 @@ + + // Create pre-compile regular expressions for the #include categories. + SmallVector CategoryRegexs; pre-compiled Comment at: lib/Format/Format.cpp:1677 @@ +

Re: [PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-29 Thread Dan Gohman via cfe-commits
sunfish added a comment. > In any case, that's not how clang deal with usage or even internal unexpected > errors. It asserts, print error messages but does not crash on purpose. > Having clang crash here does not seem like a good solution and will result in > this issue continue to surface aga