[PATCH] D28344: [AVR] Add support for the full set of inline asm constraints

2017-02-05 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay updated this revision to Diff 87190. dylanmckay marked an inline comment as done. dylanmckay added a comment. Add tests - Add multichar constraint tests - Add 'unsupported constraint' tests https://reviews.llvm.org/D28344 Files: lib/Basic/Targets.cpp test/CodeGen/avr-inline-asm-

[PATCH] D21279: Fix some issues in clang-format's AlignConsecutive modes

2017-02-05 Thread Ben Harper via Phabricator via cfe-commits
bmharper added a comment. Thanks @daphnediane. I only read your comment after merging, but that would have been helpful. https://reviews.llvm.org/D21279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[PATCH] D28407: Refer to _LIBCPP_MSVC macro where applicable

2017-02-05 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd closed this revision. compnerd added a comment. SVN r294171 https://reviews.llvm.org/D28407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r294171 - Refer to _LIBCPP_MSVC macro where applicable

2017-02-05 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Feb 5 23:26:49 2017 New Revision: 294171 URL: http://llvm.org/viewvc/llvm-project?rev=294171&view=rev Log: Refer to _LIBCPP_MSVC macro where applicable Replace preprocess conditions of defined(_MSC_VER) && !defined(__clang__) with defined(_LIBCPP_MSVC). NFC. Patch by

[PATCH] D21279: Fix some issues in clang-format's AlignConsecutive modes

2017-02-05 Thread Ben Harper via Phabricator via cfe-commits
bmharper updated this revision to Diff 87179. bmharper added a comment. Fixed a stale comment https://reviews.llvm.org/D21279 Files: lib/Format/WhitespaceManager.cpp lib/Format/WhitespaceManager.h unittests/Format/FormatTest.cpp Index: unittests/Format/FormatTest.cpp

[PATCH] D21279: Fix some issues in clang-format's AlignConsecutive modes

2017-02-05 Thread Ben Harper via Phabricator via cfe-commits
bmharper updated this revision to Diff 87178. bmharper added a comment. Hi @djasper, I've made the latest bunch of review changes, and rebased onto master. I didn't check the numbers, but I think the code is slightly smaller after the rebase. Regards, Ben https://reviews.llvm.org/D21279 Files

[libcxx] r294167 - Mark LWG 2765 as complete. No changes needed

2017-02-05 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Feb 5 20:41:49 2017 New Revision: 294167 URL: http://llvm.org/viewvc/llvm-project?rev=294167&view=rev Log: Mark LWG 2765 as complete. No changes needed Modified: libcxx/trunk/www/cxx1z_status.html Modified: libcxx/trunk/www/cxx1z_status.html URL: http://llvm.org/vi

[libcxx] r294165 - Implement LWG 2773 - std::ignore should be constexpr.

2017-02-05 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Feb 5 19:25:31 2017 New Revision: 294165 URL: http://llvm.org/viewvc/llvm-project?rev=294165&view=rev Log: Implement LWG 2773 - std::ignore should be constexpr. In addition to the PR for LWG 2773 this patch also ensures that each of std::ignores constructors or assignmen

[PATCH] D29542: [TargetInfo] Adjust x86-32 atomic support to the CPU used

2017-02-05 Thread Justin Lebar via Phabricator via cfe-commits
jlebar added inline comments. Comment at: lib/Basic/Targets.cpp:1808 +if (HostTriple.getArch() == llvm::Triple::x86) + HostTarget->setCPU("i586"); + Okay, is this still needed now? https://reviews.llvm.org/D29542

[PATCH] D28451: [AVR] Add support for the 'interrupt' and 'naked' attributes

2017-02-05 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay marked 4 inline comments as done. dylanmckay added inline comments. Comment at: test/CodeGen/avr/attributes/interrupt.m:4 +// CHECK: define void @_Z3foov() #0 +void foo() __attribute__((interrupt)) { } + aaron.ballman wrote: > This is not an Objective-

[PATCH] D28451: [AVR] Add support for the 'interrupt' and 'naked' attributes

2017-02-05 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay added inline comments. Comment at: lib/Sema/SemaDeclAttr.cpp:5137 + if (!checkAttributeNumArgs(S, Attr, 0)) +Attr.setInvalid(); + aaron.ballman wrote: > This should simply return rather than attempt to attach an invalid attribute > to the declara

[PATCH] D28451: [AVR] Add support for the 'interrupt' and 'naked' attributes

2017-02-05 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay updated this revision to Diff 87174. dylanmckay marked 2 inline comments as done. dylanmckay added a comment. Code review - Remove support for ObjC methods. We shouldn't do this as it doesn't really make sense - Move some tests to `Sema` - Don't attach invalid attributes when it isn't

[PATCH] D28346: [AVR] Allow specifying the CPU on the command line

2017-02-05 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay marked 2 inline comments as done. dylanmckay added inline comments. Comment at: test/CodeGen/avr/target-cpu-defines/atmega328p.c:1 +// RUN: %clang_cc1 -triple avr-unknown-unknown -target-cpu atmega328p -emit-llvm %s -o - | FileCheck %s + asl wrote: >

[PATCH] D28346: [AVR] Allow specifying the CPU on the command line

2017-02-05 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay updated this revision to Diff 87172. dylanmckay added a comment. Clean up the tests - Dump all defines and search for specific ones - Remove some unrelated tests. I will commit them separately, as they don't actually test any behaviour modified in this change. https://reviews.llvm.o

[PATCH] D29542: [TargetInfo] Adjust x86-32 atomic support to the CPU used

2017-02-05 Thread Michał Górny via Phabricator via cfe-commits
mgorny updated this revision to Diff 87170. mgorny added a comment. CUDA: added the `MaxAtomicPromoteWidth` setting, and moved the CPU setting a little lower to ensure that it doesn't get called with null `HostTarget`. https://reviews.llvm.org/D29542 Files: lib/Basic/Targets.cpp test/CodeG

[PATCH] D29135: [libcxx] [test] Fix Clang -Wunused-local-typedef, part 1/3.

2017-02-05 Thread Stephan T. Lavavej via Phabricator via cfe-commits
STL_MSFT accepted this revision. STL_MSFT added a comment. This revision is now accepted and ready to land. Committed with the requested changes. Thanks! https://reviews.llvm.org/D29135 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

[libcxx] r294161 - [libcxx] [test] Strip trailing whitespace.

2017-02-05 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Sun Feb 5 16:48:27 2017 New Revision: 294161 URL: http://llvm.org/viewvc/llvm-project?rev=294161&view=rev Log: [libcxx] [test] Strip trailing whitespace. No functional change, no code review. Modified: libcxx/trunk/test/std/strings/basic.string/string.cons/copy_alloc.

[libcxx] r294159 - [libcxx] [test] Avoid MSVC's non-Standard ABI in underlying_type.pass.cpp.

2017-02-05 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Sun Feb 5 16:48:13 2017 New Revision: 294159 URL: http://llvm.org/viewvc/llvm-project?rev=294159&view=rev Log: [libcxx] [test] Avoid MSVC's non-Standard ABI in underlying_type.pass.cpp. When compiled with Clang for Windows, this was emitting "enumerator value evaluates to

[libcxx] r294160 - [libcxx] [test] Fix comment typos.

2017-02-05 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Sun Feb 5 16:48:20 2017 New Revision: 294160 URL: http://llvm.org/viewvc/llvm-project?rev=294160&view=rev Log: [libcxx] [test] Fix comment typos. No functional change, no code review. Modified: libcxx/trunk/test/libcxx/utilities/function.objects/func.require/invoke_h

[libcxx] r294158 - [libcxx] [test] Fix Clang -Wpessimizing-move "moving a temporary object prevents copy elision".

2017-02-05 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Sun Feb 5 16:48:07 2017 New Revision: 294158 URL: http://llvm.org/viewvc/llvm-project?rev=294158&view=rev Log: [libcxx] [test] Fix Clang -Wpessimizing-move "moving a temporary object prevents copy elision". N4618 30.6.6 [futures.unique_future]/12 declares "shared_future s

[libcxx] r294157 - [libcxx] [test] Fix Clang -Wdeprecated-declarations with MSVC's CRT.

2017-02-05 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Sun Feb 5 16:48:02 2017 New Revision: 294157 URL: http://llvm.org/viewvc/llvm-project?rev=294157&view=rev Log: [libcxx] [test] Fix Clang -Wdeprecated-declarations with MSVC's CRT. libcxx's tests use various C Standard Library functions that have been marked by MSVC's CRT a

[libcxx] r294156 - [libcxx] [test] Fix Clang -Wunused-local-typedef, part 3/3.

2017-02-05 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Sun Feb 5 16:47:54 2017 New Revision: 294156 URL: http://llvm.org/viewvc/llvm-project?rev=294156&view=rev Log: [libcxx] [test] Fix Clang -Wunused-local-typedef, part 3/3. test/std/strings/string.classes/typedefs.pass.cpp Actually test what basic_string's typedefs stand for

[libcxx] r294154 - [libcxx] [test] Fix Clang -Wunused-local-typedef, part 1/3.

2017-02-05 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Sun Feb 5 16:47:09 2017 New Revision: 294154 URL: http://llvm.org/viewvc/llvm-project?rev=294154&view=rev Log: [libcxx] [test] Fix Clang -Wunused-local-typedef, part 1/3. Guard typedefs and static_asserts with _LIBCPP_VERSION. test/std/containers/sequences/vector.bool/mov

[libcxx] r294155 - [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3.

2017-02-05 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Sun Feb 5 16:47:41 2017 New Revision: 294155 URL: http://llvm.org/viewvc/llvm-project?rev=294155&view=rev Log: [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3. These typedefs were completely unused. Fixes D29136. Modified: libcxx/trunk/test/std/containers/

[PATCH] D28451: [AVR] Add support for the 'interrupt' and 'naked' attributes

2017-02-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. The new tests aren't really what I had in mind. The codegen tests that should be sema tests can just be rolled into your existing sema tests, by the way. Comment at: lib/Sema/SemaDeclAttr.cpp:5137 + if (!checkAttributeNumArgs(S, Attr, 0)) +A

r294148 - Basic: match GCC behaviour for SuS macro

2017-02-05 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Feb 5 16:18:15 2017 New Revision: 294148 URL: http://llvm.org/viewvc/llvm-project?rev=294148&view=rev Log: Basic: match GCC behaviour for SuS macro GCC does not generate `__unix` nor `unix` macros. The latter already intrudes into the user's namespace and should be av

[PATCH] D29209: Use copy.deepcopy instead of doing it manually.

2017-02-05 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. This LGTM. Repository: rL LLVM https://reviews.llvm.org/D29209 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[PATCH] D29542: [TargetInfo] Adjust x86-32 atomic support to the CPU used

2017-02-05 Thread Justin Lebar via Phabricator via cfe-commits
jlebar added inline comments. Comment at: lib/Basic/Targets.cpp:1784 + // atomics. This matches the defaults for the systems using CUDA. + // TODO: pass the host target CPU + if (HostTriple.getArch() == llvm::Triple::x86) Someone else is calling se

[PATCH] D28451: [AVR] Add support for the 'interrupt' and 'naked' attributes

2017-02-05 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay updated this revision to Diff 87164. dylanmckay marked 2 inline comments as done. dylanmckay added a comment. Verify that no arguments are given to the attributes Also adds a bunch of tests. https://reviews.llvm.org/D28451 Files: include/clang/Basic/Attr.td include/clang/Basic/A

[libcxx] r294142 - Restore the _NOEXCEPT on the dtor of bad_optional_access. Destructors are noexcept by default, so it's not really needed, but the other exception classes have the _NOEXCEPT, and gcc

2017-02-05 Thread Marshall Clow via cfe-commits
Author: marshall Date: Sun Feb 5 14:52:32 2017 New Revision: 294142 URL: http://llvm.org/viewvc/llvm-project?rev=294142&view=rev Log: Restore the _NOEXCEPT on the dtor of bad_optional_access. Destructors are noexcept by default, so it's not really needed, but the other exception classes have th

[libcxx] r294141 - Fix variant build errors with GCC 7

2017-02-05 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Feb 5 14:36:07 2017 New Revision: 294141 URL: http://llvm.org/viewvc/llvm-project?rev=294141&view=rev Log: Fix variant build errors with GCC 7 Modified: libcxx/trunk/include/variant Modified: libcxx/trunk/include/variant URL: http://llvm.org/viewvc/llvm-project/lib

[libcxx] r294139 - Adjust Apple ABI list after r294133

2017-02-05 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Feb 5 14:17:41 2017 New Revision: 294139 URL: http://llvm.org/viewvc/llvm-project?rev=294139&view=rev Log: Adjust Apple ABI list after r294133 Modified: libcxx/trunk/lib/abi/x86_64-apple-darwin16.abilist Modified: libcxx/trunk/lib/abi/x86_64-apple-darwin16.abilist U

[libcxx] r294133 - Change the base class of std::bad_optional_access. This is a (subtle) ABI change, and is in response to http://http://wg21.link/LWG2806, which I *expect* to be adopted in Kona. I am

2017-02-05 Thread Marshall Clow via cfe-commits
Author: marshall Date: Sun Feb 5 14:06:38 2017 New Revision: 294133 URL: http://llvm.org/viewvc/llvm-project?rev=294133&view=rev Log: Change the base class of std::bad_optional_access. This is a (subtle) ABI change, and is in response to http://http://wg21.link/LWG2806, which I *expect* to be

Re: [libcxx] r294127 - filesystem: fix n4100 conformance for `temp_directory_path`

2017-02-05 Thread don hinton via cfe-commits
Minor nit: your diff is much bigger than it should have been due to whitespace changes. On Sun, Feb 5, 2017 at 9:21 AM, Saleem Abdulrasool via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: compnerd > Date: Sun Feb 5 11:21:52 2017 > New Revision: 294127 > > URL: http://llvm.org/view

[libcxx] r294127 - filesystem: fix n4100 conformance for `temp_directory_path`

2017-02-05 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Feb 5 11:21:52 2017 New Revision: 294127 URL: http://llvm.org/viewvc/llvm-project?rev=294127&view=rev Log: filesystem: fix n4100 conformance for `temp_directory_path` N4100 states that an error shall be reported if `!exists(p) || !is_directory(p)`. We were missing the

[PATCH] D28768: [clang-tidy] Add check 'modernize-return-braced-init-list'

2017-02-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/ReturnBracedInitListCheck.cpp:59 + // Skip explicit construcotrs. + if (MatchedConstructExpr->getConstructor()->isExplicit()) +return; Can't this be handled as part of the matcher? Someth

[PATCH] D29267: [clang-tidy] safety-no-assembler

2017-02-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tools-extra/clang-tidy/safety/NoAssemblerCheck.cpp:32 + + diag(ASM->getAsmLoc(), "'%0' is an inline assembler statement") << SourceText; +} The diagnostic text doesn't help the user to understand why the co

[PATCH] D29393: [clang-tidy] Don't warn about call to unresolved operator*

2017-02-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM with a minor nit that can be fixed without further review. Comment at: test/clang-tidy/misc-unconventional-assign-operator.cpp:92 +enum E { e }; +E operato

[PATCH] D28451: [AVR] Add support for the 'interrupt' and 'naked' attributes

2017-02-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Just one more issue due to the nature of needing a custom parsed attribute. Comment at: lib/Sema/SemaDeclAttr.cpp:5130 +static void handleAVRInterruptAttr(Sema &S, Decl *D, const AttributeList &Attr) { + if (!isFunctionOrMethod(D)) { +S.Diag

r294120 - [X86][MS]Adjacent comments within multi-line inline assembly statement

2017-02-05 Thread Coby Tayree via cfe-commits
Author: coby Date: Sun Feb 5 04:23:06 2017 New Revision: 294120 URL: http://llvm.org/viewvc/llvm-project?rev=294120&view=rev Log: [X86][MS]Adjacent comments within multi-line inline assembly statement Allowing adjacent comments within MS inline assembly multi-line statement Differential Revisio

[PATCH] D28989: [X86][MS]Adjacent comments within multi-line inline assembly statement

2017-02-05 Thread coby via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL294120: [X86][MS]Adjacent comments within multi-line inline assembly statement (authored by coby). Changed prior to commit: https://reviews.llvm.org/D28989?vs=85276&id=87135#toc Repository: rL LLVM

[PATCH] D29542: [TargetInfo] Adjust x86-32 atomic support to the CPU used

2017-02-05 Thread Michał Górny via Phabricator via cfe-commits
mgorny updated this revision to Diff 87134. mgorny edited the summary of this revision. mgorny added a comment. Ok, this CUDA fix should be reasonable, i think. It simply assumes i586+ (i.e. all inline atomics enabled) for CUDA target builds. I seriously doubt it's technically possible that anyo