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

2017-02-07 Thread Dylan McKay via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL294402: [AVR] Add support for the 'interrupt' and 'naked' attributes (authored by dylanmckay). Changed prior to commit: https://reviews.llvm.org/D28451?vs=87365=87588#toc Repository: rL LLVM

[PATCH] D29699: [clang-tidy] Add -extra-arg and -extra-arg-before to clang-tidy-diff.py

2017-02-07 Thread Ehsan Akhgari via Phabricator via cfe-commits
ehsan created this revision. Herald added a subscriber: JDevlieghere. These flags allow specifying extra arguments to the tool's command line which don't appear in the compilation database. https://reviews.llvm.org/D29699 Files: clang-tidy/tool/clang-tidy-diff.py Index:

[PATCH] D29621: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

2017-02-07 Thread Julian Bangert via Phabricator via cfe-commits
jbangert marked 5 inline comments as done. jbangert added a comment. Thank you for the initial feedback! Comment at: include/clang/Tooling/RefactoringCallbacks.h:61 +MatchFinder.addMatcher(Matcher, Callback); +Callbacks.emplace_back(Callback); + }

[PATCH] D29621: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

2017-02-07 Thread Julian Bangert via Phabricator via cfe-commits
jbangert marked 2 inline comments as done. jbangert added a comment. (marking other comments as done). https://reviews.llvm.org/D29621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D29704: [XRay] [clang] Allow logging the first argument of a function call.

2017-02-07 Thread Martin Pelikán via Phabricator via cfe-commits
pelikan created this revision. Functions with the "xray_log_args" attribute will tell LLVM to emit a special XRay sled for compiler-rt to copy any call arguments to your logging handler. https://reviews.llvm.org/D29704 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td

[PATCH] D29699: [clang-tidy] Add -extra-arg and -extra-arg-before to clang-tidy-diff.py

2017-02-07 Thread Ehsan Akhgari via Phabricator via cfe-commits
ehsan added a comment. This is equivalent to https://reviews.llvm.org/D28334 for clang-tidy-diff.py. https://reviews.llvm.org/D29699 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D29621: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

2017-02-07 Thread Julian Bangert via Phabricator via cfe-commits
jbangert updated this revision to Diff 87574. jbangert added a comment. Address code feedback & Reformat with clang-format --style llvm. https://reviews.llvm.org/D29621 Files: include/clang/Tooling/RefactoringCallbacks.h lib/Tooling/RefactoringCallbacks.cpp

[PATCH] D29621: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

2017-02-07 Thread Julian Bangert via Phabricator via cfe-commits
jbangert updated this revision to Diff 87575. jbangert added a comment. - change to push_back https://reviews.llvm.org/D29621 Files: include/clang/Tooling/RefactoringCallbacks.h lib/Tooling/RefactoringCallbacks.cpp unittests/Tooling/RefactoringCallbacksTest.cpp Index:

[PATCH] D29692: [clang-tidy] add check modernize-use-const-instead-of-define

2017-02-07 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added a comment. Please mention this check in docs/ReleaseNotes.rst (in alphabetical order). This check is also should be included into cppcoreguidelines module. Or may be moved there? Comment at: clang-tidy/modernize/UseConstInsteadOfDefineCheck.cpp:41 +///

[PATCH] D29621: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

2017-02-07 Thread Julian Bangert via Phabricator via cfe-commits
jbangert updated this revision to Diff 87579. jbangert added a comment. - use iter https://reviews.llvm.org/D29621 Files: include/clang/Tooling/RefactoringCallbacks.h lib/Tooling/RefactoringCallbacks.cpp unittests/Tooling/RefactoringCallbacksTest.cpp Index:

[PATCH] D29622: Add a batch query and replace tool based on AST matchers.

2017-02-07 Thread Julian Bangert via Phabricator via cfe-commits
jbangert updated this revision to Diff 87580. jbangert marked 7 inline comments as done. jbangert added a comment. Response to initial code review. https://reviews.llvm.org/D29622 Files: clang-query/CMakeLists.txt clang-query/QueryReplace.cpp clang-query/QueryReplace.h

[PATCH] D29622: Add a batch query and replace tool based on AST matchers.

2017-02-07 Thread Julian Bangert via Phabricator via cfe-commits
jbangert added a comment. Thank you for the feedback, addressed and reformatted using llvm style. Comment at: clang-query/QueryReplace.h:35-36 + + /// \brief Replacement text. %"identifier" will be substituted by the text of + /// an identifier. + std::string ToTemplate;

[PATCH] D29630: [libcxx] Threading support: externalize sleep_for()

2017-02-07 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. LGTM. @joerg has raised some legitimate concerns about the Windows implementation. However that shouldn't hold this cleanup up, since the implementation is preexisting.

[PATCH] D29626: [clang-format] Break before a sequence of line comments aligned with the next line.

2017-02-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: lib/Format/UnwrappedLineParser.h:121-123 + // Comments specifies the sequence of comment tokens to analyze. They get + // either pushed to the current line or added to the comments before the next + // token. klimek

[PATCH] D29626: [clang-format] Break before a sequence of line comments aligned with the next line.

2017-02-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: lib/Format/UnwrappedLineParser.h:121-123 + // Comments specifies the sequence of comment tokens to analyze. They get + // either pushed to the current line or added to the comments before the next + // token. klimek

[PATCH] D29692: [clang-tidy] add check modernize-use-const-instead-of-define

2017-02-08 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseConstInsteadOfDefineCheck.cpp:20 +namespace { +class MacroParenthesesPPCallbacks : public PPCallbacks { +public: s/MacroParentheses/ConstantValues/ ? Comment at:

[PATCH] D29626: [clang-format] Break before a sequence of line comments aligned with the next line.

2017-02-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL294435: [clang-format] Break before a sequence of line comments aligned with the next… (authored by krasimir). Changed prior to commit: https://reviews.llvm.org/D29626?vs=87615=87622#toc Repository:

[PATCH] D29626: [clang-format] Break before a sequence of line comments aligned with the next line.

2017-02-08 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added inline comments. Comment at: lib/Format/UnwrappedLineParser.h:121-123 + // Comments specifies the sequence of comment tokens to analyze. They get + // either pushed to the current line or added to the comments before the next + // token. krasimir

[PATCH] D29706: [libcxx] [test] Fix hard_link_count test to account for fs with dir nlink==1

2017-02-08 Thread Michał Górny via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL294431: [test] Fix hard_link_count test to account for fs with dir nlink==1 (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D29706?vs=87613=87618#toc Repository: rL LLVM

[PATCH] D29706: [libcxx] [test] Fix hard_link_count test to account for fs with dir nlink==1

2017-02-08 Thread Michał Górny via Phabricator via cfe-commits
mgorny created this revision. Filesystems are not required to maintain a hard link count consistent with number of subdirectories. For example, on btrfs all directories have nlink==1. Account for that in the test. Repository: rL LLVM https://reviews.llvm.org/D29706 Files:

[PATCH] D29626: [clang-format] Break before a sequence of line comments aligned with the next line.

2017-02-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 87614. krasimir added a comment. - Invent better name for comment analysis. https://reviews.llvm.org/D29626 Files: lib/Format/UnwrappedLineParser.cpp lib/Format/UnwrappedLineParser.h unittests/Format/FormatTest.cpp Index:

[PATCH] D29626: [clang-format] Break before a sequence of line comments aligned with the next line.

2017-02-08 Thread Manuel Klimek via Phabricator via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg. I'd probably still call it consumeComments or something, as we require a flush afterwards for the unconsumed comments, but I don't feel too strongly about that.

[PATCH] D29707: Fix improper microsoft-pure-definition warning on template class

2017-02-08 Thread Rudy Pons via Phabricator via cfe-commits
Ilod created this revision. Clang emits a warning when using pure specifier =0 in function definition at class scope, which is a MS-specific construct, when using -fms-extensions. However, to detect this, it was using FD->isCanonicalDecl() on function declaration, which was also detecting

[PATCH] D29626: [clang-format] Break before a sequence of line comments aligned with the next line.

2017-02-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 87615. krasimir marked an inline comment as done. krasimir added a comment. - Updated call sites. https://reviews.llvm.org/D29626 Files: lib/Format/UnwrappedLineParser.cpp lib/Format/UnwrappedLineParser.h unittests/Format/FormatTest.cpp Index:

[PATCH] D29708: [compiler-rt] [test] #ifdef new builtin tests for __arm__ platform

2017-02-08 Thread Michał Górny via Phabricator via cfe-commits
mgorny created this revision. Herald added subscribers: dberris, aemerson. Add an #if that excludes the newly added aeabi* tests on non-ARM platforms. This is consistent with other ARM tests, and aims to make running builtin tests easier. Lacking a proper infrastructure to run tests selectively,

[PATCH] D29708: [compiler-rt] [test] #ifdef new builtin tests for __arm__ platform

2017-02-08 Thread Michał Górny via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL294438: [test] #ifdef new builtin tests for __arm__ platform (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D29708?vs=87617=87629#toc Repository: rL LLVM

[PATCH] D16135: Macro Debug Info support in Clang

2017-02-07 Thread Amjad Aboud via Phabricator via cfe-commits
aaboud added a comment. In https://reviews.llvm.org/D16135#669416, @aprantl wrote: > In https://reviews.llvm.org/D16135#669045, @aaboud wrote: > > > Addressed Adrian last comments. > > Added a LIT tests that covers all the macro kinds: > > > > 1. built-in (define) > > 2. command-line (define,

[PATCH] D29506: [OpenMP] Teams reduction on the NVPTX device.

2017-02-07 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. The patch is too big and quite hard to review? Could you split it into several smaller parts? Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:4280-4282 + // We don't need debug information in this function as nothing here refers to + // user source

[PATCH] D28973: Supresses misc-move-constructor-init warning for const fields.

2017-02-07 Thread CJ DiMeglio via Phabricator via cfe-commits
lethalantidote updated this revision to Diff 87484. lethalantidote marked an inline comment as done. lethalantidote added a comment. - Addresses alexfh's comments. https://reviews.llvm.org/D28973 Files: clang-tools-extra/clang-tidy/misc/MoveConstructorInitCheck.cpp

[PATCH] D19201: [clang-tidy] misc-throw-with-noexcept

2017-02-07 Thread Stanisław Barzowski via Phabricator via cfe-commits
sbarzowski added inline comments. Comment at: clang-tidy/misc/ThrowWithNoexceptCheck.cpp:54 +// FIXME use DiagnosticIDs::Level::Note +diag(NoExceptRange.getBegin(), "in a function declared no-throw here:", DiagnosticIDs::Note) +<<

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-07 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. In https://reviews.llvm.org/D29221#668867, @klimek wrote: > +hans > > +1 to "format only current document but save all" not making much sense :) Yes, I've been using this version for a little while now, and it's not useful to have the current document version. I'll

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

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

[PATCH] D29713: [clang-format] Move comment tests to their own file.

2017-02-08 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. lg https://reviews.llvm.org/D29713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D28973: Supresses misc-move-constructor-init warning for const fields.

2017-02-08 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG. I'll commit the patch for you. https://reviews.llvm.org/D28973 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D29151: [clang-tidy] Add misc-invalidated-iterators check.

2017-02-04 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added a comment. In https://reviews.llvm.org/D29151#665948, @alexfh wrote: > In https://reviews.llvm.org/D29151#662504, @zaks.anna wrote: > > > Before clang-tidy came into existence the guidelines were very clear. One > > should write a clang warning if the diagnostic: > > > > - can be

[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.

[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

[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

[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)) +

[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

[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

[PATCH] D28213: [Frontend] Correct values of ATOMIC_*_LOCK_FREE to match builtin

2017-02-04 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D28213#666269, @dim wrote: > > What's the value of `__atomic_always_lock_free(sizeof(long long), 0)` for > > gcc and clang? > > For gcc, it is always 0, for clang (I tested 3.4.1 through 4.0.0) it is > always 1. Maybe that was always

[PATCH] D28213: [Frontend] Correct values of ATOMIC_*_LOCK_FREE to match builtin

2017-02-04 Thread Dimitry Andric via Phabricator via cfe-commits
dim added a comment. Created https://llvm.org/bugs/show_bug.cgi?id=31864 to continue this on the bug tracker. Repository: rL LLVM https://reviews.llvm.org/D28213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D29464: [MinGWToolChain] Don't use GCC headers on Win32

2017-02-04 Thread Anton Korobeynikov via Phabricator via cfe-commits
asl requested changes to this revision. asl added inline comments. This revision now requires changes to proceed. Comment at: lib/Driver/MinGWToolChain.cpp:211 +#ifndef LLVM_ON_WIN32 if (GetRuntimeLibType(DriverArgs) == ToolChain::RLT_Libgcc) { This check

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

2017-02-04 Thread Paweł Żukowski via Phabricator via cfe-commits
idlecode added inline comments. Comment at: clang-tools-extra/docs/clang-tidy/checks/list.rst:156 + safety-no-assembler + safety-no-vector-bool `safety-no-vector-bool` seems to belong to the other patch. Comment at:

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

2017-02-04 Thread Paweł Żukowski via Phabricator via cfe-commits
idlecode added inline comments. Comment at: clang-tidy/misc/UnconventionalAssignOperatorCheck.cpp:63 +cxxOperatorCallExpr(argumentCountIs(1), +callee(unresolvedLookupExpr()), +hasArgument(0,

[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

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

2017-02-04 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D29542#666831, @jlebar wrote: > > Could someone help me figure out what is the cause and correct solution to > > that failure? @jlebar? > > You can see in NVPTXTargetInfo that we read properties from the host > targetinfo so that we export

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

2017-02-04 Thread Anton Korobeynikov via Phabricator via cfe-commits
asl 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 + This looks wrong. How you're using FileCheck? Consider dumping

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

2017-02-04 Thread Anton Korobeynikov via Phabricator via cfe-commits
asl added inline comments. Comment at: test/CodeGen/avr-inline-asm-constraints.c:2 +// REQUIRES: avr-registered-target +// RUN: %clang_cc1 -triple avr-unknown-unknown -emit-llvm -o - %s | FileCheck %s + You need checks for multi-character stuff and unsupported

[PATCH] D29545: Driver: Do not link safestack with --whole-archive.

2017-02-04 Thread Peter Collingbourne via Phabricator via cfe-commits
pcc created this revision. This allows it to be used with the other sanitizers. https://reviews.llvm.org/D29545 Files: clang/lib/Driver/Tools.cpp clang/test/Driver/sanitizer-ld.c Index: clang/test/Driver/sanitizer-ld.c ===

[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

[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] D28235: [clang-format cleanup] merge continuous deleted lines into one deletion.

2017-02-04 Thread Paweł Żukowski via Phabricator via cfe-commits
idlecode added inline comments. Comment at: lib/Format/Format.cpp:1182 + I != E; ++I) + LastToNextLineFirst[(*I)->Last] = (*std::next(I))->First; tooling::Replacements Fixes; Could you add brackets around loop body? Comment

[PATCH] D28235: [clang-format cleanup] merge continuous deleted lines into one deletion.

2017-02-04 Thread Paweł Żukowski via Phabricator via cfe-commits
idlecode requested changes to this revision. idlecode added a comment. This revision now requires changes to proceed. Few other tests (from `ChangeNamespaceTest`) require update too. https://reviews.llvm.org/D28235 ___ cfe-commits mailing list

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

2017-02-04 Thread Michał Górny via Phabricator via cfe-commits
mgorny created this revision. Herald added a subscriber: emaste. Set the maximum width of atomic operations on x86-32 based on the target CPU. The 64-bit inline atomics require cmpxchg8b which is an i586 instruction. Other inline atomics require cmpxchg which is an i486 instruction. This fixes

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

2017-02-04 Thread Dimitry Andric via Phabricator via cfe-commits
dim added inline comments. Comment at: lib/Basic/Targets.cpp:4244 +} else // allow locked atomics up to 4 bytes + MaxAtomicPromoteWidth = 32; + } Are you purposefully not setting `MaxAtomicInlineWidth` here? (It seems from `TargetInfo` that the

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

2017-02-04 Thread Justin Lebar via Phabricator via cfe-commits
jlebar added a comment. > Could someone help me figure out what is the cause and correct solution to > that failure? @jlebar? The test is checking that the macros have the same value when compiling for CUDA host and device. That is, if we're compiling for an x86 CPU and an NVPTX GPU, we

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

2017-02-06 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added inline comments. Comment at: lib/Format/WhitespaceManager.cpp:190 +struct TokenTypeAndLevel { + TokenType Type; I don't think you need this struct now. Just use the FormatToken itself, it should have all of this information.

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

2017-02-06 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay updated this revision to Diff 87191. dylanmckay removed a reviewer: asl. dylanmckay added a comment. Add tests - Add multichar constraint tests - Add 'unsupported constraint' tests https://reviews.llvm.org/D28344 Files: lib/Basic/Targets.cpp

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

2017-02-06 Thread Anton Korobeynikov via Phabricator via cfe-commits
asl accepted this revision. asl added inline comments. This revision is now accepted and ready to land. Comment at: lib/Basic/Targets.cpp:8570 +} } don't you want to have "return false" here, just to silence warning for some compilers?

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

2017-02-06 Thread Anton Korobeynikov via Phabricator via cfe-commits
asl accepted this revision. asl added a comment. This revision is now accepted and ready to land. LGTM with minor style nit Comment at: lib/Basic/Targets.cpp:8733 + auto It = std::find_if(AVRMcus.begin(), +AVRMcus.end(), +[&](const MCUInfo ) { return

[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

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

2017-02-06 Thread Michał Górny via Phabricator via cfe-commits
mgorny added inline comments. Comment at: lib/Basic/Targets.cpp:1808 +if (HostTriple.getArch() == llvm::Triple::x86) + HostTarget->setCPU("i586"); + jlebar wrote: > Okay, is this still needed now? Yes. I've specifically tested with it commented out, and

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

2017-02-06 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. I wonder whether there's a compiler diagnostic for this purpose. Compiler diagnostics are more efficient at reaching users and should be preferred where they are appropriate (this seems like one of such cases). https://reviews.llvm.org/D29267

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

2017-02-06 Thread Dylan McKay via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL294176: [AVR] Add support for the full set of inline asm constraints (authored by dylanmckay). Changed prior to commit: https://reviews.llvm.org/D28344?vs=87191=87194#toc Repository: rL LLVM

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

2017-02-06 Thread Dylan McKay via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. dylanmckay marked an inline comment as done. Closed by commit rL294177: [AVR] Allow specifying the CPU on the command line (authored by dylanmckay). Changed prior to commit:

[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] 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

[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

[PATCH] D29451: Add a prototype for clangd v0.1

2017-02-03 Thread Jusufadis Bakamovic via Phabricator via cfe-commits
Adi added inline comments. Comment at: clangd/JSONRPCDispatcher.h:25-32 + virtual ~Handler() = default; + + /// Called when the server receives a method call. This is supposed to return + /// a result on Outs. + virtual void handleMethod(llvm::yaml::MappingNode *Params,

[PATCH] D29451: Add a prototype for clangd v0.1

2017-02-03 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added inline comments. Comment at: clangd/JSONRPCDispatcher.h:25-32 + virtual ~Handler() = default; + + /// Called when the server receives a method call. This is supposed to return + /// a result on Outs. + virtual void handleMethod(llvm::yaml::MappingNode *Params,

[PATCH] D29464: [MinGWToolChain] Don't use GCC headers on Win32

2017-02-03 Thread Yaron Keren via Phabricator via cfe-commits
yaron.keren added a comment. This code is actually used with Windows as well as Linux (with the exception of line 218), see the comment blocks above for detailed include dirs from all platforms from which it was derived. Please make sure include dirs between gcc and clang match after the

[PATCH] D25208: [libc++] Make _LIBCPP_TYPE_VIS export members

2017-02-02 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. Ping. https://reviews.llvm.org/D25208 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D29157: [libc++] Make _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS export members

2017-02-02 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. Ping. https://reviews.llvm.org/D29157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D29451: Add a prototype for clangd v0.1

2017-02-03 Thread Jusufadis Bakamovic via Phabricator via cfe-commits
Adi added a comment. I had some spare time ... I hope you don't mind the comments. Hopefully you will find something useful :) Comment at: clangd/ClangDMain.cpp:65-70 +std::vector JSON; +JSON.resize(Len); +std::cin.read(JSON.data(), Len); + +// Insert a

[PATCH] D29451: Add a prototype for clangd v0.1

2017-02-03 Thread Manuel Klimek via Phabricator via cfe-commits
klimek accepted this revision. klimek added a comment. LG. Couple of questions. Comment at: clangd/ClangDMain.cpp:65 +// Now read the JSON. +std::vector JSON; +JSON.resize(Len); Adi wrote: > Avoid unnecessary JSON.resize(Len) & potential

[PATCH] D19201: [clang-tidy] misc-throw-with-noexcept

2017-02-03 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. A couple of nits. Please address Aaron's comment as well. Comment at: clang-tidy/misc/ThrowWithNoexceptCheck.cpp:53 + for (const auto : NoExceptRanges) { +//

[PATCH] D29486: [clang-format] Re-align broken comment lines where appropriate.

2017-02-03 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL293997: [clang-format] Re-align broken comment lines where appropriate. (authored by krasimir). Changed prior to commit: https://reviews.llvm.org/D29486?vs=86942=86945#toc Repository: rL LLVM

[PATCH] D29486: [clang-format] Re-align broken comment lines where appropriate.

2017-02-03 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Thanks and sorry if I caused this :( https://reviews.llvm.org/D29486 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D29451: Add a prototype for clangd v0.1

2017-02-03 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added a comment. Just a few nits. I think this looks like a great starting point! Comment at: clangd/ClangDMain.cpp:33 + llvm::make_unique(Outs, Logs, Store)); + // FIXME: textDocument/didClose + Dispatcher.registerHandler(

[PATCH] D29486: [clang-format] Re-align broken comment lines where appropriate.

2017-02-03 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. It's very unlikely that you caused this. After re-flowing lots of cases started going over alternative code paths, and this looks like an instance of that. https://reviews.llvm.org/D29486 ___ cfe-commits mailing list

[PATCH] D29464: [MinGWToolChain] Don't use GCC headers on Win32

2017-02-03 Thread Mateusz Mikuła via Phabricator via cfe-commits
mati865 added a comment. Adding // c:\mingw32\lib\gcc\i686-w64-mingw32\4.9.1\include // c:\mingw32\lib\gcc\i686-w64-mingw32\4.9.1\include-fixed for Clang is wrong on Windows because including limits.h will not show an error and won't really include mingw-w64 limits.h Output of code from my

[PATCH] D29369: [ubsan] Omit superflous overflow checks for promoted arithmetic (PR20193)

2017-02-03 Thread Filipe Cabecinhas via Phabricator via cfe-commits
filcab added a comment. Why the switch to `if` instead of a fully-covered switch/case? In https://reviews.llvm.org/D29369#664426, @vsk wrote: > In https://reviews.llvm.org/D29369#664366, @regehr wrote: > > > Out of curiosity, how many of these superfluous checks are not subsequently > >

[PATCH] D29038: [OpenCL] Accept logical NOT for pointer types in CL1.1

2017-02-03 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. @arsenm, do you think you could complete the review? https://reviews.llvm.org/D29038 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D29464: [MinGWToolChain] Don't use GCC headers on Win32

2017-02-03 Thread Yaron Keren via Phabricator via cfe-commits
yaron.keren added a comment. Hiding these two include dirs removes many headers. Most has clang equivalents but not all of them. For example quadmath.h is only there, and without the include path programs using it will fail to compile. The reason mingw limits.h isn't used in your example is

[PATCH] D29464: [MinGWToolChain] Don't use GCC headers on Win32

2017-02-03 Thread Mateusz Mikuła via Phabricator via cfe-commits
mati865 added a comment. I know why mingw-w64 limits.h weren't used (check first comment). At first I was using this hack: diff -urN clang.orig/3.9.0/include/limits.h clang/3.9.0/include/limits.h --- clang.orig/3.9.0/include/limits.h 2016-09-26 22:29:13.496441000 +0200 +++

[PATCH] D21507: Changes after running check modernize-use-emplace (D20964)

2017-02-02 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. If you're still considering to submit this patch, could you rebase it (or maybe re-generate instead?) and split into easier to digest parts? A couple of things I noticed: 1.

[PATCH] D16135: Macro Debug Info support in Clang

2017-01-31 Thread Richard Smith via Phabricator via cfe-commits
rsmith added inline comments. Comment at: include/clang/CodeGen/ModuleBuilder.h:71 + /// + /// This methods can be called before initializing the CGDebugInfo calss. + /// But the returned value should not be used until after initialization. Typo 'calss'

[PATCH] D29152: Drop 'dllimport' when redeclaring inline function template without the attribute (PR31695)

2017-02-01 Thread Hans Wennborg via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL293800: Drop 'dllimport' when redeclaring inline function template without the… (authored by hans). Changed prior to commit: https://reviews.llvm.org/D29152?vs=85818=86676#toc Repository: rL LLVM

[PATCH] D25674: [Concepts] Class template associated constraints

2017-02-01 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added a comment. Ping! https://reviews.llvm.org/D25674 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D16135: Macro Debug Info support in Clang

2017-02-01 Thread Amjad Aboud via Phabricator via cfe-commits
aaboud marked 7 inline comments as done. aaboud added a comment. Thanks Adrian and Richard for the comments, I appreciate that. I am uploading a new patch that address most of the comments. Adrian, I answered some of your comments below. Thanks, Amjad Comment at:

[PATCH] D29369: [ubsan] Omit superflous overflow checks for promoted arithmetic (PR20193)

2017-02-01 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added inline comments. Comment at: lib/CodeGen/CGExprScalar.cpp:72 + if (const auto *UO = dyn_cast(Op.E)) +return IsPromotedInteger(UO->getSubExpr()); + Checking isPromotableIntegerType doesn't work the way you want it to; types can be "promoted"

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

2017-02-01 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. Sorry, missed this, looks good. Repository: rL LLVM https://reviews.llvm.org/D28989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D16135: Macro Debug Info support in Clang

2017-02-01 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. Thanks! Couple more inline comments. Comment at: lib/CodeGen/CGDebugInfo.h:415 + /// Get macro debug info. + llvm::DIMacro *CreateMacro(llvm::DIMacroFile *Parent, unsigned MType, It would be good to be a bit more descriptive here.

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-02-01 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. Thanks :) I should get a chance to return to this next week. Repository: rL LLVM https://reviews.llvm.org/D28462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

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

2017-02-01 Thread Ben Harper via Phabricator via cfe-commits
bmharper added a comment. Thanks - the merge conflicts don't look too bad. I should have it cleaned up by tomorrow. https://reviews.llvm.org/D21279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D29415: [Assembler] Inline assembly diagnostics test.

2017-02-01 Thread Sanne Wouda via Phabricator via cfe-commits
sanwou01 created this revision. Herald added a subscriber: mehdi_amini. Add a test for improved inline assembly diagnostics in llvm. https://reviews.llvm.org/D29415 Files: test/Misc/inline-asm-diags.c Index: test/Misc/inline-asm-diags.c

[PATCH] D16135: Macro Debug Info support in Clang

2017-02-01 Thread Amjad Aboud via Phabricator via cfe-commits
aaboud updated this revision to Diff 86669. aaboud marked an inline comment as done. aaboud added a comment. Address Adrian and Richard comments. Please, review the new patch and let me know if I need to change anything else. Thanks, Amjad https://reviews.llvm.org/D16135 Files:

<    4   5   6   7   8   9   10   11   12   13   >