[PATCH] D25595: [libcxx] Support std::regex_constants::match_not_null

2016-10-14 Thread Tim Shen via cfe-commits
timshen created this revision. timshen added reviewers: mclow.lists, EricWF. timshen added a subscriber: cfe-commits. Fixes PR21597. https://reviews.llvm.org/D25595 Files: libcxx/include/regex libcxx/test/std/re/re.alg/re.alg.search/pr21597.pass.cpp Index: libcxx/test/std/re/re.alg/re.alg

[libcxx] r284209 - Add void_t and invoke feature test macros

2016-10-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 02:19:52 2016 New Revision: 284209 URL: http://llvm.org/viewvc/llvm-project?rev=284209&view=rev Log: Add void_t and invoke feature test macros Added: libcxx/trunk/test/std/utilities/function.objects/func.invoke/invoke_feature_test_macro.pass.cpp libcxx/tr

[PATCH] D25576: Add 64-bit MS _Interlocked functions as builtins again

2016-10-14 Thread Martin Storsjö via cfe-commits
mstorsjo added a comment. > (should they be also on AArch64? I had problems with testing it for AArch64, > so I left it) Technically, I think they should be on AArch64 as well. But clang/LLVM probably doesn't support AArch64/Windows yet (I guess?), so testing it probably is impossible. When/if

[libcxx] r284210 - XFAIL aligned allocation test failures with UBSAN

2016-10-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 02:49:15 2016 New Revision: 284210 URL: http://llvm.org/viewvc/llvm-project?rev=284210&view=rev Log: XFAIL aligned allocation test failures with UBSAN Modified: libcxx/trunk/test/std/language.support/support.dynamic/new.delete/new.delete.array/delete_align_va

[PATCH] D25586: [clang-move] Use cl::list and cl::CommaSeparated for the list of names.

2016-10-14 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. LGTM. Thanks. Repository: rL LLVM https://reviews.llvm.org/D25586 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.or

[clang-tools-extra] r284212 - [clang-tidy] Fix readability-braces-around-statements false positive

2016-10-14 Thread Marek Kurdej via cfe-commits
Author: mkurdej Date: Fri Oct 14 03:10:08 2016 New Revision: 284212 URL: http://llvm.org/viewvc/llvm-project?rev=284212&view=rev Log: [clang-tidy] Fix readability-braces-around-statements false positive Summary: This fixes a false-positive e.g. when string literals are returned from if statement

r284213 - [x86][ms-inline-asm] use of "jmp short" in asm is not supported

2016-10-14 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Fri Oct 14 03:13:27 2016 New Revision: 284213 URL: http://llvm.org/viewvc/llvm-project?rev=284213&view=rev Log: [x86][ms-inline-asm] use of "jmp short" in asm is not supported Test linked to: https://reviews.llvm.org/D24957 Committing in the name of Ziv Izhar: After check-

[PATCH] D24958: Test linked to D24957

2016-10-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284213: [x86][ms-inline-asm] use of "jmp short" in asm is not supported (authored by mzuckerm). Changed prior to commit: https://reviews.llvm.org/D24958?vs=72624&id=74626#toc Repository: rL LLVM htt

[PATCH] D25596: alpha.core.Conversion - Fix false positive for 'U32 += S16; ' expression, that is not unsafe

2016-10-14 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki created this revision. danielmarjamaki added a reviewer: NoQ. danielmarjamaki added subscribers: cfe-commits, xazax.hun, dcoughlin. danielmarjamaki set the repository for this revision to rL LLVM. This patch fix false positives for loss of sign in addition and subtraction assignme

[libcxx] r284214 - XFAIL aligned allocation tests for older Clang versions

2016-10-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 03:47:09 2016 New Revision: 284214 URL: http://llvm.org/viewvc/llvm-project?rev=284214&view=rev Log: XFAIL aligned allocation tests for older Clang versions Modified: libcxx/trunk/test/libcxx/test/config.py libcxx/trunk/test/std/language.support/support.dy

[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: bkramer. ioeric added a subscriber: cfe-commits. Since `remove_dots` does not delete leading "../" anymore, assertion test need to be updated. https://reviews.llvm.org/D25597 Files: lib/Basic/VirtualFileSystem.cpp Index: lib/Basic/Virtu

[PATCH] D24864: [libcxxabi] Refactor pthread usage into a separate API

2016-10-14 Thread Asiri Rathnayake via cfe-commits
rmaprath closed this revision. rmaprath added a comment. Committed as r284128. https://reviews.llvm.org/D24864 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25565: Deduplicate sets of replacements by file names.

2016-10-14 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. I'd not rename the function. Otherwise looks good. https://reviews.llvm.org/D25565 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[libcxx] r284216 - Remove dead CMake target

2016-10-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 04:06:38 2016 New Revision: 284216 URL: http://llvm.org/viewvc/llvm-project?rev=284216&view=rev Log: Remove dead CMake target Modified: libcxx/trunk/cmake/Modules/HandleLibCXXABI.cmake libcxx/trunk/lib/CMakeLists.txt Modified: libcxx/trunk/cmake/Modules/Ha

[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 74631. ioeric added a comment. - Separate assertions to get more information. https://reviews.llvm.org/D25597 Files: lib/Basic/VirtualFileSystem.cpp Index: lib/Basic/VirtualFileSystem.cpp ==

[PATCH] D25565: Deduplicate sets of replacements by file names.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 74632. ioeric added a comment. - Change name to groupReplacementsByFile https://reviews.llvm.org/D25565 Files: include/clang/Tooling/Core/Replacement.h include/clang/Tooling/Refactoring.h lib/Tooling/Core/Replacement.cpp lib/Tooling/Refactoring.cpp

[libcxxabi] r284217 - Mark test as unsupported without threads

2016-10-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 04:12:53 2016 New Revision: 284217 URL: http://llvm.org/viewvc/llvm-project?rev=284217&view=rev Log: Mark test as unsupported without threads Modified: libcxxabi/trunk/test/libcxxabi/test/config.py libcxxabi/trunk/test/thread_local_destruction_order.pass.cp

[PATCH] D25598: [clang-move] Matching static class member more correctly.

2016-10-14 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. hokein added a subscriber: cfe-commits. https://reviews.llvm.org/D25598 Files: clang-move/ClangMove.cpp test/clang-move/Inputs/test.cpp test/clang-move/Inputs/test.h test/clang-move/move-class.cpp Index: test/clang-move/move

[PATCH] D25565: Deduplicate sets of replacements by file names.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 74634. ioeric added a comment. - Merge branch 'master' of http://llvm.org/git/clang into arcpatch-D25565 - Forgot to update names in tests... https://reviews.llvm.org/D25565 Files: include/clang/Tooling/Core/Replacement.h include/clang/Tooling/Refactorin

[PATCH] D25565: Deduplicate sets of replacements by file names.

2016-10-14 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284219: Deduplicate sets of replacements by file names. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D25565?vs=74634&id=74636#toc Repository: rL LLVM https://reviews.llvm.

r284219 - Deduplicate sets of replacements by file names.

2016-10-14 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Oct 14 04:32:06 2016 New Revision: 284219 URL: http://llvm.org/viewvc/llvm-project?rev=284219&view=rev Log: Deduplicate sets of replacements by file names. Summary: If there are multiple pairs with the same file path after removing dots, we only keep one pair (with path

[PATCH] D25598: [clang-move] Matching static class member more correctly.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lg https://reviews.llvm.org/D25598 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D23657: Remove some false positives when taking the address of packed members

2016-10-14 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 updated this revision to Diff 74638. rogfer01 added a comment. Updated patch, now we check if the innermost base of a MemberExpr is a DeclRefExpr and check for its declaration in case it provides stronger alignment guarantees. https://reviews.llvm.org/D23657 Files: include/clang/Se

[PATCH] D25600: [ASTMatcher] Add isStaticDataMember matcher for varDecl.

2016-10-14 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: klimek. hokein added a subscriber: cfe-commits. https://reviews.llvm.org/D25600 Files: docs/LibASTMatchersReference.html include/clang/ASTMatchers/ASTMatchers.h unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp Index: unittests/ASTMa

[PATCH] D25602: Do not reset TUScope when we are in incremental processing mode.

2016-10-14 Thread Vassil Vassilev via cfe-commits
v.g.vassilev created this revision. v.g.vassilev added a reviewer: rsmith. v.g.vassilev added a subscriber: cfe-commits. We are using this in the context of cling, where we keep the compiler instance alive after EOF. The incremental processing part in clang was done mostly by me and this patch

[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

2016-10-14 Thread Benjamin Kramer via cfe-commits
bkramer added a comment. I think the assertion is correct, there's something fishy with the inputs. The paths coming in should be absolute, and there should never be a .. at the start in a absolute path. This only fails on a single buildbot and doesn't reproduce anywhere else. @bruno any ideas?

[PATCH] D25603: [libc++] Fix modules build - Rework __refstring definition

2016-10-14 Thread Eric Fiselier via cfe-commits
EricWF created this revision. EricWF added a reviewer: mclow.lists. EricWF added a subscriber: cfe-commits. `__libcpp_refstring` currently has two different definitions. First there is the complete definition in `<__refstring>` but there is also a second in ``. The historical reason for this s

[PATCH] D25604: Add support for Mageia Linux

2016-10-14 Thread Vassil Vassilev via cfe-commits
v.g.vassilev created this revision. v.g.vassilev added reviewers: chandlerc, rsmith. v.g.vassilev added a subscriber: cfe-commits. v.g.vassilev set the repository for this revision to rL LLVM. Repository: rL LLVM https://reviews.llvm.org/D25604 Files: lib/Driver/ToolChains.cpp Index: lib/D

[PATCH] D25593: [libcxx] Build with -fvisibility-inlines-hidden -- Remove 20 inline definitions from the dylib

2016-10-14 Thread Eric Fiselier via cfe-commits
EricWF added a comment. I just spoke with Jonathan Wakely about this change, and he believes that it should be ABI safe. https://reviews.llvm.org/D25593 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[PATCH] D25598: [clang-move] Matching static class member more correctly.

2016-10-14 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284221: [clang-move] Matching static class member more correctly. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D25598?vs=74633&id=74650#toc Repository: rL LLVM https://rev

[clang-tools-extra] r284221 - [clang-move] Matching static class member more correctly.

2016-10-14 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Oct 14 05:07:58 2016 New Revision: 284221 URL: http://llvm.org/viewvc/llvm-project?rev=284221&view=rev Log: [clang-move] Matching static class member more correctly. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25598 Modif

[PATCH] D25606: alpha.core.UnreachableCode - don't warn about unreachable code inside macro

2016-10-14 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki created this revision. danielmarjamaki added reviewers: NoQ, dcoughlin. danielmarjamaki added subscribers: cfe-commits, xazax.hun, zaks.anna, a.sidorin. danielmarjamaki set the repository for this revision to rL LLVM. This patch fixes false positives for such code: #define RETUR

r284222 - Try to fix windows bot file path style failure caused by r284219.

2016-10-14 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Oct 14 05:10:26 2016 New Revision: 284222 URL: http://llvm.org/viewvc/llvm-project?rev=284222&view=rev Log: Try to fix windows bot file path style failure caused by r284219. Modified: cfe/trunk/unittests/Tooling/RefactoringTest.cpp Modified: cfe/trunk/unittests/Tooli

[libcxx] r284225 - Work around Clang driver segfault when --coverage is used with -c and /dev/null

2016-10-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 05:30:33 2016 New Revision: 284225 URL: http://llvm.org/viewvc/llvm-project?rev=284225&view=rev Log: Work around Clang driver segfault when --coverage is used with -c and /dev/null Modified: libcxx/trunk/test/libcxx/compiler.py Modified: libcxx/trunk/test/libc

[PATCH] D25568: [libcxx] [cmake] Use -print-libgcc-file-name option to find compiler runtime

2016-10-14 Thread Eric Fiselier via cfe-commits
EricWF requested changes to this revision. EricWF added a comment. This revision now requires changes to proceed. This doesn't seem right seeing as `print-libgcc_file-name` prints the `libgcc.a` path, and we were previously linking `libgcc_s`. https://reviews.llvm.org/D25568 ___

[PATCH] D25431: [libcxx] [CMake] Build Solaris compat as separate C lib, to avoid -std= issues

2016-10-14 Thread Eric Fiselier via cfe-commits
EricWF added a comment. Why not just compile the sources files as C++ by changing their extensions? This change seems all kinds of wrong because we're throwing away *all* of our flags, including things like `-m32` or `-target `. https://reviews.llvm.org/D25431 __

[PATCH] D25608: [libclang] Make tests for python bindings pass on Windows.

2016-10-14 Thread Igor Kudrin via cfe-commits
ikudrin created this revision. ikudrin added reviewers: hansonw, compnerd, indygreg, eliben. ikudrin added a subscriber: cfe-commits. Please note that this patch fixes only Windows-related issues. https://reviews.llvm.org/D25470 is required to pass all the tests. https://reviews.llvm.org/D25608

[PATCH] D23524: [libc++abi] Fix backtrace_test.pass.cpp failure seemingly caused by inlining differences.

2016-10-14 Thread Eric Fiselier via cfe-commits
EricWF abandoned this revision. EricWF added a comment. Another fix was committed. https://reviews.llvm.org/D23524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r284228 - Removed duplicate header include

2016-10-14 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Oct 14 06:48:10 2016 New Revision: 284228 URL: http://llvm.org/viewvc/llvm-project?rev=284228&view=rev Log: Removed duplicate header include Reviewers: ioeric Subscribers: klimek Patch by Krasimir Georgiev! Differential Revision: https://reviews.llvm.org/D25599 Modifi

[PATCH] D25610: [clang-move] Add header guard for the new header.

2016-10-14 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. hokein added a subscriber: cfe-commits. The header guard generated by clang-move isn't always a perfect style, just avoid getting the header included multiple times during compiling period. Also, we can use llvm-Header-guard clang-tid

[PATCH] D25568: [libcxx] [cmake] Use -print-libgcc-file-name option to find compiler runtime

2016-10-14 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D25568#570222, @EricWF wrote: > This doesn't seem right seeing as `print-libgcc_file-name` prints the > `libgcc.a` path, and we were previously linking `libgcc_s`. Do you have any other solution in mind? There is no switch to print the share

[PATCH] D25431: [libcxx] [CMake] Build Solaris compat as separate C lib, to avoid -std= issues

2016-10-14 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D25431#570227, @EricWF wrote: > Why not just compile the sources files as C++ by changing their extensions? > This change seems all kinds of wrong because we're throwing away *all* of our > flags, including things like `-m32` or `-target `.

[PATCH] D25610: [clang-move] Add header guard for the new header.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. Lg Comment at: clang-move/ClangMove.cpp:264 +HeaderGuard += "#define " + GuardName + "\n"; +clang::tooling::Replacement HeaderGuardInclude(FileName, 0, 0, +

[PATCH] D25612: [clang-tidy] Add additional diagnostic to misc-use-after-move

2016-10-14 Thread Martin Böhme via cfe-commits
mboehme created this revision. mboehme added a reviewer: hokein. mboehme added a subscriber: cfe-commits. This adds a diagnostic to the misc-use-after-move check that is output when the use happens on a later loop iteration than the move, for example: A a; for (int i = 0; i < 10; ++i) { a

r284229 - Fix for PR30632: Name mangling issue.

2016-10-14 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Oct 14 07:43:59 2016 New Revision: 284229 URL: http://llvm.org/viewvc/llvm-project?rev=284229&view=rev Log: Fix for PR30632: Name mangling issue. There was a bug in the implementation of captured statements. If it has a lambda expression in it and the same lambda express

[PATCH] D25612: [clang-tidy] Add additional diagnostic to misc-use-after-move

2016-10-14 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. The code looks good. Comment at: clang-tidy/misc/UseAfterMoveCheck.cpp:579 DiagnosticIDs::Note); + } else if(UseLoc < MoveLoc || Use.DeclRef == MoveArg) { +

[PATCH] D25431: [libcxx] Convert Solaris support library to C++ to fix -std=c++11 build

2016-10-14 Thread Michał Górny via cfe-commits
mgorny retitled this revision from "[libcxx] [CMake] Build Solaris compat as separate C lib, to avoid -std= issues" to "[libcxx] Convert Solaris support library to C++ to fix -std=c++11 build ". mgorny updated the summary for this revision. mgorny updated this revision to Diff 74666. mgorny added

[libcxx] r284230 - Disable Modules when building the libc++ sources.

2016-10-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 07:56:52 2016 New Revision: 284230 URL: http://llvm.org/viewvc/llvm-project?rev=284230&view=rev Log: Disable Modules when building the libc++ sources. Libc++ will not build with modules enabled. In order to support an in-tree libc++ when LLVM_ENABLE_MODULES is ON w

[PATCH] D25610: [clang-move] Add header guard for the new header.

2016-10-14 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-move/ClangMove.cpp:264 +HeaderGuard += "#define " + GuardName + "\n"; +clang::tooling::Replacement HeaderGuardInclude(FileName, 0, 0, + HeaderGuard); ioeric

[libcxx] r284232 - [libcxx] Do not declare the thread api when __external_threading is present

2016-10-14 Thread Asiri Rathnayake via cfe-commits
Author: asiri Date: Fri Oct 14 08:00:07 2016 New Revision: 284232 URL: http://llvm.org/viewvc/llvm-project?rev=284232&view=rev Log: [libcxx] Do not declare the thread api when __external_threading is present This fixes a small omission where even when __external_threading is provided, we attempt

[PATCH] D25468: [libcxx] Do not declare the thread api when __external_threading is present

2016-10-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284232: [libcxx] Do not declare the thread api when __external_threading is present (authored by asiri). Changed prior to commit: https://reviews.llvm.org/D25468?vs=74234&id=74668#toc Repository: rL

[PATCH] D25600: [ASTMatcher] Add isStaticDataMember matcher for varDecl.

2016-10-14 Thread Aaron Ballman via cfe-commits
aaron.ballman added a reviewer: aaron.ballman. aaron.ballman added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:3005 +/// \endcode +AST_MATCHER(VarDecl, isStaticDataMember) { + return Node.isStaticDataMember(); How does this differ from t

[clang-tools-extra] r284233 - [clang-move] Add header guard for the new header.

2016-10-14 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Oct 14 08:01:36 2016 New Revision: 284233 URL: http://llvm.org/viewvc/llvm-project?rev=284233&view=rev Log: [clang-move] Add header guard for the new header. Summary: The header guard generated by clang-move isn't always a perfect style, just avoid getting the header incl

[PATCH] D25612: [clang-tidy] Add additional diagnostic to misc-use-after-move

2016-10-14 Thread Martin Böhme via cfe-commits
mboehme updated this revision to Diff 74671. mboehme added a comment. - Responses to reviewer comments https://reviews.llvm.org/D25612 Files: clang-tidy/misc/UseAfterMoveCheck.cpp test/clang-tidy/misc-use-after-move.cpp Index: test/clang-tidy/misc-use-after-move.cpp ==

[PATCH] D25610: [clang-move] Add header guard for the new header.

2016-10-14 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284233: [clang-move] Add header guard for the new header. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D25610?vs=74663&id=74669#toc Repository: rL LLVM https://reviews.llv

[PATCH] D25613: [clang-move] Don't overuse Replacements::add.

2016-10-14 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. hokein added a subscriber: cfe-commits. https://reviews.llvm.org/D25613 Files: clang-move/ClangMove.cpp Index: clang-move/ClangMove.cpp === --- clang-move/ClangMove.c

[clang-tools-extra] r284235 - [clang-tidy] Add additional diagnostic to misc-use-after-move

2016-10-14 Thread Martin Bohme via cfe-commits
Author: mboehme Date: Fri Oct 14 08:23:39 2016 New Revision: 284235 URL: http://llvm.org/viewvc/llvm-project?rev=284235&view=rev Log: [clang-tidy] Add additional diagnostic to misc-use-after-move Summary: This adds a diagnostic to the misc-use-after-move check that is output when the use happens

[PATCH] D25612: [clang-tidy] Add additional diagnostic to misc-use-after-move

2016-10-14 Thread Martin Böhme via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284235: [clang-tidy] Add additional diagnostic to misc-use-after-move (authored by mboehme). Changed prior to commit: https://reviews.llvm.org/D25612?vs=74671&id=74673#toc Repository: rL LLVM https:

[PATCH] D25613: [clang-move] Don't overuse Replacements::add.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: clang-move/ClangMove.cpp:472 std::string FilePath = RemoveReplacement.getFilePath().str(); addOrMergeReplacement(RemoveReplacement, &FileToReplacements[FilePath]); For deletions, you can simply use `add`, whic

[PATCH] D25613: [clang-move] Don't overuse Replacements::add.

2016-10-14 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 74675. hokein added a comment. woohoo, delete more code! https://reviews.llvm.org/D25613 Files: clang-move/ClangMove.cpp Index: clang-move/ClangMove.cpp === --- clang-move/ClangMove.cpp +++ c

[PATCH] D25613: [clang-move] Don't overuse Replacements::add.

2016-10-14 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 74677. hokein added a comment. Delete one more function. https://reviews.llvm.org/D25613 Files: clang-move/ClangMove.cpp Index: clang-move/ClangMove.cpp === --- clang-move/ClangMove.cpp +++ c

[PATCH] D25613: [clang-move] Don't overuse Replacements::add.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. Awesome! Lg with one nit. Comment at: clang-move/ClangMove.cpp:197 clang::tooling::Replacement getReplacementInChangedCode(const clang::tooling::Replacements &Replacements,

[clang-tools-extra] r284236 - [clang-move] Don't overuse Replacements::add.

2016-10-14 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Oct 14 08:43:49 2016 New Revision: 284236 URL: http://llvm.org/viewvc/llvm-project?rev=284236&view=rev Log: [clang-move] Don't overuse Replacements::add. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25613 Modified: cla

[PATCH] D25613: [clang-move] Don't overuse Replacements::add.

2016-10-14 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. hokein marked an inline comment as done. Closed by commit rL284236: [clang-move] Don't overuse Replacements::add. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D25613?vs=74677&id=74679#toc Repos

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

2016-10-14 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/Sema/SemaLookup.cpp:1044-1070 +static bool isBaseClass(const CXXRecordDecl *Record, CXXRecordDecl *Base) { + SmallVector Queue; + + while (true) { +for (const auto &I : Record->bases()) { + const RecordType *Ty = I.getType

[PATCH] D25593: [libcxx] Build with -fvisibility-inlines-hidden -- Remove 20 inline definitions from the dylib

2016-10-14 Thread Ed Maste via cfe-commits
emaste added inline comments. Comment at: lib/abi/CHANGELOG.TXT:22 + Although this change removes symbols, it should still be non-ABI breaking + since all of the definitions removed are inline functions. + Should we also include in this comment the further just

[libcxx] r284237 - [libcxx] Improve the gcc workaround for the missing __has_include macro.

2016-10-14 Thread Asiri Rathnayake via cfe-commits
Author: asiri Date: Fri Oct 14 08:56:58 2016 New Revision: 284237 URL: http://llvm.org/viewvc/llvm-project?rev=284237&view=rev Log: [libcxx] Improve the gcc workaround for the missing __has_include macro. NFC. Modified: libcxx/trunk/include/__threading_support Modified: libcxx/trunk/include

[PATCH] D25539: [Coverage] Support for C++17 switch initializers

2016-10-14 Thread Igor Kudrin via cfe-commits
ikudrin accepted this revision. ikudrin added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D25539 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[PATCH] D25572: [Coverage] Support for C++17 if initializers

2016-10-14 Thread Igor Kudrin via cfe-commits
ikudrin accepted this revision. ikudrin added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D25572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

RE: r284174 - Disable swiftcall test on windows: More brutal way to appease windows bots

2016-10-14 Thread Robinson, Paul via cfe-commits
Is there a bug to track this problem so it doesn't get lost? --paulr From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Behalf Of Reid Kleckner via cfe-commits Sent: Thursday, October 13, 2016 4:02 PM To: Arnold Schwaighofer Cc: cfe-commits Subject: Re: r284174 - Disable swiftcall t

[PATCH] D25283: AvailabilityAttrs: Refactor context checking when diagnosing an availability violation

2016-10-14 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D25283 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[PATCH] D25600: [ASTMatcher] Add isStaticDataMember matcher for varDecl.

2016-10-14 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:3005 +/// \endcode +AST_MATCHER(VarDecl, isStaticDataMember) { + return Node.isStaticDataMember(); aaron.ballman wrote: > How does this differ from the existing matcher `hasStaticS

Re: r284174 - Disable swiftcall test on windows: More brutal way to appease windows bots

2016-10-14 Thread Arnold Schwaighofer via cfe-commits
https://llvm.org/bugs/show_bug.cgi?id=30699 > On Oct 14, 2016, at 7:11 AM, Robinson, Paul wrote: > > Is there a bug to track this problem so it doesn't get lost? > --paulr > > From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Behalf Of > Reid Kleckner via cfe-commits > Sent: T

[PATCH] D25621: DebugInfo: use DIAlignment type.

2016-10-14 Thread Victor Leschuk via cfe-commits
vleschuk created this revision. vleschuk added reviewers: aprantl, mehdi_amini, dblaikie, echristo. vleschuk added a subscriber: cfe-commits. Use DIAlignment type introduced in https://reviews.llvm.org/D25620 https://reviews.llvm.org/D25621 Files: include/clang/AST/ASTContext.h include/clan

[PATCH] D25600: [ASTMatcher] Add isStaticDataMember matcher for varDecl.

2016-10-14 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:3005 +/// \endcode +AST_MATCHER(VarDecl, isStaticDataMember) { + return Node.isStaticDataMember(); hokein wrote: > aaron.ballman wrote: > > How does this differ from the exi

[PATCH] D24426: DebugInfo: Pass non-zero alignment to DIBuilder only if aligment was forced

2016-10-14 Thread Victor Leschuk via cfe-commits
vleschuk updated this revision to Diff 74686. vleschuk added a comment. Use DIAlignment type instead of uint64_t for alignment in DebugInfo. https://reviews.llvm.org/D24426 Files: lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.h test/CodeGen/debug-info-packed-struct.c test/CodeGen/

[PATCH] D25305: [OpenCL] Setting constant address space for array initializers

2016-10-14 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. The test looks OK. However, the patch only contains the test now. https://reviews.llvm.org/D25305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25305: [OpenCL] Setting constant address space for array initializers

2016-10-14 Thread Alexey Sotkin via cfe-commits
AlexeySotkin updated this revision to Diff 74693. AlexeySotkin added a comment. Squashing commits https://reviews.llvm.org/D25305 Files: lib/CodeGen/CGDecl.cpp test/CodeGenOpenCL/private-array-initialization.cl Index: test/CodeGenOpenCL/private-array-initialization.cl

[PATCH] D25305: [OpenCL] Setting constant address space for array initializers

2016-10-14 Thread Alexey Sotkin via cfe-commits
AlexeySotkin added a comment. Now there should be both :) https://reviews.llvm.org/D25305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D22221: Decide whether to enable plugin tests based on cmake variables

2016-10-14 Thread Ehsan Akhgari via cfe-commits
ehsan resigned from this revision. ehsan removed a reviewer: ehsan. ehsan added a comment. I also don't know enough about the build system to review this, sorry! Repository: rL LLVM https://reviews.llvm.org/D1 ___ cfe-commits mailing list cfe

[PATCH] D25326: [StaticAnalyser] Don't merge different returns in ExplodedGraph

2016-10-14 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. In https://reviews.llvm.org/D25326#569061, @danielmarjamaki wrote: > > You could also try to add a canary with clang analyzer eval after the if > > statement to force the test to fail if we do add this symbolic reasoning. > > sounds good. sorry but I don't see how to d

[PATCH] D25305: [OpenCL] Setting constant address space for array initializers

2016-10-14 Thread Yaxun Liu via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks! https://reviews.llvm.org/D25305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D22494: [analyzer] Explain why analyzer report is not generated (fix for PR12421).

2016-10-14 Thread Anton Yartsev via cfe-commits
ayartsev closed this revision. ayartsev added a comment. Closed by r283499. https://reviews.llvm.org/D22494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25624: Added 'inline' attribute to basic_string's destructor

2016-10-14 Thread Aditya Kumar via cfe-commits
hiraditya created this revision. hiraditya added reviewers: mclow.lists, EricWF. hiraditya added subscribers: laxmansole, sebpop, cfe-commits. Author: laxmansole Original Differential Revision: https://reviews.llvm.org/D22834 Posting the patch again as the bug https://llvm.org/bu

[PATCH] D25621: DebugInfo: use DIAlignment type.

2016-10-14 Thread Adrian Prantl via cfe-commits
aprantl added inline comments. Comment at: include/clang/AST/ASTContext.h:83 uint64_t Width; -unsigned Align; +llvm::DIAlignment Align; bool AlignIsRequired : 1; I'm not sure we want to use a debug info type inside the AST. I think we only want

[PATCH] Warning for main returning a bool.

2016-10-14 Thread Joshua Hurwitz via cfe-commits
See attached. Returning a bool from main is a special case of return type mismatch. The common convention when returning a bool is that 'true' (== 1) indicates success and 'false' (== 0) failure. But since main expects a return value of 0 on success, returning a bool is usually unintended. From 4b

[PATCH] D25606: alpha.core.UnreachableCode - don't warn about unreachable code inside macro

2016-10-14 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. We should pattern match for this specific macro pattern (ex: do{...}while(0) ) instead of suppressing all warnings coming from macros. Maybe we could use the same heuristic as -Wunreachable-code-return compiler warning? Repository: rL LLVM https://reviews.llvm.org

[PATCH] D25334: Implement __stosb intrinsic as a volatile memset

2016-10-14 Thread David Majnemer via cfe-commits
majnemer accepted this revision. majnemer added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D25334 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

r284253 - Implement __stosb intrinsic as a volatile memset

2016-10-14 Thread Albert Gutowski via cfe-commits
Author: agutowski Date: Fri Oct 14 12:33:05 2016 New Revision: 284253 URL: http://llvm.org/viewvc/llvm-project?rev=284253&view=rev Log: Implement __stosb intrinsic as a volatile memset Summary: We need `__stosb` to be an intrinsic, because SecureZeroMemory function uses it without including intr

[PATCH] D25593: [libcxx] Build with -fvisibility-inlines-hidden -- Remove 20 inline definitions from the dylib

2016-10-14 Thread Dimitry Andric via cfe-commits
dim accepted this revision. dim added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D25593 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

Re: [libcxx] r284210 - XFAIL aligned allocation test failures with UBSAN

2016-10-14 Thread Richard Smith via cfe-commits
On Fri, Oct 14, 2016 at 12:49 AM, Eric Fiselier via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ericwf > Date: Fri Oct 14 02:49:15 2016 > New Revision: 284210 > > URL: http://llvm.org/viewvc/llvm-project?rev=284210&view=rev > Log: > XFAIL aligned allocation test failures with UBSAN

r284256 - Link static PIE programs against rcrt0.o on OpenBSD

2016-10-14 Thread Ed Maste via cfe-commits
Author: emaste Date: Fri Oct 14 12:59:53 2016 New Revision: 284256 URL: http://llvm.org/viewvc/llvm-project?rev=284256&view=rev Log: Link static PIE programs against rcrt0.o on OpenBSD Patch by Stefan Kempf. Differential Revision: https://reviews.llvm.org/D22130 Modified: cfe/trunk/lib/Dri

[PATCH] D22130: Link static PIE programs against rcrt0.o on OpenBSD

2016-10-14 Thread Ed Maste via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284256: Link static PIE programs against rcrt0.o on OpenBSD (authored by emaste). Changed prior to commit: https://reviews.llvm.org/D22130?vs=68046&id=74718#toc Repository: rL LLVM https://reviews.l

r284259 - Revert r284256 due to test failure

2016-10-14 Thread Ed Maste via cfe-commits
Author: emaste Date: Fri Oct 14 13:20:12 2016 New Revision: 284259 URL: http://llvm.org/viewvc/llvm-project?rev=284259&view=rev Log: Revert r284256 due to test failure Modified: cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/test/Driver/openbsd.c Modified: cfe/trunk/lib/Driver/Tools.cpp URL:

Re: [libcxx] r249738 - Split out of .

2016-10-14 Thread Bruno Cardoso Lopes via cfe-commits
Hi Richard, I have a patch on top of your suggested patch from a year ago, that break the cyclic dependency we're seeing, with this (and a few changes to the SDK) we can bootstrap clang with submodule local visibility on darwin. I've attached the patch with a reduced, standalone testcase that does

r284263 - Module: emit initializers in submodules when importing the parent module.

2016-10-14 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Oct 14 13:55:44 2016 New Revision: 284263 URL: http://llvm.org/viewvc/llvm-project?rev=284263&view=rev Log: Module: emit initializers in submodules when importing the parent module. When importing the parent module, module initializers in submodules should be emitted. rdar

Re: r276159 - [modules] Don't emit initializers for VarDecls within a module eagerly whenever

2016-10-14 Thread Manman via cfe-commits
Hi Richard, Another follow-up commit r284263. When we import the top-level module with “@import X;”, all the initializers in the submodule should be emitted. Let me know if you see any problem, Manman > On Oct 13, 2016, at 4:03 PM, Richard Smith wrote: > > On Thu, Oct 13, 2016 at 11:52 AM, M

[PATCH] D25283: AvailabilityAttrs: Refactor context checking when diagnosing an availability violation

2016-10-14 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284265: [Sema] Refactor context checking for availability diagnostics (authored by epilk). Changed prior to commit: https://reviews.llvm.org/D25283?vs=74547&id=74729#toc Repository: rL LLVM https://

r284265 - [Sema] Refactor context checking for availability diagnostics

2016-10-14 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Fri Oct 14 14:08:01 2016 New Revision: 284265 URL: http://llvm.org/viewvc/llvm-project?rev=284265&view=rev Log: [Sema] Refactor context checking for availability diagnostics This commit combines a couple of redundant functions that do availability attribute context checking in

Re: [libcxx] r284214 - XFAIL aligned allocation tests for older Clang versions

2016-10-14 Thread Nico Weber via cfe-commits
This is breaking tests for me: Unexpected Passing Tests (4): libc++ :: std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t.pass.cpp libc++ :: std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp libc++ :: std/lan

  1   2   >