[PATCH] D26406: Add -Wduplicate-protocol for existing diagnostic

2016-11-09 Thread Alex Lorenz via cfe-commits
arphaman accepted this revision. arphaman added a reviewer: arphaman. arphaman added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D26406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D26418: [clang-tidy] Add '-suppress-checks-filter' option to suppress diagnostics from certain files

2016-11-09 Thread Nikita Kakuev via cfe-commits
nkakuev added a comment. In https://reviews.llvm.org/D26418#590417, @malcolm.parsons wrote: > In https://reviews.llvm.org/D26418#590383, @nkakuev wrote: > > > The warning is caused by a third-party code, but header filter won't help > > you to suppress it since it now relates to your sources. >

[PATCH] D26448: Avoid -Wshadow warnings for shadowed variables that aren't captured by lambdas with a default capture specifier

2016-11-09 Thread Alex Lorenz via cfe-commits
arphaman created this revision. arphaman added reviewers: rnk, rsmith. arphaman added a subscriber: cfe-commits. arphaman set the repository for this revision to rL LLVM. This is a follow-up patch to r286354. This patch avoids the -Wshadow warning for variables which shadow variables that aren't

r286363 - [CodeCompletion] Show block invocation results for block property setters

2016-11-09 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Nov 9 07:43:18 2016 New Revision: 286363 URL: http://llvm.org/viewvc/llvm-project?rev=286363=rev Log: [CodeCompletion] Show block invocation results for block property setters This commit changes the code completion results for block property setters: The default

[PATCH] D26071: [CodeCompletion] Show block invocation result for block property setters

2016-11-09 Thread Alex Lorenz via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286363: [CodeCompletion] Show block invocation results for block property setters (authored by arphaman). Changed prior to commit: https://reviews.llvm.org/D26071?vs=76178=77337#toc Repository: rL

[PATCH] D26203: [ClangTidy - performance-unnecessary-value-param]: Do not issue fix for functions that are referenced outside of callExpr

2016-11-09 Thread Felix Berger via cfe-commits
flx removed rL LLVM as the repository for this revision. flx updated this revision to Diff 77343. https://reviews.llvm.org/D26203 Files: clang-tidy/performance/UnnecessaryValueParamCheck.cpp test/clang-tidy/performance-unnecessary-value-param.cpp Index:

r286367 - clang-format: [TypeScript] Fix bug in handling of non-null operator.

2016-11-09 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Wed Nov 9 08:12:55 2016 New Revision: 286367 URL: http://llvm.org/viewvc/llvm-project?rev=286367=rev Log: clang-format: [TypeScript] Fix bug in handling of non-null operator. Before: var i = x!-1; After: var i = x! - 1; Modified:

[PATCH] D26203: [ClangTidy - performance-unnecessary-value-param]: Do not issue fix for functions that are referenced outside of callExpr

2016-11-09 Thread Felix Berger via cfe-commits
flx marked an inline comment as done. flx added a comment. Thanks for the review! https://reviews.llvm.org/D26203 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25764: Add end location of loop to loop metadata.

2016-11-09 Thread Florian Hahn via cfe-commits
fhahn updated this revision to Diff 77317. https://reviews.llvm.org/D25764 Files: lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.h lib/CodeGen/CGLoopInfo.cpp lib/CodeGen/CGLoopInfo.h lib/CodeGen/CGStmt.cpp lib/CodeGen/CGStmtOpenMP.cpp lib/CodeGen/CodeGenFunction.cpp

[PATCH] D26442: [analyzer] Fix crash on getSVal: handle case of CompoundVal

2016-11-09 Thread Ilya Palachev via cfe-commits
ilya-palachev created this revision. ilya-palachev added reviewers: dcoughlin, zaks.anna, NoQ. ilya-palachev added subscribers: cfe-commits, a.sidorin. ilya-palachev set the repository for this revision to rL LLVM. If the pointer to the uninitialized union is casted to the structure of another

[PATCH] D25764: Add end location of loop to loop metadata.

2016-11-09 Thread Florian Hahn via cfe-commits
fhahn added a comment. @rjmccall thanks for the feedback. I initially kept the arguments optional because the single Location argument used to be optional as well. But I think we can pass proper locations for all loops constructed by clang and I updated my patch to make the Start and End

r286365 - [AST] Dump dependent scope member expression with its member name

2016-11-09 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Nov 9 08:02:18 2016 New Revision: 286365 URL: http://llvm.org/viewvc/llvm-project?rev=286365=rev Log: [AST] Dump dependent scope member expression with its member name Modified: cfe/trunk/lib/AST/ASTDumper.cpp cfe/trunk/test/Misc/ast-dump-stmt.cpp Modified:

[PATCH] D16533: Bug 20796 - GCC's -Wstrict-prototypes warning not implemented in Clang

2016-11-09 Thread Alex Lorenz via cfe-commits
arphaman added reviewers: rsmith, bruno. arphaman set the repository for this revision to rL LLVM. arphaman updated this revision to Diff 77351. arphaman added a comment. I rebased the patch, adjusted the test and added a test case for Objective-C blocks. Repository: rL LLVM

[PATCH] D26286: [Sparc]: correct the ATOMIC_LLONG_LOCK_FREE macro

2016-11-09 Thread Douglas Katzman via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286376: [Sparc] LLONG is not lock-free atomic on v8 (authored by dougk). Changed prior to commit: https://reviews.llvm.org/D26286?vs=76879=77353#toc Repository: rL LLVM

Re: r284272 - Implement no_sanitize_address for global vars

2016-11-09 Thread Douglas Katzman via cfe-commits
will do. I'll initiate a review for the original change and a new one for the suggestions. The ExpectedFunctionGlobalVarMethodOrProperty diagnostic was essentially a copy-and-paste from here: def Alias : Attr { let Spellings = [GCC<"alias">]; let Args = [StringArgument<"Aliasee">]; let

Re: r285543 - Make output of ast-print closer to C++ code

2016-11-09 Thread Serge Pavlov via cfe-commits
The patch https://reviews.llvm.org/D26452 implements testing for output made with -ast-print, it fixes problems which this commit addressed (file declare_simd_ast_print.cpp) and tests them. Thanks, --Serge 2016-11-02 23:39 GMT+07:00 Richard Smith : > Test? > > On 30 Oct

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-09 Thread Felix Berger via cfe-commits
flx added a comment. Is the modernize-pass-by-value check configurable in a way to only trigger when copied constructor arguments are not moved? I think our use case has been to have move-constructor-init check enabled to catch cases that can be optimized but not trigger on every constructor

[PATCH] D25660: [Analyzer] Checker for iterators dereferenced beyond their range.

2016-11-09 Thread Balogh , Ádám via cfe-commits
baloghadamsoftware marked an inline comment as done. baloghadamsoftware added inline comments. Comment at: lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp:423 + +void IteratorPastEndChecker::handleComparison(CheckerContext , +

[PATCH] D26452: Make output of -ast-print a valid C++ code.

2016-11-09 Thread Serge Pavlov via cfe-commits
sepavloff created this revision. sepavloff added reviewers: ABataev, gribozavr, rtrieu. sepavloff added a subscriber: cfe-commits. Output generated by option -ast-print looks like C/C++ code, and it really is for plain C. For C++ the produced output was not valid C++ code, but the differences

[PATCH] D26454: Implement no_sanitize_address for global vars

2016-11-09 Thread Douglas Katzman via cfe-commits
dougk created this revision. dougk added a reviewer: aaron.ballman. dougk added a subscriber: cfe-commits. This was already submitted as r284272. Regarding the use of Attr as a local variable name, I would prefer to remain consistent with the existing code in CodeGenFunction.cpp which was not

r286376 - [Sparc] LLONG is not lock-free atomic on v8

2016-11-09 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Wed Nov 9 09:43:51 2016 New Revision: 286376 URL: http://llvm.org/viewvc/llvm-project?rev=286376=rev Log: [Sparc] LLONG is not lock-free atomic on v8 Differential Revision: https://reviews.llvm.org/D26286 Modified: cfe/trunk/lib/Basic/Targets.cpp

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-09 Thread Malcolm Parsons via cfe-commits
malcolm.parsons created this revision. malcolm.parsons added reviewers: aaron.ballman, alexfh, flx. malcolm.parsons added a subscriber: cfe-commits. An addition to the move-constructor-init check was duplicating the modernize-pass-by-value check. Remove the additional check and UseCERTSemantics

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-09 Thread Evgeniy Stepanov via cfe-commits
eugenis added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:735 + OPT_fno_sanitize_thread_data_races, + Opts.SanitizeThreadDataRaces); + Opts.SanitizeThreadStackTraces = It seems common to hardcode the

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-09 Thread Evgeniy Stepanov via cfe-commits
eugenis added a comment. Oh, and this needs a test. See test/Driver/fsanitize.c (search for -fsanitize-address-use-after-scope as an example). https://reviews.llvm.org/D26461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D26423: [clang-move] Support template class.

2016-11-09 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: clang-move/ClangMove.cpp:417 + if (const auto *FTD = CMD->getDescribedFunctionTemplate()) +UnremovedDeclsInOldHeader.erase(FTD); + else hokein wrote: > ioeric wrote: > > `erase(FTD ? FTD : CMD)` > We

[PATCH] D26454: Implement no_sanitize_address for global vars

2016-11-09 Thread Douglas Katzman via cfe-commits
dougk added a comment. Also note: In this change, the diagnostic messages are correct; it's the enum name that's bad. The diagnostic message is wrong for the 'section' attribute, which is fixed by https://reviews.llvm.org/D26459 https://reviews.llvm.org/D26454

[PATCH] D26340: [analyzer] Add SpinLockChecker for the Magenta kernel

2016-11-09 Thread Kareem Khazem via cfe-commits
khazem marked 4 inline comments as done. khazem added a comment. Devin, based on Artem's review of the other checker that I have posted [1] I am wondering about merging both this SpinLockChecker and the MutexChecker into PthreadLockChecker. Do you think it is still worth landing this

[PATCH] D26456: Handle adding new nested namespace in old namespace.

2016-11-09 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 77380. ioeric added a comment. - Added a test case with type references. https://reviews.llvm.org/D26456 Files: change-namespace/ChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index:

[PATCH] D26448: Avoid -Wshadow warnings for shadowed variables that aren't captured by lambdas with a default capture specifier

2016-11-09 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm, thanks Repository: rL LLVM https://reviews.llvm.org/D26448 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-09 Thread Aleksey Shlyapnikov via cfe-commits
alekseyshl added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:735 + OPT_fno_sanitize_thread_data_races, + Opts.SanitizeThreadDataRaces); + Opts.SanitizeThreadStackTraces = eugenis wrote: > It seems common

[PATCH] D26435: Use unique_ptr for cached tokens for default arguments in C++.

2016-11-09 Thread David Tarditi via cfe-commits
dtarditi updated this revision to Diff 77373. dtarditi added a comment. Thanks for the code review feedback - I've addressed it. Yes, we should use reset() instead of release(). I also deleted the unnecessary brackets. I don't have commit access, so if this looks good, could someone commit

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-09 Thread Aleksey Shlyapnikov via cfe-commits
alekseyshl created this revision. alekseyshl added a reviewer: eugenis. alekseyshl added a subscriber: cfe-commits. New clang flags, all default to true: -f[no-]sanitize-thread-data-races -f[no-]sanitize-thread-stack-traces -f[no-]sanitize-thread-atomics https://reviews.llvm.org/D26461 Files:

[PATCH] D26423: [clang-move] Support template class.

2016-11-09 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. Lg with a few nits. Comment at: clang-move/ClangMove.cpp:417 + if (const auto *FTD = CMD->getDescribedFunctionTemplate()) +UnremovedDeclsInOldHeader.erase(FTD);

[PATCH] D25850: Accept nullability annotations (_Nullable) on array parameters

2016-11-09 Thread Doug Gregor via cfe-commits
doug.gregor accepted this revision. doug.gregor added a comment. This revision is now accepted and ready to land. This is looking great, Jordan. Repository: rL LLVM https://reviews.llvm.org/D25850 ___ cfe-commits mailing list

[PATCH] D26423: [clang-move] Support template class.

2016-11-09 Thread Haojian Wu via cfe-commits
hokein marked 3 inline comments as done. hokein added inline comments. Comment at: clang-move/ClangMove.cpp:417 + if (const auto *FTD = CMD->getDescribedFunctionTemplate()) +UnremovedDeclsInOldHeader.erase(FTD); + else ioeric wrote: >

[PATCH] D26458: Protect nested-exceptions tests under no-exceptions

2016-11-09 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. In https://reviews.llvm.org/D26458#590865, @rmaprath wrote: > Not sure if either of these tests add much value to the no-exceptions > variant, using `std::nested_exception` with such a library seem pointless to > me. Perhaps marking these as `UNSUPPORTED` is a better

[clang-tools-extra] r286390 - [clang-tidy docs] Recommend using add_new_check.py more

2016-11-09 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Nov 9 14:03:30 2016 New Revision: 286390 URL: http://llvm.org/viewvc/llvm-project?rev=286390=rev Log: [clang-tidy docs] Recommend using add_new_check.py more Modified: clang-tools-extra/trunk/docs/clang-tidy/index.rst Modified:

[PATCH] D26342: [analyzer] Add MutexChecker for the Magenta kernel

2016-11-09 Thread Kareem Khazem via cfe-commits
khazem added a comment. Thanks for the detailed review Artem! I think that it's sensible to try merging this with PthreadLockChecker. In fact, I could also try merging the SpinLockChecker [1] that I've posted for review with PthreadLockChecker also, since they all implement similar

r286380 - [Sparc] Unbreak test

2016-11-09 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Wed Nov 9 11:02:07 2016 New Revision: 286380 URL: http://llvm.org/viewvc/llvm-project?rev=286380=rev Log: [Sparc] Unbreak test Modified: cfe/trunk/test/CodeGen/atomics-inlining.c Modified: cfe/trunk/test/CodeGen/atomics-inlining.c URL:

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-09 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 77371. malcolm.parsons updated the summary for this revision. malcolm.parsons added a comment. Add ValuesOnly option to modernize-pass-by-value. https://reviews.llvm.org/D26453 Files: clang-tidy/cert/CERTTidyModule.cpp

Re: r286243 - [clang-format] Remove (SourceManager, FileID) variants

2016-11-09 Thread Galina Kistanova via cfe-commits
Thank you! On Tue, Nov 8, 2016 at 11:57 AM, Daniel Jasper wrote: > Fixed in r286279. > > On Tue, Nov 8, 2016 at 10:45 AM, Galina Kistanova > wrote: > >> Hello Daniel, >> >> This commit broke at least one of our builders: >>

Re: [clang-tools-extra] r286222 - [clang-tidy] clang-analyzer-alpha* checks are not registered, so there's no need to disable them

2016-11-09 Thread Devin Coughlin via cfe-commits
> On Nov 8, 2016, at 9:44 AM, Malcolm Parsons wrote: > > On 8 November 2016 at 16:59, Alexander Kornienko wrote: >> On Nov 8, 2016 2:11 AM, "Malcolm Parsons" wrote: >>> Oh, I was using

Re: [clang-tools-extra] r286222 - [clang-tidy] clang-analyzer-alpha* checks are not registered, so there's no need to disable them

2016-11-09 Thread Devin Coughlin via cfe-commits
+ Anna, Alexander, and Artem. > On Nov 9, 2016, at 10:50 AM, Devin Coughlin via cfe-commits > wrote: > > >> On Nov 8, 2016, at 9:44 AM, Malcolm Parsons >> wrote: >> >> On 8 November 2016 at 16:59, Alexander Kornienko

[PATCH] D26466: [clang-tidy] Fix NOLINT test

2016-11-09 Thread Nikita Kakuev via cfe-commits
nkakuev created this revision. nkakuev added a reviewer: alexfh. nkakuev added a subscriber: cfe-commits. Test cases I've added in review https://reviews.llvm.org/D26218 were too brittle and weren't working properly. This patch fixes this. https://reviews.llvm.org/D26466 Files:

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-09 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added a comment. In https://reviews.llvm.org/D26453#590636, @flx wrote: > Is the modernize-pass-by-value check configurable in a way to only trigger > when copied constructor arguments are not moved? No; good idea. https://reviews.llvm.org/D26453

[PATCH] D24933: Enable configuration files in clang

2016-11-09 Thread Hans Wennborg via cfe-commits
hans added a comment. In https://reviews.llvm.org/D24933#590493, @sepavloff wrote: > > For Chromium, our build system provides a specific Clang version close to > > ToT, and obviously what flags to use when invoking it. (Developers can of > > course override the flags when configuring if they

[PATCH] D26459: Fix mismatched enum value name and diagnostic text.

2016-11-09 Thread Douglas Katzman via cfe-commits
dougk updated this revision to Diff 77367. dougk added a comment. inadvertent omission of attr-section.c test https://reviews.llvm.org/D26459 Files: include/clang/Basic/Attr.td include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/AttributeList.h test/Sema/attr-section.c

[clang-tools-extra] r286381 - Fix grammar

2016-11-09 Thread Philipp Stephani via cfe-commits
Author: phst Date: Wed Nov 9 11:47:56 2016 New Revision: 286381 URL: http://llvm.org/viewvc/llvm-project?rev=286381=rev Log: Fix grammar "allow" requires a direct object in this case. Modified: clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.el Modified:

[PATCH] D26457: Protect smart-pointer tests under no exceptions

2016-11-09 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 created this revision. rogfer01 added reviewers: EricWF, rmaprath, mclow.lists. rogfer01 added a subscriber: cfe-commits. Skip tests that expect an exception be thrown under no-exceptions. https://reviews.llvm.org/D26457 Files:

[PATCH] D26456: Handle adding new nested namespace in old namespace.

2016-11-09 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: hokein. ioeric added a subscriber: cfe-commits. https://reviews.llvm.org/D26456 Files: change-namespace/ChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index: unittests/change-namespace/ChangeNamespaceTests.cpp

[PATCH] D26459: Fix mismatched enum value name and diagnostic text.

2016-11-09 Thread Douglas Katzman via cfe-commits
dougk created this revision. dougk added a reviewer: aaron.ballman. dougk added a subscriber: cfe-commits. Herald added a subscriber: aemerson. ExpectedFunctionGlobalVarMethodOrProperty would previously say "functions and global variables" instead of "functions, methods, properties, and global

[PATCH] D26406: Add -Wduplicate-protocol for existing diagnostic

2016-11-09 Thread Dave Lee via cfe-commits
kastiglione added a comment. Thanks @arphaman, are you able to commit this? https://reviews.llvm.org/D26406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-09 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 77358. malcolm.parsons added a comment. Update comment in performance-unnecessary-value-param check. https://reviews.llvm.org/D26453 Files: clang-tidy/cert/CERTTidyModule.cpp clang-tidy/misc/MoveConstructorInitCheck.cpp

[PATCH] D26458: Protect nested-exceptions tests under no-exceptions

2016-11-09 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 created this revision. rogfer01 added reviewers: mclow.lists, EricWF, rmaprath. rogfer01 added a subscriber: cfe-commits. Skip tests that expect an exception be thrown. https://reviews.llvm.org/D26458 Files: test/std/language.support/support.exception/except.nested/assign.pass.cpp

[PATCH] D26218: [clang-tidy] Ignore notes along with a warning when processing NOLINT

2016-11-09 Thread Nikita Kakuev via cfe-commits
nkakuev marked an inline comment as done. nkakuev added inline comments. Comment at: test/clang-tidy/nolint.cpp:36 +} +// CHECK-NOT: trigger_warning.h:{{.*}} warning: The left operand of '>' is a garbage value +// CHECK-NOT: :[[@LINE-4]]:{{.*}} note alexfh

[PATCH] D26150: [libc++abi] Fix test_exception_storage_nodynmem on MacOS

2016-11-09 Thread Shoaib Meenai via cfe-commits
smeenai abandoned this revision. smeenai added a comment. Abandoning this then. In case the new incarnation of the test needs to overwrite any memory allocation methods, this diff has the most reliable way to do it on OS X :) https://reviews.llvm.org/D26150

[PATCH] D26415: [XRay] Support AArch64 in Clang

2016-11-09 Thread Serge Rogatch via cfe-commits
rSerge added inline comments. Comment at: lib/Driver/Tools.cpp:4903-4906 if (Triple.getOS() == llvm::Triple::Linux && (Triple.getArch() == llvm::Triple::arm || - Triple.getArch() == llvm::Triple::x86_64)) { + Triple.getArch() == llvm::Triple::x86_64

Re: r272668 - clang-format: [JS] Fix failing format with TypeScript casts.

2016-11-09 Thread Nico Weber via cfe-commits
This apparently caused https://llvm.org/bugs/show_bug.cgi?id=30527 On Tue, Jun 14, 2016 at 9:54 AM, Daniel Jasper via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: djasper > Date: Tue Jun 14 08:54:38 2016 > New Revision: 272668 > > URL:

Re: r272668 - clang-format: [JS] Fix failing format with TypeScript casts.

2016-11-09 Thread Nico Weber via cfe-commits
Oh, looks like someone already sent a fix: https://reviews.llvm.org/D26163 On Wed, Nov 9, 2016 at 4:41 PM, Nico Weber wrote: > This apparently caused https://llvm.org/bugs/show_bug.cgi?id=30527 > > On Tue, Jun 14, 2016 at 9:54 AM, Daniel Jasper via cfe-commits < >

[clang-tools-extra] r286404 - [clang-tidy docs] Minor formatting changes.

2016-11-09 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Nov 9 16:31:07 2016 New Revision: 286404 URL: http://llvm.org/viewvc/llvm-project?rev=286404=rev Log: [clang-tidy docs] Minor formatting changes. Modified: clang-tools-extra/trunk/docs/clang-tidy/index.rst Modified: clang-tools-extra/trunk/docs/clang-tidy/index.rst

[PATCH] D26227: Don't require nullability on 'va_list'.

2016-11-09 Thread Doug Gregor via cfe-commits
doug.gregor accepted this revision. doug.gregor added a comment. This revision is now accepted and ready to land. I don't see a better way to do this. Nice meta programming hack. Repository: rL LLVM https://reviews.llvm.org/D26227 ___

[PATCH] D26108: Add -Wnullability-completeness-on-arrays.

2016-11-09 Thread Doug Gregor via cfe-commits
doug.gregor accepted this revision. doug.gregor added a comment. This revision is now accepted and ready to land. Looks good! I appreciate the refactoring of recordNullabilitySeen Repository: rL LLVM https://reviews.llvm.org/D26108 ___

[PATCH] D26109: Warn when 'assume_nonnull' infers nullability within an array.

2016-11-09 Thread Doug Gregor via cfe-commits
doug.gregor accepted this revision. doug.gregor added a comment. This revision is now accepted and ready to land. LGTM! Repository: rL LLVM https://reviews.llvm.org/D26109 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-09 Thread Evgeniy Stepanov via cfe-commits
eugenis added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:735 + OPT_fno_sanitize_thread_data_races, + Opts.SanitizeThreadDataRaces); + Opts.SanitizeThreadStackTraces = alekseyshl wrote: > eugenis wrote: >

Re: r286376 - [Sparc] LLONG is not lock-free atomic on v8

2016-11-09 Thread Joerg Sonnenberger via cfe-commits
On Wed, Nov 09, 2016 at 03:43:52PM -, Douglas Katzman via cfe-commits wrote: > Author: dougk > Date: Wed Nov 9 09:43:51 2016 > New Revision: 286376 > > URL: http://llvm.org/viewvc/llvm-project?rev=286376=rev > Log: > [Sparc] LLONG is not lock-free atomic on v8 Technically, even 32bit is

r286400 - Use an artificial debug location for non-virtual thunks.

2016-11-09 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Wed Nov 9 15:43:51 2016 New Revision: 286400 URL: http://llvm.org/viewvc/llvm-project?rev=286400=rev Log: Use an artificial debug location for non-virtual thunks. Thunks are artificial and have no corresponding source location except for the line number on the DISubprogram,

[PATCH] D26471: [Sema] Use MS ABI behavior for dllexport in Itanium

2016-11-09 Thread Shoaib Meenai via cfe-commits
smeenai created this revision. smeenai added a reviewer: compnerd. smeenai added a subscriber: cfe-commits. Similar to r284288, make the Itanium ABI follow MS ABI dllexport semantics in the case of an explicit instantiation declaration followed by a dllexport explicit instantiation definition.

[PATCH] D22770: [Sema, NFC] Reset HasFallthroughStmt when clearing FunctionScopeInfo

2016-11-09 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286409: [Sema][NFC] Reset HasFallthroughStmt when clearing FunctionScopeInfo (authored by epilk). Changed prior to commit: https://reviews.llvm.org/D22770?vs=65380=77399#toc Repository: rL LLVM

[PATCH] D26476: [AMDGPU] Add support for f16 builtin functions for VI+

2016-11-09 Thread Konstantin Zhuravlyov via cfe-commits
kzhuravl created this revision. kzhuravl added reviewers: tstellarAMD, arsenm. kzhuravl added a subscriber: cfe-commits. Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng. https://reviews.llvm.org/D26476 Files: include/clang/Basic/BuiltinsAMDGPU.def lib/CodeGen/CGBuiltin.cpp

[PATCH] D26415: [XRay] Support AArch64 in Clang

2016-11-09 Thread Dean Michael Berris via cfe-commits
dberris added inline comments. Comment at: lib/Driver/Tools.cpp:4903-4906 if (Triple.getOS() == llvm::Triple::Linux && (Triple.getArch() == llvm::Triple::arm || - Triple.getArch() == llvm::Triple::x86_64)) { + Triple.getArch() ==

[PATCH] D23130: [Clang-tidy] Add a check for definitions in the global namespace.

2016-11-09 Thread Benjamin Kramer via cfe-commits
bkramer updated this revision to Diff 77410. bkramer added a comment. Add extern "C++" test case. https://reviews.llvm.org/D23130 Files: clang-tidy/google/CMakeLists.txt clang-tidy/google/GlobalNamesCheck.cpp clang-tidy/google/GlobalNamesCheck.h

Re: [clang-tools-extra] r286222 - [clang-tidy] clang-analyzer-alpha* checks are not registered, so there's no need to disable them

2016-11-09 Thread Alexander Kornienko via cfe-commits
Malcolm, does it work for you? On Wed, Nov 9, 2016 at 10:56 AM, Devin Coughlin wrote: > + Anna, Alexander, and Artem. > > > On Nov 9, 2016, at 10:50 AM, Devin Coughlin via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > > > > >> On Nov 8, 2016, at 9:44 AM, Malcolm

[PATCH] D26340: [analyzer] Add SpinLockChecker for the Magenta kernel

2016-11-09 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. Thanks for adding the path notes and adopting CallDescription. I've added some additional comments inline, which are mostly minor nits. Two additional important changes -- and I should have noted these in the initial review -- is that it would be good to remove a

[PATCH] D26108: Add -Wnullability-completeness-on-arrays.

2016-11-09 Thread Jordan Rose via cfe-commits
jordan_rose added a comment. Ah, my apologies, @ahatanak. I was testing against the Swift branch of Clang. Repository: rL LLVM https://reviews.llvm.org/D26108 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r286411 - Relax testcase so it also works on Windows.

2016-11-09 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Wed Nov 9 17:05:16 2016 New Revision: 286411 URL: http://llvm.org/viewvc/llvm-project?rev=286411=rev Log: Relax testcase so it also works on Windows. Modified: cfe/trunk/test/CodeGenCXX/debug-info-thunk.cpp Modified: cfe/trunk/test/CodeGenCXX/debug-info-thunk.cpp URL:

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-09 Thread Dmitry Vyukov via cfe-commits
dvyukov added inline comments. Comment at: include/clang/Driver/Options.td:733 + Group, Flags<[CC1Option]>, + HelpText<"Enable data race detection in ThreadSanitizer">; +def fno_sanitize_thread_data_races :

r286412 - Remove extra whitespace

2016-11-09 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Wed Nov 9 17:10:44 2016 New Revision: 286412 URL: http://llvm.org/viewvc/llvm-project?rev=286412=rev Log: Remove extra whitespace Modified: cfe/trunk/test/CodeGenCXX/debug-info-thunk.cpp Modified: cfe/trunk/test/CodeGenCXX/debug-info-thunk.cpp URL:

[PATCH] D25985: [analyzer] Export coverage information from the analyzer.

2016-11-09 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. > Added a python script to merge gcov files. When the patches that are being reviewed are growing new functionality, it's much more difficult to review them. Please, submit the python script as a separate patch. Comment at:

[PATCH] D26108: Add -Wnullability-completeness-on-arrays.

2016-11-09 Thread Akira Hatanaka via cfe-commits
ahatanak added a comment. In https://reviews.llvm.org/D26108#591270, @jordan_rose wrote: > Ah, my apologies, @ahatanak. I was testing against the Swift branch of Clang. That's OK. I haven't tested it yet, but the patch itself looks fine to me. Comment at:

[PATCH] D26479: [PowerPC] Implement remaining permute builtins in altivec.h - Clang portion

2016-11-09 Thread Nemanja Ivanovic via cfe-commits
nemanjai created this revision. nemanjai added reviewers: hfinkel, kbarton, syzaara, lei, jtony, sfertile, amehsan. nemanjai added subscribers: cfe-commits, echristo. nemanjai set the repository for this revision to rL LLVM. This adds the following signatures into altivec.h: vector bool long

[PATCH] D23130: [Clang-tidy] Add a check for definitions in the global namespace.

2016-11-09 Thread Benjamin Kramer via cfe-commits
bkramer marked 2 inline comments as done. bkramer added a comment. In https://reviews.llvm.org/D23130#589643, @alexfh wrote: > > and generally frowned upon in many codebases (e.g. LLVM) > > Should it still be a part of google/? The old check was enforcing a part of > the Google C++ style guide,

[PATCH] D26342: [analyzer] Add MutexChecker for the Magenta kernel

2016-11-09 Thread Artem Dergachev via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D26342#590881, @khazem wrote: > I think that it's sensible to try merging this with PthreadLockChecker. In > fact, I could also try merging the SpinLockChecker [1] that I've posted for > review with PthreadLockChecker also, since they all

r286421 - [libclang] Fix issue with clang_tokenize and make sure it interprets CXSourceRange as half-open character range.

2016-11-09 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Wed Nov 9 17:58:39 2016 New Revision: 286421 URL: http://llvm.org/viewvc/llvm-project?rev=286421=rev Log: [libclang] Fix issue with clang_tokenize and make sure it interprets CXSourceRange as half-open character range. Patch provided by Emilio Cobos Álvarez!

[PATCH] D26471: [Sema] Use MS ABI behavior for dllexport in Itanium

2016-11-09 Thread Shoaib Meenai via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286419: [Sema] Use MS ABI behavior for dllexport in Itanium (authored by smeenai). Changed prior to commit: https://reviews.llvm.org/D26471?vs=77392=77418#toc Repository: rL LLVM

[PATCH] D26108: Add -Wnullability-completeness-on-arrays.

2016-11-09 Thread Jordan Rose via cfe-commits
jordan_rose added inline comments. Comment at: lib/Sema/SemaType.cpp:3988 // Allow arrays of auto if we are a generic lambda parameter. // i.e. [](auto ()[5]) { return array[0]; }; OK if (AT && D.getContext() != Declarator::LambdaExprParameterContext) {

[PATCH] D26466: [clang-tidy] Fix NOLINT test

2016-11-09 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Thanks! LG https://reviews.llvm.org/D26466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r286419 - [Sema] Use MS ABI behavior for dllexport in Itanium

2016-11-09 Thread Shoaib Meenai via cfe-commits
Author: smeenai Date: Wed Nov 9 17:52:20 2016 New Revision: 286419 URL: http://llvm.org/viewvc/llvm-project?rev=286419=rev Log: [Sema] Use MS ABI behavior for dllexport in Itanium Similar to r284288, make the Itanium ABI follow MS ABI dllexport semantics in the case of an explicit instantiation

[PATCH] D26340: [analyzer] Add SpinLockChecker for the Magenta kernel

2016-11-09 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. In https://reviews.llvm.org/D26340#590882, @khazem wrote: > Devin, based on Artem's review of the other checker that I have posted [1] I > am wondering about merging both this SpinLockChecker and the MutexChecker > into PthreadLockChecker. Do you think it is still

[PATCH] D26452: Make output of -ast-print a valid C++ code.

2016-11-09 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a reviewer: rsmith. rsmith added a comment. This revision is now accepted and ready to land. I've not looked at all of the test changes in detail, but this looks fine to me. https://reviews.llvm.org/D26452

r286354 - [Sema] Avoid -Wshadow warnings for shadowed variables that aren't captured

2016-11-09 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Nov 9 04:38:57 2016 New Revision: 286354 URL: http://llvm.org/viewvc/llvm-project?rev=286354=rev Log: [Sema] Avoid -Wshadow warnings for shadowed variables that aren't captured by lambdas with an explicit capture list This commit avoids the -Wshadow warning for

[PATCH] D26278: Avoid -Wshadow warnings for shadowed variables that aren't captured by lambdas with an explicit capture list

2016-11-09 Thread Alex Lorenz via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286354: [Sema] Avoid -Wshadow warnings for shadowed variables that aren't captured (authored by arphaman). Changed prior to commit: https://reviews.llvm.org/D26278?vs=77205=77328#toc Repository: rL

[PATCH] D26418: [clang-tidy] Add '-suppress-checks-filter' option to suppress diagnostics from certain files

2016-11-09 Thread Nikita Kakuev via cfe-commits
nkakuev added a comment. In https://reviews.llvm.org/D26418#590417, @malcolm.parsons wrote: > In https://reviews.llvm.org/D26418#590383, @nkakuev wrote: > > > The warning is caused by a third-party code, but header filter won't help > > you to suppress it since it now relates to your sources. >

[PATCH] D26418: [clang-tidy] Add '-suppress-checks-filter' option to suppress diagnostics from certain files

2016-11-09 Thread Malcolm Parsons via cfe-commits
malcolm.parsons resigned from this revision. malcolm.parsons removed a reviewer: malcolm.parsons. malcolm.parsons added a comment. In https://reviews.llvm.org/D26418#590476, @nkakuev wrote: > On a second thought, ignoring note locations might be a good enough solution > for me. > How should I

r286356 - [VFS] Replace TimeValue usage with std::chrono

2016-11-09 Thread Pavel Labath via cfe-commits
Author: labath Date: Wed Nov 9 04:52:22 2016 New Revision: 286356 URL: http://llvm.org/viewvc/llvm-project?rev=286356=rev Log: [VFS] Replace TimeValue usage with std::chrono Summary: NFCI Reviewers: benlangmuir, zturner Subscribers: cfe-commits Differential Revision:

[PATCH] D25948: [VFS] Replace TimeValue usage with std::chrono

2016-11-09 Thread Pavel Labath via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286356: [VFS] Replace TimeValue usage with std::chrono (authored by labath). Changed prior to commit: https://reviews.llvm.org/D25948?vs=75723=77330#toc Repository: rL LLVM

[PATCH] D26335: [ms] Reinstate https://reviews.llvm.org/D14748 after https://reviews.llvm.org/D20291

2016-11-09 Thread Andrea Di Biagio via cfe-commits
andreadb added inline comments. Comment at: lib/Headers/x86intrin.h:49 +static __inline__ unsigned int __attribute__((__always_inline__, __nodebug__)) +__tzcnt_u32(unsigned int __X) { return __X ? __builtin_ctz(__X) : 32; } +#ifdef __x86_64__ hans wrote: >

r286357 - Replace TimeValue with TimePoint in BuildSystem.cpp. NFC.

2016-11-09 Thread Pavel Labath via cfe-commits
Author: labath Date: Wed Nov 9 05:19:39 2016 New Revision: 286357 URL: http://llvm.org/viewvc/llvm-project?rev=286357=rev Log: Replace TimeValue with TimePoint in BuildSystem.cpp. NFC. Modified: cfe/trunk/tools/libclang/BuildSystem.cpp Modified: cfe/trunk/tools/libclang/BuildSystem.cpp

[PATCH] D26466: [clang-tidy] Fix NOLINT test

2016-11-09 Thread Nikita Kakuev via cfe-commits
nkakuev added a comment. @alexfh, you're welcome! Can you please commit this patch? https://reviews.llvm.org/D26466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D22955: [MSVC] Improved late parsing of template functions.

2016-11-09 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Ping https://reviews.llvm.org/D22955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26244: [Driver] Prefer libraries installed next to Clang over those from GCC

2016-11-09 Thread Jonas Hahnfeld via cfe-commits
Hahnfeld added a comment. ping https://reviews.llvm.org/D26244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >