Re: [PATCH] D16764: [clang-tidy] Move incorrect-roundings to upstream.

2016-02-07 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. Thanks! http://reviews.llvm.org/D16764 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

Re: [PATCH] D16873: Refactor MemRegionManager::getVarRegion to call two new functions, improving readability

2016-02-07 Thread Alexander Riccio via cfe-commits
ariccio added a comment. All clear. Ready for landing? http://reviews.llvm.org/D16873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16873: Refactor MemRegionManager::getVarRegion to call two new functions, improving readability

2016-02-07 Thread Alexander Riccio via cfe-commits
ariccio updated this revision to Diff 47161. ariccio added a comment. Responded to comments (fixed the bug noticed in review), and changed names. http://reviews.llvm.org/D16873 Files: llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h llvm/tools/clang/lib/StaticAna

Re: [PATCH] D16873: Refactor MemRegionManager::getVarRegion to call two new functions, improving readability

2016-02-07 Thread Alexander Riccio via cfe-commits
ariccio marked 3 inline comments as done. ariccio added a comment. Alrighty, will update the diff momentarily. http://reviews.llvm.org/D16873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

Re: [PATCH] D13357: [Concepts] Diagnose when 'concept' is specified on a specialization

2016-02-07 Thread Nathan Wilson via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260074: [Concepts] Implement a portion of Concepts TS[dcl.spec.concept]p1 by (authored by nwilson). Changed prior to commit: http://reviews.llvm.org/D13357?vs=46863&id=47160#toc Repository: rL LLVM

r260074 - [Concepts] Implement a portion of Concepts TS[dcl.spec.concept]p1 by

2016-02-07 Thread Nathan Wilson via cfe-commits
Author: nwilson Date: Sun Feb 7 23:34:00 2016 New Revision: 260074 URL: http://llvm.org/viewvc/llvm-project?rev=260074&view=rev Log: [Concepts] Implement a portion of Concepts TS[dcl.spec.concept]p1 by diagnosing when 'concept' is specified on a function or template specialization. Since a conce

Re: [PATCH] D16873: Refactor MemRegionManager::getVarRegion to call two new functions, improving readability

2016-02-07 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. I think Aleksei is right and I was wrong. If you follow his advice and move the call to getStackOrCaptureRegionForDeclContext() to getVarRegion() and then pass the StackFrameContext to what you currently name "getMemRegionStaticLocal" then both methods have the very

Re: [PATCH] D16517: ClangTidy check to flag uninitialized builtin and pointer fields.

2016-02-07 Thread Felix Berger via cfe-commits
flx updated this revision to Diff 47159. flx marked 12 inline comments as done. flx added a comment. Thanks for the review, Alex! This is an intermediate updated patch that addresses your detailed comments. I'll rename the whole check in the next couple of days and will re-upload again. http:/

[libcxx] r260071 - build: silence warnings in in-tree build

2016-02-07 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Feb 7 21:50:18 2016 New Revision: 260071 URL: http://llvm.org/viewvc/llvm-project?rev=260071&view=rev Log: build: silence warnings in in-tree build Avoid the developer warnings from cmake when configuring libc++ as part of the LLVM layout. Setup the custom macro paths

Re: [PATCH] D16308: clang-tidy Enhance readability-simplify-boolean-expr check to handle implicit conversions of integral types to bool and member pointers

2016-02-07 Thread Richard via cfe-commits
LegalizeAdulthood added a comment. It's been almost a week. Is there some reason this hasn't been committed yet? http://reviews.llvm.org/D16308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

Re: [PATCH] D16873: Refactor MemRegionManager::getVarRegion to call two new functions, improving readability

2016-02-07 Thread Alexander Riccio via cfe-commits
ariccio added a comment. Bump? Comment at: llvm/tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp:792 @@ -783,12 +791,3 @@ -// Treat other globals as GlobalInternal unless they are constants. -} else { - QualType GQT = D->getType(); - const Type *GT = GQT.get

Re: [PATCH] D16529: [clang-tidy] Add modernize-raw-string-literal check

2016-02-07 Thread Richard via cfe-commits
LegalizeAdulthood updated this revision to Diff 47157. LegalizeAdulthood marked 2 inline comments as done. LegalizeAdulthood added a comment. Update from review comments. Added a bunch of test cases for non-printing characters, templates and macros. Removed string literals containing newline (`\

Re: [PATCH] D16529: [clang-tidy] Add modernize-raw-string-literal check

2016-02-07 Thread Richard via cfe-commits
LegalizeAdulthood marked 5 inline comments as done. Comment at: clang-tidy/modernize/RawStringLiteralCheck.cpp:96 @@ +95,3 @@ + std::string Delimiter; + for (int Counter = 0; containsDelimiter(Bytes, Delimiter); ++Counter) { +Delimiter = (Counter == 0) ? "lit" : "lit" + std:

r260066 - [analyzer] Avoid crash when attempting to evaluate binary operation on LazyCompoundVal.

2016-02-07 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Sun Feb 7 18:28:24 2016 New Revision: 260066 URL: http://llvm.org/viewvc/llvm-project?rev=260066&view=rev Log: [analyzer] Avoid crash when attempting to evaluate binary operation on LazyCompoundVal. Instead, return UnknownValue if either operand is a nonloc::LazyCompound

[clang-tools-extra] r260065 - [clang-tidy] Reformatted docs + minor updates

2016-02-07 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Sun Feb 7 18:19:29 2016 New Revision: 260065 URL: http://llvm.org/viewvc/llvm-project?rev=260065&view=rev Log: [clang-tidy] Reformatted docs + minor updates Modified: clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp clang-tools-extra/trunk/docs/clang-tidy/in

r260062 - [MS ABI] Don't emit RTTI descriptors for dllimport vtables

2016-02-07 Thread David Majnemer via cfe-commits
Author: majnemer Date: Sun Feb 7 16:42:05 2016 New Revision: 260062 URL: http://llvm.org/viewvc/llvm-project?rev=260062&view=rev Log: [MS ABI] Don't emit RTTI descriptors for dllimport vtables A dllimport'd vtable always points one past the RTTI data, this means that the initializer will never e

r260060 - clang-format: [JS] Don't count shortened object literals as blocks.

2016-02-07 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Sun Feb 7 16:17:13 2016 New Revision: 260060 URL: http://llvm.org/viewvc/llvm-project?rev=260060&view=rev Log: clang-format: [JS] Don't count shortened object literals as blocks. Before: f({a}, () => { g(); // }); After: f({a}, () => { g(); // });

Re: [PATCH] D16951: [MS ABI] dllimport'd class cannot have constexpr ctors

2016-02-07 Thread Nico Weber via cfe-commits
thakis added a comment. Cool, lgtm. Maybe we'll have to downgrade this to a warning eventually since cl allows it, but for now let's see how this goes. Comment at: test/SemaCXX/dllimport.cpp:1269 @@ +1268,3 @@ + virtual ~PR26506_test2() {} + constexpr PR26506_test2() {} // ex

Re: [PATCH] D16951: [MS ABI] dllimport'd class cannot have constexpr ctors

2016-02-07 Thread David Majnemer via cfe-commits
majnemer added inline comments. Comment at: test/SemaCXX/dllimport.cpp:1262 @@ -1261,1 +1261,3 @@ +struct __declspec(dllimport) PR26506_test1 { + virtual ~PR26506_test1() {} thakis wrote: > cl.exe seems to accept this – do you know how they do that? Do they jus

r260058 - Make nozlibcompress.c pass and reenable it.

2016-02-07 Thread Nico Weber via cfe-commits
Author: nico Date: Sun Feb 7 15:32:17 2016 New Revision: 260058 URL: http://llvm.org/viewvc/llvm-project?rev=260058&view=rev Log: Make nozlibcompress.c pass and reenable it. Modified: cfe/trunk/test/Driver/nozlibcompress.c Modified: cfe/trunk/test/Driver/nozlibcompress.c URL: http://llvm.o

r260057 - clang-format: [JS] Support @see annotations in JSDoc comments in Google

2016-02-07 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Sun Feb 7 15:22:16 2016 New Revision: 260057 URL: http://llvm.org/viewvc/llvm-project?rev=260057&view=rev Log: clang-format: [JS] Support @see annotations in JSDoc comments in Google style. Modified: cfe/trunk/lib/Format/Format.cpp Modified: cfe/trunk/lib/Format/Format

r260056 - Disable failing nozlibcompress.c

2016-02-07 Thread Nico Weber via cfe-commits
Author: nico Date: Sun Feb 7 15:00:17 2016 New Revision: 260056 URL: http://llvm.org/viewvc/llvm-project?rev=260056&view=rev Log: Disable failing nozlibcompress.c This test hasn't been running after it was added until r259976 made "REQUIRES: nozlib" work, and now that the test runs it fails. Mo

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-07 Thread H.J. Lu via cfe-commits
On Sun, Feb 7, 2016 at 12:48 PM, Florian Weimer wrote: > * H. J. Lu: > >>> I tested GCC 5.3.1 and Clang 3.5.0. >>> >>> GCC Clang >>> s0 non-emptynon-empty >>> s1 non-emptyempty >>> s2 non-emptyempty >>> s3 emptyempty >>> s4 emptyempty >>> s5 no

Re: [PATCH] D16786: [Clang-tidy] Make modernize-redundant-void-arg working with included files

2016-02-07 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko abandoned this revision. Eugene.Zelenko added a comment. Obsoleted by http://reviews.llvm.org/D16953. Repository: rL LLVM http://reviews.llvm.org/D16786 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-07 Thread Florian Weimer via cfe-commits
* H. J. Lu: >> I tested GCC 5.3.1 and Clang 3.5.0. >> >> GCC Clang >> s0 non-emptynon-empty >> s1 non-emptyempty >> s2 non-emptyempty >> s3 emptyempty >> s4 emptyempty >> s5 non-emptyempty >> >> I believe s3, s4, s5 are non-empty according

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-07 Thread H.J. Lu via cfe-commits
On Sun, Feb 7, 2016 at 12:08 PM, Florian Weimer wrote: > * H. J. Lu: > >>> Any syntactical array argument (at the C level) is should be passed as >>> a pointer. The language appears to change that. >> >> I didn't use aggregate so that array is excluded here. >> >>> For 2., static members and non-

Re: r258524 - Merge templated static member variables, fixes http://llvm.org/pr26179.

2016-02-07 Thread Vassil Vassilev via cfe-commits
Improve a comment. --Vassil On 07/02/16 20:48, Vassil Vassilev wrote: Would this patch be any better? --Vassil On 05/02/16 21:49, Richard Smith wrote: This belongs in ASTDeclReader::attachPreviousDecl[Impl]. That's where we propagate data that's supposed to be consistent across a redeclaration

Re: r249542 - clang-format: Hopefully fix code blocks in docs.

2016-02-07 Thread Nico Weber via cfe-commits
http://lab.llvm.org:8011/builders/clang-sphinx-docs is still broken: http://lab.llvm.org:8011/builders/clang-sphinx-docs FAILED: cd /home/llvmbb/llvm-build-dir/clang-sphinx-docs/llvm/build/tools/clang/docs && /usr/bin/sphinx-build -b html -d /home/llvmbb/llvm-build-dir/clang-sphinx-docs/llvm/build

Re: [PATCH] D16947: [PGO] assignment operator does not get profile data

2016-02-07 Thread David Li via cfe-commits
davidxl updated this revision to Diff 47150. davidxl added a comment. Updated test case. Another test case in profile-rt (pending) is : http://reviews.llvm.org/D16974 http://reviews.llvm.org/D16947 Files: lib/CodeGen/CGClass.cpp test/Profile/def-assignop.cpp Index: test/Profile/def-assign

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-07 Thread Florian Weimer via cfe-commits
* H. J. Lu: >> Any syntactical array argument (at the C level) is should be passed as >> a pointer. The language appears to change that. > > I didn't use aggregate so that array is excluded here. > >> For 2., static members and non-data members do not count. > > They do count here. That is why I

Re: [PATCH] D16973: Fix ICE with constexpr and friend functions

2016-02-07 Thread Olivier Goffart via cfe-commits
ogoffart updated this revision to Diff 47146. ogoffart added a comment. Optimized by avoiding repeated call to getBody http://reviews.llvm.org/D16973 Files: lib/AST/ExprConstant.cpp test/SemaCXX/constant-expression-cxx11.cpp Index: test/SemaCXX/constant-expression-cxx11.cpp ===

Re: r258524 - Merge templated static member variables, fixes http://llvm.org/pr26179.

2016-02-07 Thread Vassil Vassilev via cfe-commits
Would this patch be any better? --Vassil On 05/02/16 21:49, Richard Smith wrote: This belongs in ASTDeclReader::attachPreviousDecl[Impl]. That's where we propagate data that's supposed to be consistent across a redeclaration chain from earlier declarations to later ones. There's another wrinkl

Re: [PATCH] D16970: scoped alloc construct: adds basic tests

2016-02-07 Thread Masud Rahman via cfe-commits
frutiger updated this revision to Diff 47143. frutiger added a comment. Fixes include guards. http://reviews.llvm.org/D16970 Files: test/std/utilities/allocator.adaptor/scoped.adaptor.operators/construct.pass.cpp test/support/instrumentingallocators.h Index: test/support/instrumentingallo

Re: [PATCH] D16970: scoped alloc construct: adds basic tests

2016-02-07 Thread Alisdair Meredith via cfe-commits
AlisdairM added a subscriber: AlisdairM. Comment at: test/support/instrumentingallocators.h:25 @@ +24,3 @@ +~Instrumentation() { +assert(allocs_.empty()); +} Perhaps a loop, showing what leaked? for (auto const& alloc : allocs_) { std::cout <<

[PATCH] D16970: scoped alloc construct: adds basic tests

2016-02-07 Thread Masud Rahman via cfe-commits
frutiger created this revision. frutiger added reviewers: EricWF, mclow.lists. frutiger added a subscriber: cfe-commits. This commit introduces a new supporting allocator 'IA1' in 'support/instrumentingallocators.h' which tracks allocations and deallocations. This commit also introduces a new tes

Re: [PATCH] D16970: scoped alloc construct: adds basic tests

2016-02-07 Thread Masud Rahman via cfe-commits
frutiger updated this revision to Diff 47141. frutiger added a comment. Added `operator==` and `operator!=`. http://reviews.llvm.org/D16970 Files: test/std/utilities/allocator.adaptor/scoped.adaptor.operators/construct.pass.cpp test/support/instrumentingallocators.h Index: test/support/in

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-07 Thread H.J. Lu via cfe-commits
On Sun, Feb 7, 2016 at 11:36 AM, H.J. Lu wrote: > On Sun, Feb 7, 2016 at 11:31 AM, Florian Weimer wrote: >> * H. J. Lu: >> >>> I am proposing to update Intel386, x86-64 and IA MCU psABIs to specify >>> how to pass/return empty struct: >>> >>> 1. "collection". A collection is a structure, union o

[PATCH] D16973: Fix ICE with constexpr and friend functions

2016-02-07 Thread Olivier Goffart via cfe-commits
ogoffart created this revision. ogoffart added reviewers: rsmith, cfe-commits. Fix a crash while parsing this code: struct X { friend constexpr int foo(X*) { return 12; } static constexpr int j = foo(static_cast(nullptr)); }; I also added a test for the static fu

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-07 Thread H.J. Lu via cfe-commits
On Sun, Feb 7, 2016 at 11:31 AM, Florian Weimer wrote: > * H. J. Lu: > >> I am proposing to update Intel386, x86-64 and IA MCU psABIs to specify >> how to pass/return empty struct: >> >> 1. "collection". A collection is a structure, union or C++ class. >> 2. "empty collection". An empty collecti

r260048 - [Frontend] Make the memory management of FrontendAction pointers explicit by using unique_ptr.

2016-02-07 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Sun Feb 7 13:28:36 2016 New Revision: 260048 URL: http://llvm.org/viewvc/llvm-project?rev=260048&view=rev Log: [Frontend] Make the memory management of FrontendAction pointers explicit by using unique_ptr. Modified: cfe/trunk/include/clang/ARCMigrate/ARCMTActions.h

Re: [PATCH] D13622: Add call to find_package to load LLVM dependencies

2016-02-07 Thread don hinton via cfe-commits
hintonda added a comment. ping http://reviews.llvm.org/D13622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-07 Thread Florian Weimer via cfe-commits
* H. J. Lu: > I am proposing to update Intel386, x86-64 and IA MCU psABIs to specify > how to pass/return empty struct: > > 1. "collection". A collection is a structure, union or C++ class. > 2. "empty collection". An empty collection is: >a. A collection without member. Or >b. A collec

Re: [PATCH] D16971: Fixed crash when partial specialization is missing required parameters

2016-02-07 Thread don hinton via cfe-commits
hintonda added a comment. Here's a snippet of code that will crash: lass DB {}; template class RemovePolicy : public T {}; template > class Crash : T, Policy {}; template class Crash : public DB, public Policy { public: Crash(){} }; http://reviews.llvm.org/D16971

[PATCH] D16971: Fixed crash when partial specialization is missing required parameters

2016-02-07 Thread don hinton via cfe-commits
hintonda created this revision. hintonda added reviewers: doug.gregor, lvoufo. hintonda added a subscriber: cfe-commits. The code sets isPartialSpecialization = false instead of returning true, which will cause a crash later when the missing template parameter is referenced. http://reviews.llvm.

Re: [PATCH] D16951: [MS ABI] dllimport'd class cannot have constexpr ctors

2016-02-07 Thread Nico Weber via cfe-commits
thakis added a comment. Thanks for jumping on this so quickly! Hans can probably just stamp this, but I lack the background, so I must ask: Comment at: test/SemaCXX/dllimport.cpp:1262 @@ -1261,1 +1261,3 @@ +struct __declspec(dllimport) PR26506_test1 { + virtual ~PR26506_test

r260047 - [libclang] Add missing CINDEX_LINKAGE from a function.

2016-02-07 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Sun Feb 7 12:21:28 2016 New Revision: 260047 URL: http://llvm.org/viewvc/llvm-project?rev=260047&view=rev Log: [libclang] Add missing CINDEX_LINKAGE from a function. Modified: cfe/trunk/include/clang-c/Index.h Modified: cfe/trunk/include/clang-c/Index.h URL: http:/

Re: [PATCH] D16376: clang-tidy check: rule-of-five

2016-02-07 Thread Jonathan B Coe via cfe-commits
jbcoe added a comment. The method I'm using to insert after a function declaration is flawed. Advancing by one character is not always the right thing to do and won't handle cases where there is a space before a semi-colon. I'll add extra tests and see if I can come up with a neater way of hand

Re: [PATCH] D16966: Make -fno-math-builtin a cc1 option

2016-02-07 Thread Matthew Simpson via cfe-commits
mssimpso closed this revision. mssimpso added a comment. Committed in r260044. http://reviews.llvm.org/D16966 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r260044 - Make -fno-math-builtin a cc1 option

2016-02-07 Thread Matthew Simpson via cfe-commits
Author: mssimpso Date: Sun Feb 7 11:14:03 2016 New Revision: 260044 URL: http://llvm.org/viewvc/llvm-project?rev=260044&view=rev Log: Make -fno-math-builtin a cc1 option This patch makes -fno-math-builtin a frontend only option instead of a driver option. The appropriate test case was committed

[PATCH] D16966: Make -fno-math-builtin a cc1 option

2016-02-07 Thread Matthew Simpson via cfe-commits
mssimpso created this revision. mssimpso added a reviewer: mcrosier. mssimpso added a subscriber: cfe-commits. Herald added a subscriber: mcrosier. This patch makes -fno-math-builtin a frontend only option instead of a driver option. The appropriate test case was committed in r186899 when the fla

[PATCH] D16967: support/allocators: implements requirements

2016-02-07 Thread Masud Rahman via cfe-commits
frutiger created this revision. frutiger added reviewers: mclow.lists, EricWF. frutiger added a subscriber: cfe-commits. This commit adds the required constructor overloads and member functions to make the supporting allocators actually valid allocators. The implementation of 'allocate' defers to

[PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-02-07 Thread Ryan Yee via cfe-commits
ryee88 created this revision. ryee88 added reviewers: doug.gregor, gribozavr, francisco.lopes. ryee88 added a subscriber: cfe-commits. Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member This is a fix for this bug: https://llvm.org/bugs/show_bug.cg

[PATCH] D16963: Copy LibASTMatchersReference.html to gen'd docs

2016-02-07 Thread Steve Downey via cfe-commits
sdowney created this revision. sdowney added a reviewer: reames. sdowney added a subscriber: cfe-commits. The LibASTMatchersReference documentation is an html file, not an rst document, so is not produced by sphinx. Copy the html into the proper location as part of the sphinx html doc generation.

Re: r259985 - Re-apply r259977 - [OpenMP] Reorganize code to allow specialized code generation for different devices.

2016-02-07 Thread Samuel F Antao via cfe-commits
Hi Renato, This is not related with my patch, I'm afraid your buildbot won't go green with the revert. This looks to be related with r259976. My patch triggered the problem because it touched a CmakeList.txt. The code itself is completely unrelated with the failure. Dmitri Gribenko sent a follow

Re: [PATCH] D16351: [FIX] Bug 25404 - Crash on typedef in OpenCL 2.0

2016-02-07 Thread Igor Chesnokov via cfe-commits
ichesnokov added inline comments. Comment at: test/SemaOpenCL/implicit-typedef.cl:4 @@ +3,3 @@ + +#if defined(TEST_WARNINGS) +typedef atomic_int atomic_flag; // expected-warning {{redefinition of OpenCL builtin typedef 'atomic_flag'}} Thank you, Anastasia! I just

Re: [PATCH] D16351: [FIX] Bug 25404 - Crash on typedef in OpenCL 2.0

2016-02-07 Thread Igor Chesnokov via cfe-commits
ichesnokov updated this revision to Diff 47137. ichesnokov added a comment. Another warning text implemented for OpenCL. Like: redefinition of OpenCL builtin typedef 'atomic_flag' http://reviews.llvm.org/D16351 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/S

Re: [PATCH] D16966: Make -fno-math-builtin a cc1 option

2016-02-07 Thread Chad Rosier via cfe-commits
mcrosier accepted this revision. mcrosier added a comment. This revision is now accepted and ready to land. LGTM. Thanks, Frank. http://reviews.llvm.org/D16966 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/ma

Re: [PATCH] D16963: Copy LibASTMatchersReference.html to gen'd docs

2016-02-07 Thread Philip Reames via cfe-commits
reames added a comment. This looks entirely reasonable to me, but I don't really know cmake. Can someone with cmake knowledge take a quick look? http://reviews.llvm.org/D16963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.ll

r260043 - [analyzer] Invalidate destination of std::copy() and std::copy_backward().

2016-02-07 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Sun Feb 7 10:55:44 2016 New Revision: 260043 URL: http://llvm.org/viewvc/llvm-project?rev=260043&view=rev Log: [analyzer] Invalidate destination of std::copy() and std::copy_backward(). Now that the libcpp implementations of these methods has a branch that doesn't call m

[PATCH] D16964: Make sure the projects subdirectory doesn't contain the clang or clang-tools-extra projects

2016-02-07 Thread don hinton via cfe-commits
hintonda created this revision. hintonda added reviewers: beanz, mclow.lists. hintonda added a subscriber: cfe-commits. A common error for new users it to checkout subprojects, like clang or clang-tools-extra, into the wrong subdirectory. This change helps prevent this, since the resulting buil

Re: r259985 - Re-apply r259977 - [OpenMP] Reorganize code to allow specialized code generation for different devices.

2016-02-07 Thread Renato Golin via cfe-commits
On 6 February 2016 at 06:52, Samuel Antao via cfe-commits wrote: > Author: sfantao > Date: Sat Feb 6 00:52:48 2016 > New Revision: 259985 > > URL: http://llvm.org/viewvc/llvm-project?rev=259985&view=rev > Log: > Re-apply r259977 - [OpenMP] Reorganize code to allow specialized code > generation f

r260036 - Revert "Re-apply r259977 - [OpenMP] Reorganize code to allow specialized code generation for different devices."

2016-02-07 Thread Renato Golin via cfe-commits
Author: rengolin Date: Sun Feb 7 09:43:09 2016 New Revision: 260036 URL: http://llvm.org/viewvc/llvm-project?rev=260036&view=rev Log: Revert "Re-apply r259977 - [OpenMP] Reorganize code to allow specialized code generation for different devices." This reverts commit r259985, as it still fails o

Re: [PATCH] D16460: Bug 10002 - [opencl] Wrongfully assuming RHS is always unsigned

2016-02-07 Thread Igor Chesnokov via cfe-commits
ichesnokov added inline comments. Comment at: lib/CodeGen/CGExprScalar.cpp:2716 @@ +2715,3 @@ + if (Ops.LHS->getType() != RHS->getType()) { +bool isSigned = dyn_cast(Ops.E)->getRHS()->getType().getTypePtr()->isSignedIntegerType(); +RHS = Builder.CreateIntCast(RHS, Ops.LH

RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-07 Thread H.J. Lu via cfe-commits
Empty struct value is passed differently in C and C++ on Intel386 and x86-64. Different compilers use different calling conventions on the same platform: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336 The same compiler behaves different on different platforms: https://llvm.org/bugs/show_bug.

[PATCH] D16962: clang-tidy: avoid std::bind

2016-02-07 Thread Jonathan B Coe via cfe-commits
jbcoe created this revision. jbcoe added reviewers: aaron.ballman, alexfh, djasper. jbcoe added a subscriber: cfe-commits. jbcoe set the repository for this revision to rL LLVM. Replace std::bind with a lambda. Not yet working for member functions. Repository: rL LLVM http://reviews.llvm.org/

Re: [PATCH] D16539: [FIX] 26194 - LLVM crash in CXXNameMangler::mangleType

2016-02-07 Thread Igor Chesnokov via cfe-commits
ichesnokov added a comment. Please review the last version of patch. http://reviews.llvm.org/D16539 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16682: 19957 - OpenCL incorrectly accepts implicit address space conversion with ternary operator

2016-02-07 Thread Igor Chesnokov via cfe-commits
ichesnokov added inline comments. Comment at: test/SemaOpenCL/ternary-implicit-casts.cl:10-11 @@ +9,4 @@ +kernel void implicit_cast_generic(global int* gint, local int* lint, int cond) { + // will compile, ptr is generic and can accept global and local + int* ptr = co

Re: [PATCH] D16682: 19957 - OpenCL incorrectly accepts implicit address space conversion with ternary operator

2016-02-07 Thread Igor Chesnokov via cfe-commits
ichesnokov added a comment. It looks like there's more todo to close this bug. Let's go back to bug discussion at: https://llvm.org/bugs/show_bug.cgi?id=19957 http://reviews.llvm.org/D16682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

r260028 - Use CodeGenModule::addReplacement() instead of directly accessing Replacements[].

2016-02-07 Thread Yaron Keren via cfe-commits
Author: yrnkrn Date: Sun Feb 7 06:44:35 2016 New Revision: 260028 URL: http://llvm.org/viewvc/llvm-project?rev=260028&view=rev Log: Use CodeGenModule::addReplacement() instead of directly accessing Replacements[]. This helps when trying to debug who inserted into Replacements. Modified: cf

Re: [PATCH]: git-clang-format

2016-02-07 Thread Alexander Shukaev via cfe-commits
On 12/14/2015 10:03 PM, Alexander Shukaev wrote: 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. Th