Re: [PATCH] D15469: Expose cxx constructor and method properties through libclang and python bindings.

2016-04-13 Thread Jonathan B Coe via cfe-commits
jbcoe updated this revision to Diff 53519. jbcoe added a comment. Remove python test for deleted method. I missed this because the python tests are not run as part of check-clang - is this something I could submit a patch to change? http://reviews.llvm.org/D15469 Files: bindings/python/clan

Re: [PATCH] D18265: [clang-tidy] New: checker misc-assign-operator-return

2016-04-13 Thread Balogh , Ádám via cfe-commits
baloghadamsoftware added inline comments. Comment at: clang-tidy/misc/AssignOperatorCheck.cpp:63 @@ +62,3 @@ + + Finder->addMatcher(returnStmt(IsBadReturnStatement, hasAncestor(IsGoodAssign)) + .bind("returnStmt"), sbenza wrote: > balogha

r266176 - [modules] Add some missing blockinfo records. No functionality change except to llvm-bcanalyzer output.

2016-04-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Apr 13 02:41:35 2016 New Revision: 266176 URL: http://llvm.org/viewvc/llvm-project?rev=266176&view=rev Log: [modules] Add some missing blockinfo records. No functionality change except to llvm-bcanalyzer output. Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp Mo

r266177 - ASTWriterDecl.cpp: Prune a couple of \param(s), corresponding to r266160. [-Wdocumentation]

2016-04-13 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Wed Apr 13 02:45:10 2016 New Revision: 266177 URL: http://llvm.org/viewvc/llvm-project?rev=266177&view=rev Log: ASTWriterDecl.cpp: Prune a couple of \param(s), corresponding to r266160. [-Wdocumentation] Modified: cfe/trunk/lib/Serialization/ASTWriterDecl.cpp Modified:

r266178 - constexpr -> const to appease MSVC bots.

2016-04-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Apr 13 02:47:38 2016 New Revision: 266178 URL: http://llvm.org/viewvc/llvm-project?rev=266178&view=rev Log: constexpr -> const to appease MSVC bots. Modified: cfe/trunk/include/clang/Serialization/ASTWriter.h Modified: cfe/trunk/include/clang/Serialization/ASTWriter.

r266180 - [OpenCL] Move OpenCLImageTypes.def from clangAST to clangBasic library.

2016-04-13 Thread Alexey Bader via cfe-commits
Author: bader Date: Wed Apr 13 03:33:41 2016 New Revision: 266180 URL: http://llvm.org/viewvc/llvm-project?rev=266180&view=rev Log: [OpenCL] Move OpenCLImageTypes.def from clangAST to clangBasic library. Putting OpenCLImageTypes.def to clangAST library violates layering requirement: "It's not OK

Re: [PATCH] D18265: [clang-tidy] New: checker misc-assign-operator-return

2016-04-13 Thread Balogh , Ádám via cfe-commits
baloghadamsoftware added a comment. misc-unconventional-assign-operator, misc-assign-operator-conventions, misc-non-idiomatic-assign-operator or something else then? http://reviews.llvm.org/D18265 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang-tools-extra] r266181 - [clang-tidy] add_new_check.py should fail if check name starts with the module name

2016-04-13 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Apr 13 03:46:32 2016 New Revision: 266181 URL: http://llvm.org/viewvc/llvm-project?rev=266181&view=rev Log: [clang-tidy] add_new_check.py should fail if check name starts with the module name + updated formatting Modified: clang-tools-extra/trunk/clang-tidy/add_new_

r266182 - [clang-tidy] Disable misc-unused-parameters for clang.

2016-04-13 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Apr 13 03:47:42 2016 New Revision: 266182 URL: http://llvm.org/viewvc/llvm-project?rev=266182&view=rev Log: [clang-tidy] Disable misc-unused-parameters for clang. Modified: cfe/trunk/.clang-tidy Modified: cfe/trunk/.clang-tidy URL: http://llvm.org/viewvc/llvm-projec

r266184 - Try to use readability-identifier-naming check on Clang.

2016-04-13 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Apr 13 03:59:49 2016 New Revision: 266184 URL: http://llvm.org/viewvc/llvm-project?rev=266184&view=rev Log: Try to use readability-identifier-naming check on Clang. Modified: cfe/trunk/.clang-tidy Modified: cfe/trunk/.clang-tidy URL: http://llvm.org/viewvc/llvm-proj

r266186 - Enable support for __float128 in Clang

2016-04-13 Thread Nemanja Ivanovic via cfe-commits
Author: nemanjai Date: Wed Apr 13 04:49:45 2016 New Revision: 266186 URL: http://llvm.org/viewvc/llvm-project?rev=266186&view=rev Log: Enable support for __float128 in Clang This patch corresponds to review: http://reviews.llvm.org/D15120 It adds support for the __float128 keyword, literals and

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

2016-04-13 Thread Alex Pilkiewicz via cfe-commits
pilki added inline comments. Comment at: clang-tidy/readability/DeletedDefaultCheck.cpp:37 @@ +36,3 @@ + +void DeletedDefaultCheck::check(const MatchFinder::MatchResult &Result) { + const StringRef Message = "%0 is explicitly defaulted but implicitly " alexfh wr

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

2016-04-13 Thread Alex Pilkiewicz via cfe-commits
pilki updated this revision to Diff 53525. pilki marked 2 inline comments as done. http://reviews.llvm.org/D18961 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/DeletedDefaultCheck.cpp clang-tidy/readability/DeletedDefaultCheck.h clang-tidy/readability/Readability

r266187 - [modules] Add OpenCLImageTypes.def to module map to fix the modules build.

2016-04-13 Thread Alexey Bader via cfe-commits
Author: bader Date: Wed Apr 13 04:54:47 2016 New Revision: 266187 URL: http://llvm.org/viewvc/llvm-project?rev=266187&view=rev Log: [modules] Add OpenCLImageTypes.def to module map to fix the modules build. Modified: cfe/trunk/include/clang/module.modulemap Modified: cfe/trunk/include/clang/

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

2016-04-13 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Thank you for addressing the comments! I'll commit the patch for you. http://reviews.llvm.org/D18961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2016-04-13 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. The patch doesn't apply cleanly. Please rebase it against current HEAD. http://reviews.llvm.org/D18961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2016-04-13 Thread Alex Pilkiewicz via cfe-commits
pilki updated this revision to Diff 53529. http://reviews.llvm.org/D18961 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/DeletedDefaultCheck.cpp clang-tidy/readability/DeletedDefaultCheck.h clang-tidy/readability/ReadabilityTidyModule.cpp docs/ReleaseNotes.rst

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

2016-04-13 Thread Alex Pilkiewicz via cfe-commits
pilki added a comment. I did svn up and reuploaded the diff. I did not see any changes on files I touched, so I'm not sure it worked. http://reviews.llvm.org/D18961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

r266188 - [Clang][AVX512][Builtin] Adding supporting to intrinsics of cvt{b|d|q}2mask{128|256|512} and cvtmask2{b|d|q}{128|256|512} instruction set.

2016-04-13 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Wed Apr 13 05:49:37 2016 New Revision: 266188 URL: http://llvm.org/viewvc/llvm-project?rev=266188&view=rev Log: [Clang][AVX512][Builtin] Adding supporting to intrinsics of cvt{b|d|q}2mask{128|256|512} and cvtmask2{b|d|q}{128|256|512} instruction set. Differential Revision:

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

2016-04-13 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Something is weird with your patch: it has names starting with a space (note two spaces between "Index:" and "clang-tidy/..."): Index: clang-tidy/readability/CMakeLists.txt === --- clang-tidy/readabil

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

2016-04-13 Thread Alex Pilkiewicz via cfe-commits
pilki updated this revision to Diff 53532. http://reviews.llvm.org/D18961 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/DeletedDefaultCheck.cpp clang-tidy/readability/DeletedDefaultCheck.h clang-tidy/readability/ReadabilityTidyModule.cpp docs/ReleaseNotes.rst

Re: [PATCH] D19038: Add AST Matchers for CXXConstructorDecl::isDelegatingConstructor and CXXMethodDecl::isUserProvided.

2016-04-13 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. LG. http://reviews.llvm.org/D19038 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2016-04-13 Thread Alex Pilkiewicz via cfe-commits
pilki updated this revision to Diff 53533. http://reviews.llvm.org/D18961 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/DeletedDefaultCheck.cpp clang-tidy/readability/DeletedDefaultCheck.h clang-tidy/readability/ReadabilityTidyModule.cpp docs/ReleaseNotes.rst doc

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

2016-04-13 Thread Alex Pilkiewicz via cfe-commits
pilki added a comment. Sorry, both my 'diff' and my 'svn' command added some magical coloring... It should be good now. http://reviews.llvm.org/D18961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

r266189 - Add AST Matchers for CXXConstructorDecl::isDelegatingConstructor and CXXMethodDecl::isUserProvided.

2016-04-13 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Apr 13 06:13:08 2016 New Revision: 266189 URL: http://llvm.org/viewvc/llvm-project?rev=266189&view=rev Log: Add AST Matchers for CXXConstructorDecl::isDelegatingConstructor and CXXMethodDecl::isUserProvided. Summary: Added two AST matchers: isDelegatingConstructor for C

Re: [PATCH] D19038: Add AST Matchers for CXXConstructorDecl::isDelegatingConstructor and CXXMethodDecl::isUserProvided.

2016-04-13 Thread Alexander Kornienko via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266189: Add AST Matchers for CXXConstructorDecl::isDelegatingConstructor and… (authored by alexfh). Changed prior to commit: http://reviews.llvm.org/D19038?vs=53479&id=53534#toc Repository: rL LLVM

Re: [PATCH] D17815: [libc++abi] Use fallback_malloc to allocate __cxa_eh_globals in case of dynamic memory exhaustion.

2016-04-13 Thread Igor Kudrin via cfe-commits
ikudrin added a comment. Ping... http://reviews.llvm.org/D17815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r266190 - [clang-tidy] Add a readability-deleted-default clang-tidy check.

2016-04-13 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Apr 13 06:33:40 2016 New Revision: 266190 URL: http://llvm.org/viewvc/llvm-project?rev=266190&view=rev Log: [clang-tidy] Add a readability-deleted-default clang-tidy check. Checks if constructors and assignment operators that are marked '= default' are actually deleted by

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

2016-04-13 Thread Alexander Kornienko via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266190: [clang-tidy] Add a readability-deleted-default clang-tidy check. (authored by alexfh). Changed prior to commit: http://reviews.llvm.org/D18961?vs=53533&id=53536#toc Repository: rL LLVM http:

Re: [PATCH] D18584: Complete support for C++ Core Guidelines Type.6: Always initialize a member variable.

2016-04-13 Thread Alexander Kornienko via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266191: Complete support for C++ Core Guidelines Type.6: Always initialize a member… (authored by alexfh). Changed prior to commit: http://reviews.llvm.org/D18584?vs=53480&id=53537#toc Repository: rL

[clang-tools-extra] r266191 - Complete support for C++ Core Guidelines Type.6: Always initialize a member variable.

2016-04-13 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Apr 13 06:35:47 2016 New Revision: 266191 URL: http://llvm.org/viewvc/llvm-project?rev=266191&view=rev Log: Complete support for C++ Core Guidelines Type.6: Always initialize a member variable. Summary: Added the remaining features needed to satisfy C++ Core Guideline T

[PATCH] D19056: [MSVC] Fix check for wchar_t type in case of -fno-wchar

2016-04-13 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin created this revision. DmitryPolukhin added a reviewer: rnk. DmitryPolukhin added a subscriber: cfe-commits. The example below should work identically with and without compiler native wchar_t support. void foo(wchar_t * t = L""); http://reviews.llvm.org/D19056 Files: lib/Sema/

r266166 - [PPC64][VSX] Add a couple of new data types for vec_vsx_ld and vec_vsx_st intrinsics and fix incorrect testcases with minor refactoring

2016-04-13 Thread Chuang-Yu Cheng via cfe-commits
Author: cycheng Date: Wed Apr 13 00:16:31 2016 New Revision: 266166 URL: http://llvm.org/viewvc/llvm-project?rev=266166&view=rev Log: [PPC64][VSX] Add a couple of new data types for vec_vsx_ld and vec_vsx_st intrinsics and fix incorrect testcases with minor refactoring New added data types: ve

Re: [PATCH] D18652: [Inline asm] Correctly parse GCC-style asm line following MS-style asm line

2016-04-13 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a reviewer: rsmith. d.zobnin.bugzilla removed a subscriber: rsmith. d.zobnin.bugzilla updated this revision to Diff 53543. d.zobnin.bugzilla added a comment. Richard, thank you for the review! I've created a static function to check if this is a GCC asm statement as you r

Re: [PATCH] D18473: AMDGPU: Add test for generic builtin behavior

2016-04-13 Thread Tom Stellard via cfe-commits
tstellarAMD accepted this revision. This revision is now accepted and ready to land. Comment at: lib/Basic/Targets.cpp:1854-1857 @@ -1853,1 +1853,6 @@ + bool isCLZForZeroUndef() const override { +// It is -1 instead of expected for intrinsic. +return true; + } + --

r266195 - [Clang][AVX512][Builtin] Adding support for VBROADCAST and VPBROADCASTB/W/D/Q instruction set

2016-04-13 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Wed Apr 13 07:58:01 2016 New Revision: 266195 URL: http://llvm.org/viewvc/llvm-project?rev=266195&view=rev Log: [Clang][AVX512][Builtin] Adding support for VBROADCAST and VPBROADCASTB/W/D/Q instruction set Differential Revision: http://reviews.llvm.org/D19012 Modified:

Re: [PATCH] D16396: Warn if variable cannot be implicitly instantiated

2016-04-13 Thread Serge Pavlov via cfe-commits
sepavloff updated this revision to Diff 53547. sepavloff added a comment. Updated patch according to review notes. The patch adds diagnostics for undefined function templates, in a similar way as for template variables. These two warnings are classified into different groups. Warnings on undefin

r266198 - [OPENMP 4.0] Fixed DSA analysis for taskloop directives.

2016-04-13 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Apr 13 08:36:48 2016 New Revision: 266198 URL: http://llvm.org/viewvc/llvm-project?rev=266198&view=rev Log: [OPENMP 4.0] Fixed DSA analysis for taskloop directives. Patch make clang to perform analysis for task-based directives also for taskloop-based directives. Modifi

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

2016-04-13 Thread Vladimir Yakovlev via cfe-commits
vbyakovl updated this revision to Diff 53548. vbyakovl added a comment. Sema/SemaType.cpp: Vla works in C++ by default. An error is printed if a class has not default constructor. test/SemaCXX/c99-variable-length-array.cpp: Changes is removed test/SemaCXX/vla.cpp: changes is removed. test/CodeGen

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-13 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added a subscriber: malcolm.parsons. Comment at: docs/clang-tidy/checks/misc-sizeof-expression.rst:16 @@ +15,3 @@ +A common mistake is to query the ``sizeof`` of an integer literal. This is +equivalent to query the size of it's type (probably ``int``). The intent o

r266199 - Add functions declared in ctype.h to builtin function database. All functions are annotated with nothrow and pure attribute, which enables better optimization.

2016-04-13 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Apr 13 08:55:58 2016 New Revision: 266199 URL: http://llvm.org/viewvc/llvm-project?rev=266199&view=rev Log: Add functions declared in ctype.h to builtin function database. All functions are annotated with nothrow and pure attribute, which enables better optimizatio

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

2016-04-13 Thread Aaron Ballman via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Commit in r266199, thank you! http://reviews.llvm.org/D18970 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D19057: [analyzer] Let TK_PreserveContents span across the whole base region.

2016-04-13 Thread Artem Dergachev via cfe-commits
NoQ created this revision. NoQ added reviewers: zaks.anna, dcoughlin. NoQ added a subscriber: cfe-commits. Essentially, if `s` is a structure, and `foo(const void *)` is evaluated conservatively, then `foo(&s)` does not invalidate `s`, but `foo(&(s.x))` invalidates the whole `s`, because the sto

r266201 - Reverting r266199; it causes build bot failures.

2016-04-13 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Apr 13 09:53:52 2016 New Revision: 266201 URL: http://llvm.org/viewvc/llvm-project?rev=266201&view=rev Log: Reverting r266199; it causes build bot failures. http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/3255 http://lab.llvm.org:8011/builders/clang-ppc64

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

2016-04-13 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. I reverted this in r266201; it was causing build bot failures like: http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/3517 Can you please take a look? Thanks! http://reviews.llvm.org/D18970 ___ cfe-commit

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

2016-04-13 Thread Taewook Oh via cfe-commits
Sure, I'll take a look. Thanks! -- Taewook On 4/13/16, 8:00 AM, "Aaron Ballman" wrote: >aaron.ballman added a comment. > >I reverted this in r266201; it was causing build bot failures like: > >https://urldefense.proofpoint.com/v2/url?u=http-3A__lab.llvm.org-3A8011_bu >ilders_clang-2Dppc64be-2Dl

r266202 - [Clang][AVX512][Builtin] Adding support to intrinsics of pmovs{d|q}{b|w|d}{128|256|512} instruction set

2016-04-13 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Wed Apr 13 10:02:04 2016 New Revision: 266202 URL: http://llvm.org/viewvc/llvm-project?rev=266202&view=rev Log: [Clang][AVX512][Builtin] Adding support to intrinsics of pmovs{d|q}{b|w|d}{128|256|512} instruction set Differential Revision: http://reviews.llvm.org/D19023 M

[PATCH] D19059: Reorder ASTNodeKind::AllKindInfo to match NodeKindId.

2016-04-13 Thread Alexander Kornienko via cfe-commits
alexfh created this revision. alexfh added a reviewer: sbenza. alexfh added a subscriber: cfe-commits. Herald added a subscriber: klimek. AllKindInfo is being indexed by NodeKindId, so the order must match. I've updated the tests, though I'm not sure what exactly they verify and whether the new st

Re: [PATCH] D15120: Add support for __float128 type to be used by targets that support it

2016-04-13 Thread Nemanja Ivanovic via cfe-commits
nemanjai closed this revision. nemanjai added a comment. Committed revision 266186. Repository: rL LLVM http://reviews.llvm.org/D15120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[PATCH] D19058: clang-format: Pointer `*` is seen as multiplication in C-style casts

2016-04-13 Thread Maxime Beaulieu via cfe-commits
mxbOctasic created this revision. mxbOctasic added a reviewer: djasper. mxbOctasic added subscribers: cameron314, cfe-commits. Herald added a subscriber: klimek. The `*` was treated as multiplication operator in complex pointer type casts. e.g. (type *const)bar (type *restrict)bar Patch by came

Re: [PATCH] D19059: Reorder ASTNodeKind::AllKindInfo to match NodeKindId.

2016-04-13 Thread Alexander Kornienko via cfe-commits
alexfh updated this revision to Diff 53566. alexfh added a comment. - Added a test http://reviews.llvm.org/D19059 Files: lib/AST/ASTTypeTraits.cpp unittests/AST/ASTTypeTraitsTest.cpp unittests/ASTMatchers/Dynamic/ParserTest.cpp unittests/ASTMatchers/Dynamic/RegistryTest.cpp Index: unit

Re: [PATCH] D19059: Reorder ASTNodeKind::AllKindInfo to match NodeKindId.

2016-04-13 Thread Samuel Benzaquen via cfe-commits
sbenza added a comment. Those tests are testing the code completion you get in clang-query. The type list must match what that matcher supports. `hasParent` is declared as const internal::ArgumentAdaptingMatcherFunc< internal::HasParentMatcher, internal::TypeList, internal::T

Re: [PATCH] D19059: Reorder ASTNodeKind::AllKindInfo to match NodeKindId.

2016-04-13 Thread Alexander Kornienko via cfe-commits
alexfh updated this revision to Diff 53569. alexfh added a comment. Added a Decl descendant for a test. http://reviews.llvm.org/D19059 Files: lib/AST/ASTTypeTraits.cpp unittests/AST/ASTTypeTraitsTest.cpp unittests/ASTMatchers/Dynamic/ParserTest.cpp unittests/ASTMatchers/Dynamic/Registry

Re: [PATCH] D19059: Reorder ASTNodeKind::AllKindInfo to match NodeKindId.

2016-04-13 Thread Alexander Kornienko via cfe-commits
alexfh marked an inline comment as done. alexfh added a comment. http://reviews.llvm.org/D19059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18637: Extract key to avoid preemptive mallocs in insert/emplace in associative containers

2016-04-13 Thread Marshall Clow via cfe-commits
mclow.lists accepted this revision. mclow.lists added a comment. This revision is now accepted and ready to land. This looks good to me, except for the noisy tests. Comment at: test/std/containers/associative/set/insert_and_emplace_allocator_requirements.pass.cpp:29 @@ +28,3 @@

Re: [PATCH] D18217: [libcxx] Fix -Wdeprecated warnings

2016-04-13 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. Let's retire this patch, then. I'll be watching for your replacement patches. http://reviews.llvm.org/D18217 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[PATCH] D19062: Add functions in ctype.h to builtin function database (Fix)

2016-04-13 Thread Taewook Oh via cfe-commits
twoh created this revision. twoh added a reviewer: aaron.ballman. twoh added subscribers: joerg, cfe-commits, rsmith. Add functions declared in ctype.h to builtin function database. All functions are annotated with nothrow and const attribute, which enables better optimization. This patch has

Re: [PATCH] D17469: [libcxx] Add deployment knobs to tests (for Apple platforms)

2016-04-13 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. This direction looks fine to me. All the test changes look fine to me. http://reviews.llvm.org/D17469 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18876: NFC: unify clang / LLVM atomic ordering

2016-04-13 Thread James Y Knight via cfe-commits
jyknight added a comment. The large amount of casting to/from integers for AtomicOrderingCABI makes me think that it probably ought not actually be converted to an enum class after all. http://reviews.llvm.org/D18876 ___ cfe-commits mailing list c

Re: [PATCH] D18217: [libcxx] Fix -Wdeprecated warnings

2016-04-13 Thread don hinton via cfe-commits
hintonda added a comment. Will do -- moved and started new job, so got a bit behind. Btw, I have a new checker that's under review that will take care of the noexcept for you. And I think someone else has something that might take care of the implicit copy/assignment. So this should be trivia

Re: [PATCH] D18637: Extract key to avoid preemptive mallocs in insert/emplace in associative containers

2016-04-13 Thread Eric Fiselier via cfe-commits
EricWF added inline comments. Comment at: test/std/containers/associative/set/insert_and_emplace_allocator_requirements.pass.cpp:29 @@ +28,3 @@ +template +void PrintInfo(int line, Arg&& arg) +{ mclow.lists wrote: > In general, we want tests to be silent on succe

Re: [PATCH] D18637: Extract key to avoid preemptive mallocs in insert/emplace in associative containers

2016-04-13 Thread Duncan P. N. Exon Smith via cfe-commits
> On 2016-Apr-13, at 09:50, Eric Fiselier wrote: > > EricWF added inline comments. > > > Comment at: > test/std/containers/associative/set/insert_and_emplace_allocator_requirements.pass.cpp:29 > @@ +28,3 @@ > +template > +void PrintInfo(int line, Arg&& arg) > +{ > ---

[libcxx] r266209 - Qualify calls to addressof to avoid getting ADL. Fixes PR#27254.

2016-04-13 Thread Marshall Clow via cfe-commits
Author: marshall Date: Wed Apr 13 12:02:23 2016 New Revision: 266209 URL: http://llvm.org/viewvc/llvm-project?rev=266209&view=rev Log: Qualify calls to addressof to avoid getting ADL. Fixes PR#27254. Modified: libcxx/trunk/include/__mutex_base libcxx/trunk/include/shared_mutex Modified:

r266211 - ARM: make Darwin's "-arch armv7em" default to hard-float.

2016-04-13 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Wed Apr 13 12:08:51 2016 New Revision: 266211 URL: http://llvm.org/viewvc/llvm-project?rev=266211&view=rev Log: ARM: make Darwin's "-arch armv7em" default to hard-float. We've already paid the price for separate "armv7m" and "armv7em" slices (support in other tools), it's

r266212 - AArch64: allow 64-bit access to sysregs.

2016-04-13 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Wed Apr 13 12:08:55 2016 New Revision: 266212 URL: http://llvm.org/viewvc/llvm-project?rev=266212&view=rev Log: AArch64: allow 64-bit access to sysregs. Although all the registers are actually 32-bits, I think we have to assume the high 32-bits could be RES0 (the ARM ARM

r266213 - [OrderFiles] Don't allow lit to run dtrace multithreaded

2016-04-13 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Wed Apr 13 12:12:56 2016 New Revision: 266213 URL: http://llvm.org/viewvc/llvm-project?rev=266213&view=rev Log: [OrderFiles] Don't allow lit to run dtrace multithreaded Dtrace is implemented to try and minimize performance impact on the process being traced. This results

Re: [PATCH] D18821: Add modernize-bool-to-integer-conversion

2016-04-13 Thread Piotr Padlewski via cfe-commits
Prazek added a comment. In http://reviews.llvm.org/D18821#399079, @alexfh wrote: > In http://reviews.llvm.org/D18821#399064, @Prazek wrote: > > > In http://reviews.llvm.org/D18821#398843, @alexfh wrote: > > > > > BTW, why is the check in the 'modernize' module? It doesn't seem to make > > > anyt

Re: [PATCH] D19056: [MSVC] Fix check for wchar_t type in case of -fno-wchar

2016-04-13 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Comment at: test/SemaCXX/no-wchar.cpp:12 @@ +11,2 @@ +void foo1(wchar_t * t = L""); +// expected-warning@-1 {{conversion from string literal to 'wchar_t *' (aka 'unsigned shor

[PATCH] D19064: clang-format: Allow include of clangFormat.h in managed context

2016-04-13 Thread Maxime Beaulieu via cfe-commits
mxbOctasic created this revision. mxbOctasic added a reviewer: djasper. mxbOctasic added subscribers: cameron314, cfe-commits. Herald added a subscriber: klimek. Including `VirtualFileSystem.h` in the clangFormat.h indirectly includes ``. This header is blocked when compiling with /clr. I added a

[PATCH] D19065: clang-format: Last line in incomplete block is indented incorrectly

2016-04-13 Thread Maxime Beaulieu via cfe-commits
mxbOctasic created this revision. mxbOctasic added a reviewer: djasper. mxbOctasic added subscribers: cameron314, cfe-commits. Herald added a subscriber: klimek. This bug occurred when the end of the file was reached while parsing a block. The indentation of the last line was reset to the initial

[PATCH] D19063: clang-format: Fixed line merging of more than two lines

2016-04-13 Thread Maxime Beaulieu via cfe-commits
mxbOctasic created this revision. mxbOctasic added a reviewer: djasper. mxbOctasic added subscribers: cameron314, cfe-commits. Herald added a subscriber: klimek. `getNextMergedLine` merged pairs of adjacent lines instead of merging them all with the first one. Consider `AnnotatedLine` `A`, `B` a

r266219 - [analyzer] Nullability: Suppress diagnostic on bind with cast.

2016-04-13 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Wed Apr 13 12:59:24 2016 New Revision: 266219 URL: http://llvm.org/viewvc/llvm-project?rev=266219&view=rev Log: [analyzer] Nullability: Suppress diagnostic on bind with cast. Update the nullability checker to allow an explicit cast to nonnull to suppress a warning on an as

[PATCH] D19066: clang-format: `SpaceAfterTemplate` and `SpacesInBraces` options

2016-04-13 Thread Maxime Beaulieu via cfe-commits
mxbOctasic created this revision. mxbOctasic added a reviewer: djasper. mxbOctasic added subscribers: cameron314, cfe-commits. Herald added a subscriber: klimek. This patch adds two new spacing options. `SpaceAfterTemplate` inserts a space between the template keyword and the opening chevron. `

r266222 - Simplify memory management of CXEvalResultKind/ExprEvalResult using unique_ptr and a dtor

2016-04-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Wed Apr 13 13:23:33 2016 New Revision: 266222 URL: http://llvm.org/viewvc/llvm-project?rev=266222&view=rev Log: Simplify memory management of CXEvalResultKind/ExprEvalResult using unique_ptr and a dtor This doesn't seem to need to be a C type, C only handles a void*, so us

Re: r265994 - libclang: fix two memory leaks (PR26292)

2016-04-13 Thread David Blaikie via cfe-commits
Didn't seem to be too invasive - r266222. On Tue, Apr 12, 2016 at 10:54 AM, Hans Wennborg wrote: > While useful, that would require a lot of restructuring, I think. > > This file seems to mostly be dealing with C-style objects; > ExprEvalResult doesn't even have a C++ destructor. I'm not going t

r266224 - libclang: Use early-return to reduce indentation.

2016-04-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Wed Apr 13 13:36:19 2016 New Revision: 266224 URL: http://llvm.org/viewvc/llvm-project?rev=266224&view=rev Log: libclang: Use early-return to reduce indentation. & since I'll get blamed for all the lines anyway, remove some else-after-return and otherwise tidy things up. M

r266226 - Remove redundant null-check; NFC

2016-04-13 Thread Hubert Tong via cfe-commits
Author: hubert.reinterpretcast Date: Wed Apr 13 13:41:03 2016 New Revision: 266226 URL: http://llvm.org/viewvc/llvm-project?rev=266226&view=rev Log: Remove redundant null-check; NFC Modified: cfe/trunk/lib/Parse/ParseDeclCXX.cpp Modified: cfe/trunk/lib/Parse/ParseDeclCXX.cpp URL: http://llv

[PATCH] D19068: Lit C++11 Compatibility Patch #7

2016-04-13 Thread Charles Li via cfe-commits
tigerleapgorge created this revision. tigerleapgorge added a reviewer: rsmith. tigerleapgorge added a subscriber: cfe-commits. 13 tests have been updated for C++11 compatibility. CXX/class.access/class.access.dcl/p1.cpp Access declarations are deprecated in C++11. As a result, there are 4 ty

Re: [PATCH] D19066: clang-format: `SpaceAfterTemplate` and `SpacesInBraces` options

2016-04-13 Thread Daniel Jasper via cfe-commits
djasper added a comment. Please read http://clang.llvm.org/docs/ClangFormatStyleOptions.html#adding-additional-style-options. The "template" option was discussed multiple times and I remain convinced that the costs outweigh the benefit here. For the other option: - Can you make statements wrt

[PATCH] D19069: clang-format: Fixed various brace wrapping and block merging bugs

2016-04-13 Thread Maxime Beaulieu via cfe-commits
mxbOctasic created this revision. mxbOctasic added a reviewer: djasper. mxbOctasic added subscribers: cameron314, cfe-commits. Herald added a subscriber: klimek. Multiple brace wrapping flag combination were broken. First, IndentBraces + !AfterControlStatement caused the whole If-Else construct

Re: [PATCH] D19069: clang-format: Fixed various brace wrapping and block merging bugs

2016-04-13 Thread Maxime Beaulieu via cfe-commits
mxbOctasic added inline comments. Comment at: lib/Format/UnwrappedLineParser.cpp:789-790 @@ -773,4 +788,4 @@ if (FormatTok->Tok.is(tok::l_brace)) { -if (Style.BraceWrapping.AfterObjCDeclaration) - addUnwrappedLine(); +CompoundStatementIndenter Inden

Re: [PATCH] D18265: [clang-tidy] New: checker misc-assign-operator-return

2016-04-13 Thread Samuel Benzaquen via cfe-commits
sbenza added inline comments. Comment at: clang-tidy/misc/AssignOperatorCheck.cpp:63 @@ +62,3 @@ + + Finder->addMatcher(returnStmt(IsBadReturnStatement, hasAncestor(IsGoodAssign)) + .bind("returnStmt"), baloghadamsoftware wrote: > sbenza

r266235 - [CrashReproducer] Add test to run the reproducer script + modules

2016-04-13 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Wed Apr 13 14:28:24 2016 New Revision: 266235 URL: http://llvm.org/viewvc/llvm-project?rev=266235&view=rev Log: [CrashReproducer] Add test to run the reproducer script + modules Now that we have basic support in place, make sure the reproducer script works with modules for a s

r266234 - [CrashReproducer] Setup 'use-external-names' in YAML files.

2016-04-13 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Wed Apr 13 14:28:21 2016 New Revision: 266234 URL: http://llvm.org/viewvc/llvm-project?rev=266234&view=rev Log: [CrashReproducer] Setup 'use-external-names' in YAML files. Hide the real paths when rebuilding from VFS by setting up the crash reproducer to use 'use-external-name

r266233 - [VFS] Move default values to in-class member initialization. NFC

2016-04-13 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Wed Apr 13 14:28:16 2016 New Revision: 266233 URL: http://llvm.org/viewvc/llvm-project?rev=266233&view=rev Log: [VFS] Move default values to in-class member initialization. NFC Modified: cfe/trunk/lib/Basic/VirtualFileSystem.cpp Modified: cfe/trunk/lib/Basic/VirtualFileSy

Re: [PATCH] D19058: clang-format: Pointer `*` is seen as multiplication in C-style casts

2016-04-13 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/TokenAnnotator.cpp:1272 @@ +1271,3 @@ +// Casts are never binary operators, regardless of IsExpression +if (NextToken->isOneOf(tok::r_paren, tok::greater)) + return TT_PointerOrReference; I think i

Re: [PATCH] D19063: clang-format: Fixed line merging of more than two lines

2016-04-13 Thread Daniel Jasper via cfe-commits
djasper added a comment. Nice catch. Comment at: unittests/Format/FormatTest.cpp:285 @@ +284,3 @@ + + EXPECT_EQ("class Foo\n" +"{\n" How does this break? I generally add an Before and After of one of the test cases into my patch descriptions. htt

Re: [PATCH] D19064: clang-format: Allow include of clangFormat.h in managed context

2016-04-13 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. Comment at: include/clang/Format/Format.h:30 @@ +29,3 @@ +namespace vfs { + +class FileSystem; nit: Remove this empty line. http://reviews.llv

Re: [PATCH] D19065: clang-format: Last line in incomplete block is indented incorrectly

2016-04-13 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D19065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

Re: [PATCH] D19069: clang-format: Fixed various brace wrapping and block merging bugs

2016-04-13 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/UnwrappedLineParser.cpp:1388-1390 @@ -1372,3 +1387,5 @@ parseBlock(/*MustBeDeclaration=*/false); -if (Style.BraceWrapping.BeforeElse) +if (Style.BraceWrapping.BeforeElse || +Style.BraceWrapping.AfterControl

Re: [PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier

2016-04-13 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. Thanks! This looks great. Comment at: test/SemaCXX/MicrosoftExtensions.cpp:89 @@ +88,3 @@ +void foo_unaligned(int *arg) {} +void foo_unaligned(__unaligned int *arg) {} +void foo_una

r266239 - Lit C++11 Compatibility Patch #7

2016-04-13 Thread Charles Li via cfe-commits
Author: lcharles Date: Wed Apr 13 15:00:45 2016 New Revision: 266239 URL: http://llvm.org/viewvc/llvm-project?rev=266239&view=rev Log: Lit C++11 Compatibility Patch #7 13 tests have been updated for C++11 compatibility. Differential Revision: http://reviews.llvm.org/D19068 Modified: cfe/trun

Re: [PATCH] D19068: Lit C++11 Compatibility Patch #7

2016-04-13 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266239: Lit C++11 Compatibility Patch #7 (authored by lcharles). Changed prior to commit: http://reviews.llvm.org/D19068?vs=53603&id=53607#toc Repository: rL LLVM http://reviews.llvm.org/D19068 Fil

Re: [PATCH] D19064: clang-format: Allow include of clangFormat.h in managed context

2016-04-13 Thread Maxime Beaulieu via cfe-commits
mxbOctasic updated this revision to Diff 53608. mxbOctasic added a comment. Removed empty line. http://reviews.llvm.org/D19064 Files: include/clang/Format/Format.h lib/Format/Format.cpp Index: lib/Format/Format.cpp === --- lib

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-13 Thread Etienne Bergeron via cfe-commits
etienneb added inline comments. Comment at: clang-tidy/misc/SizeofExpressionCheck.cpp:28 @@ +27,3 @@ + return Node.getValue().getZExtValue() > N; +} + alexfh wrote: > There are no firm rules. It mostly depends on how generic/useful in other > tools the matcher c

Re: [PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions

2016-04-13 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 53609. etienneb marked 2 inline comments as done. etienneb added a comment. alexfh@ comment: top-down approach. http://reviews.llvm.org/D19014 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/SizeofExpressionCh

[PATCH] D19071: [OpenCL] Add predefined macros.

2016-04-13 Thread Yaxun Liu via cfe-commits
yaxunl created this revision. yaxunl added reviewers: Anastasia, bader, pxli168. yaxunl added subscribers: tstellarAMD, cfe-commits. OpenCL spec 1.2/2.0 requires `__OPENCL_C_VERSION__` to be defined based on -cl-std option. This patch implements that. OpenCL spec 1.0/1.1 does not have a predefin

Re: [PATCH] D14274: Add alloc_size attribute to clang

2016-04-13 Thread George Burgess IV via cfe-commits
george.burgess.iv updated this revision to Diff 53611. george.burgess.iv added a comment. Now that `allocsize` is in LLVM (r266032), this isn't blocked. Yay! Rebased, added a few tests, did a few tiny refactors, and fixed an overflow bug when the user tried to allocate `2**63 < N < 2**64` bytes

r266242 - Make sure CheckDestructor gets called on dllimported classes if the vtable is used (PR27319)

2016-04-13 Thread Hans Wennborg via cfe-commits
Author: hans Date: Wed Apr 13 15:21:15 2016 New Revision: 266242 URL: http://llvm.org/viewvc/llvm-project?rev=266242&view=rev Log: Make sure CheckDestructor gets called on dllimported classes if the vtable is used (PR27319) Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp cfe/trunk/test/Code

Re: [PATCH] D19063: clang-format: Fixed line merging of more than two lines

2016-04-13 Thread Maxime Beaulieu via cfe-commits
mxbOctasic added inline comments. Comment at: unittests/Format/FormatTest.cpp:285 @@ +284,3 @@ + + EXPECT_EQ("class Foo\n" +"{\n" djasper wrote: > How does this break? I generally add an Before and After of one of the test > cases into my patch descr

  1   2   >