Re: [PATCH] D22220: [clang-tidy] Add check 'misc-move-forwarding-reference'

2016-08-26 Thread Martin Böhme via cfe-commits
mboehme marked an inline comment as done. mboehme added a comment. Any more comments here? https://reviews.llvm.org/D0 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23840: New options -fexceptions-fp-math and -fdenormal-fp-math

2016-08-26 Thread James Molloy via cfe-commits
jmolloy added a comment. Hi Sjoerd, These make sense - we currently lack any way to inform the backend of the user's FP strictness requirements for exceptions and denormals which forces us to be conservative in the backend build attribute generation. Your new -fno-exceptions-fp-math appears to

[PATCH] D23914: [OpenCL] Make is_valid_event overloadable.

2016-08-26 Thread Tyurin, Evgeniy via cfe-commits
etyurin created this revision. etyurin added reviewers: yaxunl, bader. etyurin added subscribers: cfe-commits, Anastasia. Make is_valid_event overloadable like other built-ins. https://reviews.llvm.org/D23914 Files: lib/Headers/opencl-c.h Index: lib/Headers/opencl-c.h

[PATCH] D23915: [OpenCL] Remove access qualifiers on images in arg info metadata.

2016-08-26 Thread Tyurin, Evgeniy via cfe-commits
etyurin created this revision. etyurin added reviewers: Anastasia, bader, yaxunl. etyurin added a subscriber: cfe-commits. Remove access qualifiers on images in arg info metadata: * kernel_arg_type * kernel_arg_base_type Image access qualifiers are inseparable from type in clang implementation,

Re: [PATCH] D23767: DebugInfo: use llvm::DIFlagsUnderlying type for debug info flags

2016-08-26 Thread Victor via cfe-commits
vleschuk retitled this revision from "DebugInfo: use llvm::di_flags_t for debug info flags" to "DebugInfo: use llvm::DIFlagsUnderlying type for debug info flags". vleschuk updated the summary for this revision. vleschuk updated this revision to Diff 69332. vleschuk added a comment. Chnaged typed

Re: [PATCH] D23914: [OpenCL] Make is_valid_event overloadable.

2016-08-26 Thread Alexey Bader via cfe-commits
bader accepted this revision. bader added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D23914 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [PATCH] D23915: [OpenCL] Remove access qualifiers on images in arg info metadata.

2016-08-26 Thread Alexey Bader via cfe-commits
bader accepted this revision. bader added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D23915 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang-tools-extra] r279814 - [clang-tidy] Some tweaks on header guard checks.

2016-08-26 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Aug 26 06:15:38 2016 New Revision: 279814 URL: http://llvm.org/viewvc/llvm-project?rev=279814&view=rev Log: [clang-tidy] Some tweaks on header guard checks. * Implement missing storeOption interfaces. * Remove unnecessary parameter copy in isHeaderFileExtension. * Fix doc

Re: [PATCH] D23279: clang-reorder-fields

2016-08-26 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: clang-reorder-fields/ReorderFieldsAction.cpp:29 @@ +28,3 @@ +using namespace llvm; +using namespace clang; +using namespace clang::ast_matchers; Put everything here into the namespace clang and remove "using namespace cl

Re: [PATCH] D23894: [Clang-tidy] Fix some checks documentation style

2016-08-26 Thread Haojian Wu via cfe-commits
hokein added a subscriber: hokein. hokein accepted this revision. hokein added a reviewer: hokein. hokein added a comment. This revision is now accepted and ready to land. LGTM, thanks! Repository: rL LLVM https://reviews.llvm.org/D23894 ___ cfe-

[PATCH] D23918: [clang-tidy docs] Add missing options.

2016-08-26 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a subscriber: cfe-commits. Herald added a subscriber: nemanjai. https://reviews.llvm.org/D23918 Files: docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst docs/clang-tidy/checks/google-build-namespaces.rst docs/clang-tidy/c

Re: [PATCH] D23918: [clang-tidy docs] Add missing options.

2016-08-26 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 69343. hokein added a comment. Fix style. https://reviews.llvm.org/D23918 Files: docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst docs/clang-tidy/checks/google-build-namespaces.rst docs/clang-tidy/checks/google-readability-n

Re: [PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.

2016-08-26 Thread Mayur Pandey via cfe-commits
mayurpandey updated this revision to Diff 69354. mayurpandey added a comment. Hi, Updated the patch to handle the second crash. __builtin_signbit("1") was crashing. I am not fully sure whether the check : if (!Ty->isRealFloatingType()) is correct. Please review and let me know whether it is f

Re: [PATCH] D23840: New options -fexceptions-fp-math and -fdenormal-fp-math

2016-08-26 Thread Sjoerd Meijer via cfe-commits
SjoerdMeijer updated this revision to Diff 69367. SjoerdMeijer added a comment. Hi James, Thanks for the review. I got rid of that new option -fexceptions-fp-math and now use -ftrapping-math for that which indeed was not passed through to CC1. Cheers. https://reviews.llvm.org/D23840 Files:

Re: [PATCH] D23840: New options -fexceptions-fp-math and -fdenormal-fp-math

2016-08-26 Thread James Molloy via cfe-commits
jmolloy added a comment. Hi Sjoerd, This still needs a docs patch. I'd also really appreciate someone else to help sign this off - While it looks fine, I don't commit enough to clang to give the go-ahead. Cheers, James https://reviews.llvm.org/D23840 _

Re: [PATCH] D23418: [analyzer] Added a reusable constraint system to the CloneDetector

2016-08-26 Thread Artem Dergachev via cfe-commits
NoQ added a comment. Here's some pseudo-code of the way i see it. // This interface mimics CloneDetector's interface, hence omnipotent but useless. class BasicConstraint { public: virtual void add(const StmtSequence &S) = 0; virtual vector findClones() = 0; }; // This const

[PATCH] D23921: Remove va_start diagnostic false positive with enumerations

2016-08-26 Thread Aaron Ballman via cfe-commits
aaron.ballman created this revision. aaron.ballman added reviewers: rsmith, dblaikie, rtrieu, friss. aaron.ballman added a subscriber: cfe-commits. r267338 improved the diagnostic checking for undefined behavior with va_start(), but it had some false positives regarding enumerations. The underly

Re: [PATCH] D23840: New options -fexceptions-fp-math and -fdenormal-fp-math

2016-08-26 Thread Renato Golin via cfe-commits
rengolin added a comment. Hi James, Also looks good to me, though it need docs (in the same patch). Is there an LLVM counter part to this patch? Where is this going to be used? From the fact that trapping-math wasn't passed down, its documentation may be missing/outdated/wrong, and probably no

Re: [PATCH] D23840: New options -fexceptions-fp-math and -fdenormal-fp-math

2016-08-26 Thread Sjoerd Meijer via cfe-commits
SjoerdMeijer updated this revision to Diff 69379. SjoerdMeijer added a comment. Sorry, forgot to add the doc patch, but it has been included now. This will be used in llvm to emit and appropriately set build attributes ABI_FP_denormal and ABI_FP_exceptions. I am now trying to get a llvm patch r

r279827 - Add support for -fdiagnostics-absolute-paths: printing absolute paths in diagnostics

2016-08-26 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Aug 26 10:45:36 2016 New Revision: 279827 URL: http://llvm.org/viewvc/llvm-project?rev=279827&view=rev Log: Add support for -fdiagnostics-absolute-paths: printing absolute paths in diagnostics Differential Revision: https://reviews.llvm.org/D23816 Added: cfe/trunk/tes

Re: [PATCH] D23902: Minor cleanup of PTHWriter

2016-08-26 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Repository: rL LLVM https://reviews.llvm.org/D23902 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

[PATCH] D23926: [libcxx] Don't use C99 math ops in -std=c++03 mode

2016-08-26 Thread Asiri Rathnayake via cfe-commits
rmaprath created this revision. rmaprath added reviewers: mclow.lists, EricWF. rmaprath added a subscriber: cfe-commits. `C99` math ops should not be available when compiling in `-std=c++03` mode. https://reviews.llvm.org/D23926 Files: include/math.h test/std/depr/depr.c.headers/math_h.pass.

Re: [PATCH] D23284: Add -Rpass-with-hotness

2016-08-26 Thread Diego Novillo via cfe-commits
dnovillo added a comment. In https://reviews.llvm.org/D23284#526389, @anemet wrote: > @dnovillo or @rsmith, can you please confirm if you agree that this new > option -Rpass-with-hotness should not be part of R_group. R_group options > enable/disable groups of remarks whereas this one is only

Re: [PATCH] D23284: Add -Rpass-with-hotness

2016-08-26 Thread Adam Nemet via cfe-commits
anemet added a comment. @dnovillo or @rsmith, can you please confirm if you agree that this new option -Rpass-with-hotness should not be part of R_group. R_group options enable/disable groups of remarks whereas this one is only modifying the text of the remarks. Thanks! https://reviews.llvm

Re: [PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.

2016-08-26 Thread David Majnemer via cfe-commits
majnemer added a comment. This looks much better. Please add a test that uses a template: template int f(T t) { return __builtin_signbit(t); } Comment at: include/clang/Basic/DiagnosticSemaKinds.td:7401-7403 @@ -7400,2 +7400,5 @@ +def err_builtin_signbit_wrong_argument :

Re: [PATCH] D23840: New options -fexceptions-fp-math and -fdenormal-fp-math

2016-08-26 Thread James Molloy via cfe-commits
jmolloy accepted this revision. jmolloy added a comment. This revision is now accepted and ready to land. LGTM. Cheers, James https://reviews.llvm.org/D23840 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

[PATCH] D23932: [XRay] ARM 32-bit no-Thumb support in Clang

2016-08-26 Thread Serge Rogatch via cfe-commits
rSerge created this revision. rSerge added reviewers: dberris, rengolin. rSerge added a subscriber: cfe-commits. Herald added subscribers: dberris, samparker, rengolin, aemerson. Just a test for now, adapted from x86_64 tests of XRay. https://reviews.llvm.org/D23932 Files: test/CodeGen/xray-at

Re: [PATCH] D23816: Add support for -fdiagnostics-abs-path: printing absolute paths in diagnostics

2016-08-26 Thread Hans Wennborg via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL279827: Add support for -fdiagnostics-absolute-paths: printing absolute paths in… (authored by hans). Changed prior to commit: https://reviews.llvm.org/D23816?vs=69304&id=69384#toc Repository: rL LLV

Re: [PATCH] D23856: [libc++] Perform configuration checks with -nodefaultlibs

2016-08-26 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: cmake/config-ix.cmake:18 @@ +17,3 @@ +if (LIBCXX_SUPPORTS_NODEFAULTLIBS_FLAG) + list(APPEND CMAKE_REQUIRED_LIBRARIES -nodefaultlibs) + if (LIBCXX_HAS_C_LIB) Can we not use `CMAKE_SHARED_LINKER_FLAGS` instead of `CMAKE

Re: [PATCH] D23905: [Modules] Add 'gnuinlineasm' to the 'requires-declaration' feature-list.

2016-08-26 Thread Bruno Cardoso Lopes via cfe-commits
On Thu, Aug 25, 2016 at 9:52 PM, Richard Smith wrote: > On 25 Aug 2016 7:37 p.m., "Bruno Cardoso Lopes" > wrote: > > bruno created this revision. > bruno added a reviewer: rsmith. > bruno added subscribers: cfe-commits, eladcohen. > > This adds support for modules that require (no-)gnu-inline-asm

Re: [PATCH] D23905: [Modules] Add 'gnuinlineasm' to the 'requires-declaration' feature-list.

2016-08-26 Thread Bruno Cardoso Lopes via cfe-commits
bruno updated this revision to Diff 69392. bruno added a comment. Update patch after Richard's comment https://reviews.llvm.org/D23905 Files: docs/Modules.rst lib/Basic/Module.cpp lib/Headers/module.modulemap test/Modules/Inputs/GNUAsm/NeedsGNUInlineAsm.framework/Headers/NeedsGNUInline

Re: [PATCH] D23821: Minor cleanup of the class Pattern

2016-08-26 Thread Saleem Abdulrasool via cfe-commits
compnerd added a subscriber: compnerd. compnerd closed this revision. compnerd added a comment. SVN r279832 Repository: rL LLVM https://reviews.llvm.org/D23821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/

r279838 - Don't diagnose non-modular includes when we are not compiling a module.

2016-08-26 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Aug 26 12:16:46 2016 New Revision: 279838 URL: http://llvm.org/viewvc/llvm-project?rev=279838&view=rev Log: Don't diagnose non-modular includes when we are not compiling a module. This is triggered when we are compiling an implementation of a module, it has relative include

Re: [PATCH] D23918: [clang-tidy docs] Add missing option docs.

2016-08-26 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. General comments: - I think //default is XYZ// is better then //XYZ by default//. - There are discrepancies: option represent//ing// and option represent//s//. I think will be good idea to involve native English speaker in review. Comment at: d

[clang-tools-extra] r279846 - [Clang-tidy] Fix some checks documentation style.

2016-08-26 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Fri Aug 26 12:46:51 2016 New Revision: 279846 URL: http://llvm.org/viewvc/llvm-project?rev=279846&view=rev Log: [Clang-tidy] Fix some checks documentation style. Differential revision: https://reviews.llvm.org/D23894 Modified: clang-tools-extra/trunk/docs/clang-ti

Re: [PATCH] D23279: clang-reorder-fields

2016-08-26 Thread Alexander Shaposhnikov via cfe-commits
alexshap added inline comments. Comment at: clang-reorder-fields/ReorderFieldsAction.cpp:165 @@ +164,3 @@ +return; + assert(InitListEx->getNumInits() == NewFieldsOrder.size() && + "Currently only full initialization is supported"); djasper wrote: > Sa

Re: [PATCH] D23853: Assert in performTrivialCopy - Bug report and a possible solution

2016-08-26 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. In https://reviews.llvm.org/D23853#524945, @xazax.hun wrote: > > Also: I think r270511 is unlikely to be the change that caused this -- that > > is a change in LLVM's treatment of DebugInfo, which shouldn't affect the > > analyzer. > > > I think Peter means that, that

[PATCH] D23938: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: hans. thakis added a subscriber: cfe-commits. Like https://reviews.llvm.org/D23807, but for execution-charset. https://reviews.llvm.org/D23938 Files: include/clang/Driver/CLCompatOptions.td lib/Driver/Tools.cpp test/Driver/cl-options.c

Re: [PATCH] D23932: [XRay] ARM 32-bit no-Thumb support in Clang

2016-08-26 Thread Renato Golin via cfe-commits
rengolin accepted this revision. rengolin added a comment. This revision is now accepted and ready to land. If this works without the other two patches, it's reasonably unrelated and harmless, and should be ok as soon as the other two patches are approved. Not because it's wrong, just because we

Re: [PATCH] D23938: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread David Majnemer via cfe-commits
On Friday, August 26, 2016, Nico Weber via cfe-commits < cfe-commits@lists.llvm.org> wrote: > thakis created this revision. > thakis added a reviewer: hans. > thakis added a subscriber: cfe-commits. > > Like https://reviews.llvm.org/D23807, but for execution-charset. > > https://reviews.llvm.org/D

Re: [PATCH] D23938: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 69415. thakis added a comment. ;-; https://reviews.llvm.org/D23938 Files: include/clang/Driver/CLCompatOptions.td lib/Driver/Tools.cpp test/Driver/cl-options.c Index: test/Driver/cl-options.c ===

Re: [PATCH] D23938: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 69416. thakis added a comment. !! https://reviews.llvm.org/D23938 Files: include/clang/Driver/CLCompatOptions.td lib/Driver/Tools.cpp test/Driver/cl-options.c Index: test/Driver/cl-options.c

Re: [PATCH] D23858: Don't diagnose non-modular includes when we are not compiling a module

2016-08-26 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL279838: Don't diagnose non-modular includes when we are not compiling a module. (authored by mren). Changed prior to commit: https://reviews.llvm.org/D23858?vs=69183&id=69397#toc Repository: rL LLVM

Re: [PATCH] D23820: Do not warn about format strings that are indexed string literals.

2016-08-26 Thread Meike Baumgärtner via cfe-commits
meikeb added inline comments. Comment at: lib/Sema/SemaChecking.cpp:4089-4090 @@ +4088,4 @@ +if (BinOp->isAdditiveOp()) { + bool LIsInt = BinOp->getLHS()->EvaluateAsInt(LResult, S.Context); + bool RIsInt = BinOp->getRHS()->EvaluateAsInt(RResult, S.Context); + ---

Re: [PATCH] D23894: [Clang-tidy] Fix some checks documentation style

2016-08-26 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL279846: [Clang-tidy] Fix some checks documentation style. (authored by eugenezelenko). Changed prior to commit: https://reviews.llvm.org/D23894?vs=69301&id=69404#toc Repository: rL LLVM https://revi

Re: [PATCH] D23856: [libc++] Perform configuration checks with -nodefaultlibs

2016-08-26 Thread Shoaib Meenai via cfe-commits
smeenai added inline comments. Comment at: cmake/config-ix.cmake:18 @@ +17,3 @@ +if (LIBCXX_SUPPORTS_NODEFAULTLIBS_FLAG) + list(APPEND CMAKE_REQUIRED_LIBRARIES -nodefaultlibs) + if (LIBCXX_HAS_C_LIB) compnerd wrote: > Can we not use `CMAKE_SHARED_LINKER_FLAGS` i

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-08-26 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 69419. thakis added a comment. Aaron's right that these are currently called "Microsoft" in the source. I agree that that's a confusing name and we should probably rename it, but on second thought that seems unrelated to this change. If y'all agree on a name,

[PATCH] D23934: Add a -ffixed-date-time= flag that sets the initial value of __DATE__, __TIME__, __TIMESTAMP__

2016-08-26 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: rsmith. thakis added a subscriber: cfe-commits. This is useful for creating reproducible builds. Defining these via -D triggers warnings, and can cause bugs (presently, e.g. PR29119). It makes it also impossible to override __DATE__ and __TI

Re: [PATCH] D23938: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread David Majnemer via cfe-commits
majnemer added a subscriber: majnemer. Comment at: lib/Driver/Tools.cpp:5838-5846 @@ -5837,11 +5837,11 @@ StringRef value = inputCharset->getValue(); if (value.lower() != "utf-8") D.Diag(diag::err_drv_invalid_value) << inputCharset->getAsString(Args)

Re: [PATCH] D23279: clang-reorder-fields

2016-08-26 Thread Alexander Shaposhnikov via cfe-commits
alexshap marked 2 inline comments as done. Comment at: clang-reorder-fields/ReorderFieldsAction.cpp:202 @@ +201,3 @@ +for (const auto *C : RD->ctors()) { + if (C->isImplicit() || C->isDelegatingConstructor()) +continue; djasper wrote: > Why are yo

Re: [PATCH] D23938: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread Hans Wennborg via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. lgtm majnemer's suggestion sounds good though, and for inputCharset too. https://reviews.llvm.org/D23938 ___ cfe-commits mailing list cfe-commits@li

LLVM buildmaster will be restarted tonight

2016-08-26 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be restarted after 6 PM Pacific time today. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r279866 - clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Aug 26 16:11:43 2016 New Revision: 279866 URL: http://llvm.org/viewvc/llvm-project?rev=279866&view=rev Log: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag. Also makes -fexec-charset accept utf-8 case-insensitively. Like https://reviews.llvm.org/D23807, but for

Re: [PATCH] D23938: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis marked an inline comment as done. thakis added a comment. r279866, thanks! https://reviews.llvm.org/D23938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

r279869 - clang-cl: Accept MSVC2015's '/utf-8' flag.

2016-08-26 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Aug 26 16:26:29 2016 New Revision: 279869 URL: http://llvm.org/viewvc/llvm-project?rev=279869&view=rev Log: clang-cl: Accept MSVC2015's '/utf-8' flag. Clang always behaves as if that's passed, so just ignore the flag. Modified: cfe/trunk/include/clang/Driver/CLCompatOp

[PATCH] D23945: clang-cl: Support MSVC2015's /validate-charset flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: hans. thakis added a subscriber: cfe-commits. Clang always assumes that files are utf-8. If an invalidly encoded character is used in an identifier, clang always errors. If it's used in a character literal, clang warns Winvalid-source-encodi

[libunwind] r279871 - [ARM] Adding .arch directives around WMMX unwind code

2016-08-26 Thread Renato Golin via cfe-commits
Author: rengolin Date: Fri Aug 26 16:45:39 2016 New Revision: 279871 URL: http://llvm.org/viewvc/llvm-project?rev=279871&view=rev Log: [ARM] Adding .arch directives around WMMX unwind code Some unwind code is purposedly old enough to work on previous architecutres and they're guaranteed to never

Re: [PATCH] D23945: clang-cl: Support MSVC2015's /validate-charset flag.

2016-08-26 Thread Hans Wennborg via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D23945 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

r279872 - clang-cl: Support MSVC2015's /validate-charset flag.

2016-08-26 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Aug 26 16:51:14 2016 New Revision: 279872 URL: http://llvm.org/viewvc/llvm-project?rev=279872&view=rev Log: clang-cl: Support MSVC2015's /validate-charset flag. Clang always assumes that files are utf-8. If an invalidly encoded character is used in an identifier, clang alwa

Re: [PATCH] D23945: clang-cl: Support MSVC2015's /validate-charset flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. r279872, thanks! https://reviews.llvm.org/D23945 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23279: clang-reorder-fields

2016-08-26 Thread Alexander Shaposhnikov via cfe-commits
alexshap marked 4 inline comments as done. alexshap added a comment. Repository: rL LLVM https://reviews.llvm.org/D23279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23595: [Clang] Fix some Clang-tidy modernize-use-using and Include What You Use warnings

2016-08-26 Thread Mehdi AMINI via cfe-commits
mehdi_amini added inline comments. Comment at: include/clang/Basic/IdentifierTable.h:103 @@ -95,1 +102,3 @@ +return getLength() == StrLen-1 && + memcmp(getNameStart(), Str, StrLen-1) == 0; } Eugene.Zelenko wrote: > memcpy result is three state, so

Re: [PATCH] D23279: clang-reorder-fields

2016-08-26 Thread Alexander Shaposhnikov via cfe-commits
alexshap updated this revision to Diff 69445. alexshap added a comment. Address @djasper 's comments. 1. Try to flash out comments for helper functions / various interesting places in my code 2. More elaborate error-handling 3. Adjust the names of the variables: I -> i, E -> e 4. Minor cleanup &

Re: [PATCH] D23595: [Clang] Fix some Clang-tidy modernize-use-using and Include What You Use warnings

2016-08-26 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added inline comments. Comment at: include/clang/Basic/IdentifierTable.h:103 @@ -95,1 +102,3 @@ +return getLength() == StrLen-1 && + memcmp(getNameStart(), Str, StrLen-1) == 0; } mehdi_amini wrote: > Eugene.Zelenko wrote: > > memcpy

Re: [PATCH] D23279: clang-reorder-fields

2016-08-26 Thread Alexander Shaposhnikov via cfe-commits
alexshap marked 10 inline comments as done. alexshap added a comment. I have marked all the inline comments as done, if i need to change/fix smth else - pls, reopen the corresponding comment or add a new one. **Current apporach** : correctly create all the necessary replacements supported by thi

Re: [PATCH] D23279: clang-reorder-fields

2016-08-26 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. I've just rerun the tests - they are green. Repository: rL LLVM https://reviews.llvm.org/D23279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23746: Basic/Targets.cpp: Add polaris10 and polaris11 gpus

2016-08-26 Thread Tom Stellard via cfe-commits
tstellarAMD requested changes to this revision. This revision now requires changes to proceed. Comment at: lib/Basic/Targets.cpp:1959 @@ -1959,1 +1958,3 @@ +GK_VOLCANIC_ISLANDS, +GK_ARCTIC_ISLANDS } GPU; We're trying to move to more descriptive GPU fami

Re: [PATCH] D23746: Basic/Targets.cpp: Add polaris10 and polaris11 gpus

2016-08-26 Thread Matt Arsenault via cfe-commits
arsenm added inline comments. Comment at: lib/Basic/Targets.cpp:1959 @@ -1959,1 +1958,3 @@ +GK_VOLCANIC_ISLANDS, +GK_ARCTIC_ISLANDS } GPU; tstellarAMD wrote: > We're trying to move to more descriptive GPU family names, so this should be > GK_GFX8 inste

Re: [PATCH] D23852: [SemaObjC] Fix crash while parsing type arguments and protocols

2016-08-26 Thread Bruno Cardoso Lopes via cfe-commits
bruno updated the summary for this revision. bruno updated this revision to Diff 69456. bruno added a comment. Updated patch and changed approach after Doug's comment. https://reviews.llvm.org/D23852 Files: lib/Parse/ParseDecl.cpp lib/Parse/ParseObjc.cpp lib/Parse/Parser.cpp test/SemaOb

Re: [PATCH] D22968: [analyzer] A checker for macOS-specific bool-like objects.

2016-08-26 Thread Devin Coughlin via cfe-commits
dcoughlin added inline comments. Comment at: lib/StaticAnalyzer/Checkers/BoolConversionChecker.cpp:62 @@ +61,3 @@ + << "' to a plain boolean value: probably a forgotten " + << (IsObjC ? "'[boolValue]'" : "'->isTrue()'"); +BR.EmitBasicReport( - The

[libcxx] r279903 - Add attribute noreturn to functions that throw

2016-08-26 Thread Aditya Kumar via cfe-commits
Author: hiraditya Date: Fri Aug 26 21:26:42 2016 New Revision: 279903 URL: http://llvm.org/viewvc/llvm-project?rev=279903&view=rev Log: Add attribute noreturn to functions that throw Reviewers: mclow.lists, EricWF, howard.hinnant, sebpop Subscribers: cfe-commits Differential Revision: https://re

Re: [PATCH] D23784: Remove trailing WS [NFC]

2016-08-26 Thread Aditya Kumar via cfe-commits
hiraditya closed this revision. hiraditya added a comment. commit fdb4f1713ece3c6f7fbf98f3ea3f8c19fa0c249e Author: Aditya Kumar Date: Thu Aug 25 11:52:38 2016 + Remove trailing WS [NFC] git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@279731 91177308-0d34-0410-b5e6-96231b

[PATCH] D23953: OpenCL: Defining __ENDIAN_LITTLE__ and fix target endianness

2016-08-26 Thread Matt Arsenault via cfe-commits
arsenm created this revision. arsenm added a subscriber: cfe-commits. OpenCL requires __ENDIAN_LITTLE__ be set for little endian targets. The default for targets was also apparently big endian, so AMDGPU was incorrectly reported as big endian. Set this from the triple so targets don't have another

Re: [PATCH] D23953: OpenCL: Defining __ENDIAN_LITTLE__ and fix target endianness

2016-08-26 Thread Matt Arsenault via cfe-commits
arsenm updated this revision to Diff 69465. arsenm added a comment. Fix typo https://reviews.llvm.org/D23953 Files: include/clang/Basic/TargetInfo.h lib/Basic/TargetInfo.cpp lib/Basic/Targets.cpp lib/Frontend/InitPreprocessor.cpp test/Preprocessor/init.c Index: test/Preprocessor/init

Re: [PATCH] D23926: [libcxx] Don't use C99 math ops in -std=c++03 mode

2016-08-26 Thread Eric Fiselier via cfe-commits
EricWF added a comment. We already provide many C++11 extensions in C++03 mode, why should this be an exception? https://reviews.llvm.org/D23926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/