[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 created this revision. Herald added a subscriber: mgorny. This requires https://reviews.llvm.org/D29613. It adds a new tool, clang-query-replace that replaces and AST node with the result of evaluating a simple template language. https://reviews.llvm.org/D29622 Files: clang-query/C

[PATCH] D29621: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

2017-02-07 Thread Julian Bangert via Phabricator via cfe-commits
jbangert created this revision. This is the first change as part of developing a clang-query based search and replace tool. https://reviews.llvm.org/D29621 Files: include/clang/Tooling/RefactoringCallbacks.h lib/Tooling/RefactoringCallbacks.cpp unittests/Tooling/RefactoringCallbacksTest.

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

2017-02-07 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added inline comments. Comment at: clang-query/QueryReplace.cpp:50 + +void QueryReplaceTool::addOperation(clang::query::QueryReplaceSpec &Spec) { + ast_matchers::dynamic::Diagnostics Diag; Shouldn't that also just return the error? Comm

[PATCH] D27810: Normalize all filenames before searching FileManager caches

2017-02-07 Thread Erik Verbruggen via Phabricator via cfe-commits
erikjv updated this revision to Diff 87376. erikjv added a comment. Fixed all failing tests on Windows. https://reviews.llvm.org/D27810 Files: lib/Basic/FileManager.cpp lib/Basic/VirtualFileSystem.cpp lib/StaticAnalyzer/Core/BugReporterVisitors.cpp test/CodeGen/debug-prefix-map.c test

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

2017-02-07 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a reviewer: hans. klimek added a comment. +hans +1 to "format only current document but save all" not making much sense :) Comment at: tools/clang-format-vs/ClangFormat/TypeConverterUtils.cs:7 +{ +public sealed class TypeConverterUtils +{

[clang-tools-extra] r294291 - Add a prototype for clangd

2017-02-07 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Feb 7 04:28:20 2017 New Revision: 294291 URL: http://llvm.org/viewvc/llvm-project?rev=294291&view=rev Log: Add a prototype for clangd clangd is a language server protocol implementation based on clang. It's supposed to provide editor integration while not suffering from the

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

2017-02-07 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL294291: Add a prototype for clangd (authored by d0k). Changed prior to commit: https://reviews.llvm.org/D29451?vs=87226&id=87383#toc Repository: rL LLVM https://reviews.llvm.org/D29451 Files: clan

[PATCH] D29386: Clzero flag addition and inclusion under znver1

2017-02-07 Thread Ganesh Gopalasubramanian via Phabricator via cfe-commits
GGanesh updated this revision to Diff 87386. GGanesh added a comment. Updated for review comments. Repository: rL LLVM https://reviews.llvm.org/D29386 Files: include/clang/Basic/BuiltinsX86.def include/clang/Driver/Options.td lib/Basic/Targets.cpp lib/Headers/CMakeLists.txt lib/Hea

[PATCH] D29621: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

2017-02-07 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: lib/Tooling/RefactoringCallbacks.cpp:42 + void HandleTranslationUnit(ASTContext &Context) override { +for (const auto &Callback : Refactoring.Callbacks) { + Callback->getReplacements().clear(); Could you add a c

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

2017-02-07 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. I feel that this is a bit too rough now; any suggestions on improving the architecture/design of this patch are welcome! Comment at: lib/Format/UnwrappedLineParser.cpp:2206 +const SmallVectorImpl &Comments, +const FormatToken* NextTok) { bo

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

2017-02-07 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: lib/Format/UnwrappedLineParser.cpp:2207 +const FormatToken* NextTok) { bool CommentsInCurrentLine = true; + int StartOfSectionAlignedWithNextToken = -1; Need to add comments about this if we decide we may go wit

[clang-tools-extra] r294292 - [clangd] Add missing include.

2017-02-07 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Feb 7 04:47:40 2017 New Revision: 294292 URL: http://llvm.org/viewvc/llvm-project?rev=294292&view=rev Log: [clangd] Add missing include. Modified: clang-tools-extra/trunk/clangd/Protocol.h Modified: clang-tools-extra/trunk/clangd/Protocol.h URL: http://llvm.org/viewvc

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

2017-02-07 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clang-query/QueryReplace.cpp:1 +#include "QueryReplace.h" +#include "QueryParser.h" Please add license header. Comment at: clang-query/QueryReplace.cpp:37 + +llvm::ErrorOr QueryReplaceSpec::parseFromJSO

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

2017-02-07 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: test/clangd/formatting.txt:9 +# CHECK: {"jsonrpc":"2.0","id":0,"result":{"capabilities":{ +# CHECK: "textDocumentSync": 1, +# CHECK: "documentFormattingProvider": true, bkramer wrote: > djasper wrote:

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

2017-02-07 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added inline comments. Comment at: lib/Format/UnwrappedLineParser.cpp:2206 +const SmallVectorImpl &Comments, +const FormatToken* NextTok) { bool CommentsInCurrentLine = true; krasimir wrote: > Any suggestions on how to improve the code quality

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

2017-02-07 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added a comment. This looks very nice now :-D. Thanks for working on this!! Comment at: lib/Format/WhitespaceManager.cpp:196 + + // ScopeStack keeps track of the current scope depth. + // We only run the "Matches" function on tokens fro

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

2017-02-07 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a comment. I think this looks pretty good. More comments would help :) Also, organize is spelled with a 'z' in American. https://reviews.llvm.org/D29626 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

[clang-tools-extra] r294293 - [clang-tidy] misc-argument-comment - extended gmock support

2017-02-07 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Feb 7 05:39:56 2017 New Revision: 294293 URL: http://llvm.org/viewvc/llvm-project?rev=294293&view=rev Log: [clang-tidy] misc-argument-comment - extended gmock support It looks like direct calls to mocked methods happen in the wild. This patch add support for these as wel

[clang-tools-extra] r294294 - [clangd] Harden test against sed implementations that strip \r.

2017-02-07 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Feb 7 05:49:03 2017 New Revision: 294294 URL: http://llvm.org/viewvc/llvm-project?rev=294294&view=rev Log: [clangd] Harden test against sed implementations that strip \r. Also clean up logging and don't print \0. Modified: clang-tools-extra/trunk/clangd/ClangDMain.cpp

[PATCH] D29628: [compiler-rt] [test] Enable the strace_test only if strace is installed

2017-02-07 Thread Michał Górny via Phabricator via cfe-commits
mgorny created this revision. Herald added a subscriber: dberris. Check whether strace is to be found in PATH, and control the strace_test appropriately. This fixes a test failure when strace is not installed. Repository: rL LLVM https://reviews.llvm.org/D29628 Files: test/lsan/TestCases/

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

2017-02-07 Thread Asiri Rathnayake via Phabricator via cfe-commits
rmaprath created this revision. Different platforms implement the wait/sleep behaviour in very different ways. It makes sense to hoist this functionality into the threading API. I also feel similarly about `hardware_concurrecy()` implementation. Any thoughts on that? https://reviews.llvm.org/

r294282 - Revert "Revert "[AVR] Allow specifying the CPU on the command line""

2017-02-07 Thread Dylan McKay via cfe-commits
Author: dylanmckay Date: Tue Feb 7 00:04:18 2017 New Revision: 294282 URL: http://llvm.org/viewvc/llvm-project?rev=294282&view=rev Log: Revert "Revert "[AVR] Allow specifying the CPU on the command line"" This reverts commit 7ac30e0f839fdab6d723ce2ef6a5b7a4cf03d150. Added: cfe/trunk/test/Co

[clang-tools-extra] r294297 - [clangd] Set stdin to binary to fix tests on windows.

2017-02-07 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Feb 7 06:40:59 2017 New Revision: 294297 URL: http://llvm.org/viewvc/llvm-project?rev=294297&view=rev Log: [clangd] Set stdin to binary to fix tests on windows. Modified: clang-tools-extra/trunk/clangd/ClangDMain.cpp Modified: clang-tools-extra/trunk/clangd/ClangDMain.

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

2017-02-07 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! https://reviews.llvm.org/D28451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[clang-tools-extra] r294299 - Disable test on windows buildbots without shell support

2017-02-07 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Tue Feb 7 07:08:22 2017 New Revision: 294299 URL: http://llvm.org/viewvc/llvm-project?rev=294299&view=rev Log: Disable test on windows buildbots without shell support Modified: clang-tools-extra/trunk/test/clangd/formatting.test Modified: clang-tools-extra/trunk/test/c

[PATCH] D29634: clang-format: [JS] exclaim preceding regex literals.

2017-02-07 Thread Martin Probst via Phabricator via cfe-commits
mprobst created this revision. Herald added a subscriber: klimek. Regex detection would incorrectly classify a trailing `!` operator (nullability cast) followed by a `/` as the start of a regular expression literal. This fixes code such as: var foo = x()! / 10; Which would previously parse a r

Re: [PATCH] [clang-format]: Add support for changing case/default indent/outdent with clang-format

2017-02-07 Thread Ryan Livingston via cfe-commits
When adding more tests, an issue with this approach was found using scopes: switch (x) { case 1: break; case (2): break; case 3: { break; } // <-- Seems we should offset this by 2 } I'll look into getting this behavior and update the patch. ~Ryan

[PATCH] D29635: clang-format: [JS] handle parenthesized class expressions.

2017-02-07 Thread Martin Probst via Phabricator via cfe-commits
mprobst created this revision. Herald added a subscriber: klimek. In JavaScript, classes are expressions, so they can appear e.g. in argument lists. var C = foo(class { bar() { return 1; } }; https://reviews.llvm.org/D29635 Files: lib/Format/UnwrappedLineParser.cpp unitte

[PATCH] D29634: clang-format: [JS] exclaim preceding regex literals.

2017-02-07 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. Looks good. https://reviews.llvm.org/D29634 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D29635: clang-format: [JS] handle parenthesized class expressions.

2017-02-07 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 https://reviews.llvm.org/D29635 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D28814: [OpenCL] Add missing address spaces in IR generation of Blocks

2017-02-07 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia closed this revision. Anastasia marked an inline comment as done. Anastasia added a comment. Committed in r 293286 https://reviews.llvm.org/D28814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

[PATCH] D16135: Macro Debug Info support in Clang

2017-02-07 Thread Amjad Aboud via Phabricator via cfe-commits
aaboud updated this revision to Diff 87408. aaboud marked 2 inline comments as done. aaboud added a comment. Addressed Adrian last comments. Added a LIT tests that covers all the macro kinds: 1. built-in (define) 2. command-line (define, include, undef) 3. main source (define, include, undef) Ch

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

2017-02-07 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added inline comments. Comment at: test/SemaOpenCL/logical-ops.cl:1-3 +// RUN: %clang_cc1 %s -verify -cl-std=CL1.1 -triple x86_64-unknown-linux-gnu +// RUN: %clang_cc1 %s -verify -cl-std=CL1.2 -triple x86_64-unknown-linux-gnu + arsenm wrote: > Anastasia

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

2017-02-07 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added inline comments. Comment at: include/__threading_support:367 + ts.tv_sec = ts_sec_max; + ts.tv_nsec = giga::num - 1; + } I don't think giga::num makes things any clear compared to just spelling it out. Comment at: include/

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

2017-02-07 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 87410. krasimir marked 6 inline comments as done. krasimir added a comment. - Address review comments. https://reviews.llvm.org/D29626 Files: lib/Format/UnwrappedLineParser.cpp lib/Format/UnwrappedLineParser.h unittests/Format/FormatTest.cpp Index:

[PATCH] D29635: clang-format: [JS] handle parenthesized class expressions.

2017-02-07 Thread Martin Probst via Phabricator via cfe-commits
mprobst updated this revision to Diff 87412. mprobst added a comment. - Parse nested classes as child expressions. https://reviews.llvm.org/D29635 Files: lib/Format/UnwrappedLineParser.cpp lib/Format/UnwrappedLineParser.h unittests/Format/FormatTestJS.cpp Index: unittests/Format/FormatT

[PATCH] D29635: clang-format: [JS] handle parenthesized class expressions.

2017-02-07 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL294302: clang-format: [JS] handle parenthesized class expressions. (authored by mprobst). Changed prior to commit: https://reviews.llvm.org/D29635?vs=87412&id=87416#toc Repository: rL LLVM https://r

r294302 - clang-format: [JS] handle parenthesized class expressions.

2017-02-07 Thread Martin Probst via cfe-commits
Author: mprobst Date: Tue Feb 7 08:05:30 2017 New Revision: 294302 URL: http://llvm.org/viewvc/llvm-project?rev=294302&view=rev Log: clang-format: [JS] handle parenthesized class expressions. Summary: In JavaScript, classes are expressions, so they can appear e.g. in argument lists. var C =

[PATCH] D29635: clang-format: [JS] handle parenthesized class expressions.

2017-02-07 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. Sorry.. Should have caught this in the initial review. Still looks good. https://reviews.llvm.org/D29635 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r294304 - clang-format: [JS] exclaim preceding regex literals.

2017-02-07 Thread Martin Probst via cfe-commits
Author: mprobst Date: Tue Feb 7 08:08:03 2017 New Revision: 294304 URL: http://llvm.org/viewvc/llvm-project?rev=294304&view=rev Log: clang-format: [JS] exclaim preceding regex literals. Summary: Regex detection would incorrectly classify a trailing `!` operator (nullability cast) followed by a `

[PATCH] D29634: clang-format: [JS] exclaim preceding regex literals.

2017-02-07 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL294304: clang-format: [JS] exclaim preceding regex literals. (authored by mprobst). Changed prior to commit: https://reviews.llvm.org/D29634?vs=87402&id=87417#toc Repository: rL LLVM https://reviews

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

2017-02-07 Thread Asiri Rathnayake via Phabricator via cfe-commits
rmaprath added inline comments. Comment at: include/__threading_support:593 + using namespace chrono; + milliseconds ms = duration_cast(ns); + if (ms.count() == 0 || ns > duration_cast(ms)) joerg wrote: > Use (ns + 99) so that the cast rounds up. So, this

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

2017-02-07 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added inline comments. Comment at: lib/Format/UnwrappedLineParser.cpp:2207-2208 +const FormatToken *NextTok) { + // Decides which comment tokens should be added to the current line and which + // should be added as comments before the next token. + // --

[clang-tools-extra] r294309 - [clangd] Fix subtle use after return.

2017-02-07 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Feb 7 08:35:09 2017 New Revision: 294309 URL: http://llvm.org/viewvc/llvm-project?rev=294309&view=rev Log: [clangd] Fix subtle use after return. I didn't find this because my main development machine still happens to use libstdc++ with the broken C++11 ABI, which has a glob

[PATCH] D29386: Clzero flag addition and inclusion under znver1

2017-02-07 Thread Simon Pilgrim via Phabricator via cfe-commits
RKSimon added a comment. Still missing a test in llvm\tools\clang\test\CodeGen\builtins-x86.c Repository: rL LLVM https://reviews.llvm.org/D29386 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

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

2017-02-07 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 87424. krasimir added a comment. - Moved method summary from the implementation to the declaration. https://reviews.llvm.org/D29626 Files: lib/Format/UnwrappedLineParser.cpp lib/Format/UnwrappedLineParser.h unittests/Format/FormatTest.cpp Index: uni

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

2017-02-07 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. Given thi

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

2017-02-07 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir marked an inline comment as done. krasimir added inline comments. Comment at: lib/Format/UnwrappedLineParser.cpp:2207-2208 +const FormatToken *NextTok) { + // Decides which comment tokens should be added to the current line and which + // should be added as comment

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

2017-02-07 Thread Samuel Benzaquen via Phabricator via cfe-commits
sbenza added inline comments. Comment at: clang-query/QueryReplace.h:35-36 + + /// \brief Replacement text. %"identifier" will be substituted by the text of + /// an identifier. + std::string ToTemplate; klimek wrote: > This doesn't seem to come up in the test

RE: r285733 - clang/test/CodeGenOpenCL/convergent.cl: Satisfy -Asserts with "opt -instnamer".

2017-02-07 Thread Anastasia Stulova via cfe-commits
I don't understand why we need this extra step in testing now? Did anything fail? Thanks, Anastasia -Original Message- From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Behalf Of NAKAMURA Takumi via cfe-commits Sent: 01 November 2016 20:08 To: cfe-commits@lists.llvm.org S

[clang-tools-extra] r294312 - [clangd] Ignore comments in clangd input, so we can write tests without sed.

2017-02-07 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Feb 7 09:37:17 2017 New Revision: 294312 URL: http://llvm.org/viewvc/llvm-project?rev=294312&view=rev Log: [clangd] Ignore comments in clangd input, so we can write tests without sed. Another attempt on making this work on windows. Modified: clang-tools-extra/trunk/cla

[PATCH] D29643: [analyzer] Do not duplicate call graph nodes for function that has definition and forward declaration.

2017-02-07 Thread Ivan Sidorenko via Phabricator via cfe-commits
IvanSidorenko created this revision. Fix in call graph construction: don't build call graph node for callee function twice for functions with forward declarations. Maybe the same fix should be done and for VisitObjCMethodDecl. Unfortunately, I have not enough expertise in ObjC, so I did not tou

Re: r285733 - clang/test/CodeGenOpenCL/convergent.cl: Satisfy -Asserts with "opt -instnamer".

2017-02-07 Thread NAKAMURA Takumi via cfe-commits
The test depends on named labels. It failed with -Asserts. On Wed, Feb 8, 2017 at 12:45 AM Anastasia Stulova wrote: > I don't understand why we need this extra step in testing now? Did > anything fail? > > Thanks, > Anastasia > > -Original Message- > From: cfe-commits [mailto:cfe-commits

[libcxx] r294311 - Mark LWG2784 as ready

2017-02-07 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Feb 7 09:34:20 2017 New Revision: 294311 URL: http://llvm.org/viewvc/llvm-project?rev=294311&view=rev Log: Mark LWG2784 as ready Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL: http://llvm.org/viewvc/llvm-pro

[PATCH] D29621: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

2017-02-07 Thread Samuel Benzaquen via Phabricator via cfe-commits
sbenza added inline comments. Comment at: include/clang/Tooling/RefactoringCallbacks.h:61 +MatchFinder.addMatcher(Matcher, Callback); +Callbacks.emplace_back(Callback); + } Why emplace_back instead of push_back? Comment at: lib/Tooling

[PATCH] D29386: Clzero flag addition and inclusion under znver1

2017-02-07 Thread Ganesh Gopalasubramanian via Phabricator via cfe-commits
GGanesh updated this revision to Diff 87437. GGanesh added a comment. Updated the builtins test for "__builtin_ia32_clzero" Repository: rL LLVM https://reviews.llvm.org/D29386 Files: include/clang/Basic/BuiltinsX86.def include/clang/Driver/Options.td lib/Basic/Targets.cpp lib/Headers

r294313 - [OpenCL] Accept logical NOT for pointer types in CL1.1

2017-02-07 Thread Anastasia Stulova via cfe-commits
Author: stulova Date: Tue Feb 7 10:09:41 2017 New Revision: 294313 URL: http://llvm.org/viewvc/llvm-project?rev=294313&view=rev Log: [OpenCL] Accept logical NOT for pointer types in CL1.1 Fix for bug 30217 - incorrect error given for logical NOT operation with a pointer type: corrected sema chec

[PATCH] D29027: [Stack Protection] Add remark for reasons why Stack Protection has been applied

2017-02-07 Thread James Henderson via Phabricator via cfe-commits
jhenderson added a comment. Ping! https://reviews.llvm.org/D29027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r294314 - [clangd] Strip file:// from the URI when calling formatting.

2017-02-07 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Feb 7 10:10:17 2017 New Revision: 294314 URL: http://llvm.org/viewvc/llvm-project?rev=294314&view=rev Log: [clangd] Strip file:// from the URI when calling formatting. It confuses FileManager on windows. Modified: clang-tools-extra/trunk/clangd/ProtocolHandlers.cpp Mo

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

2017-02-07 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia closed this revision. Anastasia added a comment. Committed in r294313 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] D17092: [X86] Add -mseparate-stack-seg

2017-02-07 Thread Michael LeMay via Phabricator via cfe-commits
mlemay-intel updated this revision to Diff 87453. mlemay-intel added a comment. Removed the portions that are specific to 32-bit segmentation. I plan to resubmit those later as a separate patch. https://reviews.llvm.org/D17092 Files: include/clang/Driver/Options.td Index: include/clang/Dr

Re: [PATCH] D23421: [Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)

2017-02-07 Thread Benedek Kiss via cfe-commits
Unfortunatelly I wont have time now to work on this check... Thank you for understanding! On Mon, Feb 6, 2017 at 3:44 PM, Gábor Horváth via Phabricator < revi...@reviews.llvm.org> wrote: > xazax.hun added a comment. > > Benedek, do you have time to address the review comments or do you want me >

[PATCH] D29656: clang-format: [JS] correcly format object literal methods.

2017-02-07 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added inline comments. This revision is now accepted and ready to land. Comment at: lib/Format/UnwrappedLineParser.cpp:1306 +// Could be a method inside of a braced list `{a() { return 1; }}`. +if (tryToParseBracedList()) {

[PATCH] D29656: clang-format: [JS] correcly format object literal methods.

2017-02-07 Thread Martin Probst via Phabricator via cfe-commits
mprobst created this revision. Herald added a subscriber: klimek. In JavaScript, object literals can contain methods: var x = { a() { return 1; }, }; Previously, clang-format always parsed nested {} inside a braced list as further braced lists. Special case this logic for JavaScript to t

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

2017-02-07 Thread Sanne Wouda via Phabricator via cfe-commits
sanwou01 updated this revision to Diff 87461. sanwou01 added a comment. Update the tests. Note that the diagnostics for backend errors are missing the "instantiated into assembly here" messages. This is unfortunate but expected: the origin information is no longer available at this stage. http

r294315 - clang-format: [JS] correcly format object literal methods.

2017-02-07 Thread Martin Probst via cfe-commits
Author: mprobst Date: Tue Feb 7 10:33:13 2017 New Revision: 294315 URL: http://llvm.org/viewvc/llvm-project?rev=294315&view=rev Log: clang-format: [JS] correcly format object literal methods. Summary: In JavaScript, object literals can contain methods: var x = { a() { return 1; }, };

[PATCH] D29659: [OpenMP] Add flag for disabling the default generation of relocatable OpenMP target code for NVIDIA GPUs.

2017-02-07 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea created this revision. Previously we have added the "-c" flag which gets passed to PTXAS by default to generate relocatable OpenMP target code by default. This set of flags exposes control over this behaviour. Repository: rL LLVM https://reviews.llvm.org/D29659 Files: include/cl

[PATCH] D23421: [Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)

2017-02-07 Thread Benedek Kiss via Phabricator via cfe-commits
falho added a comment. Unfortunately I wont have time to work on this check anymore... thank you for understanding! Repository: rL LLVM https://reviews.llvm.org/D23421 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[PATCH] D29656: clang-format: [JS] correcly format object literal methods.

2017-02-07 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL294315: clang-format: [JS] correcly format object literal methods. (authored by mprobst). Changed prior to commit: https://reviews.llvm.org/D29656?vs=87456&id=87462#toc Repository: rL LLVM https://r

[PATCH] D29659: [OpenMP] Add flag for disabling the default generation of relocatable OpenMP target code for NVIDIA GPUs.

2017-02-07 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 87463. gtbercea added a comment. Additional test added to check "-c" is passed in appropriately. Repository: rL LLVM https://reviews.llvm.org/D29659 Files: include/clang/Driver/Options.td lib/Driver/Tools.cpp test/Driver/openmp-offload.c Index:

[PATCH] D28445: [Analyzer] Extend taint propagation and checking

2017-02-07 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. Hi Artem, Thank you for adding me, I missed this patch. I have few comments below. If you (and Vlad) can wait for two or three days, I will re-check the place I'm worrying about and post the results. Comment at: lib/StaticAnalyzer/Checkers/GenericT

[PATCH] D16135: Macro Debug Info support in Clang

2017-02-07 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. 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, include, undef) > 3. main source (define, include, undef) Checked the abov

[PATCH] D29661: [clang-tidy] Add -quiet option to suppress extra output

2017-02-07 Thread Ehsan Akhgari via Phabricator via cfe-commits
ehsan created this revision. Herald added a subscriber: JDevlieghere. This new flag instructs clang-tidy to not output anything except for errors and warnings. This makes it easier to script clang-tidy to run as part of external build systems. https://reviews.llvm.org/D29661 Files: clang-tid

[PATCH] D29660: [OpenMP] Add flag for overwriting default PTX version for OpenMP targets

2017-02-07 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea created this revision. This flag "--fopenmp-ptx=" enables the overwriting of the default PTX version used for GPU offloaded OpenMP target regions: "+ptx42". Repository: rL LLVM https://reviews.llvm.org/D29660 Files: include/clang/Driver/Options.td lib/Driver/ToolChains.cpp te

[PATCH] D29644: [OpenMP] Pass -v to PTXAS if it was passed to the driver.

2017-02-07 Thread Justin Lebar via Phabricator via cfe-commits
jlebar accepted this revision. jlebar added a comment. This revision is now accepted and ready to land. I'm fine with this. Repository: rL LLVM https://reviews.llvm.org/D29644 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

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

[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] D21279: Fix some issues in clang-format's AlignConsecutive modes

2017-02-07 Thread Ben Harper via Phabricator via cfe-commits
bmharper added a comment. Thanks for all the code review work! I'm impressed by the quality standard maintained here. https://reviews.llvm.org/D21279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[libcxx] r294328 - Stop using random_shuffle in the libc++ test suite. It's going to be removed in c++17. Use shuffle() instead. No change to libc++, just the tests.

2017-02-07 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Feb 7 12:41:25 2017 New Revision: 294328 URL: http://llvm.org/viewvc/llvm-project?rev=294328&view=rev Log: Stop using random_shuffle in the libc++ test suite. It's going to be removed in c++17. Use shuffle() instead. No change to libc++, just the tests. Modified:

Re: Add warning for c++ member variable shadowing

2017-02-07 Thread James Sun via cfe-commits
Hi Richard, Saleem I cleaned up the patch by removing some unrelated unit tests. Also Saleem can help me with the commit. Thanks! James From: James Sun Date: Saturday, February 4, 2017 at 11:35 PM To: Richard Smith Cc: Saleem Abdulrasool , "cfe-commits@lists.llvm.org" , Aaron Ballman Subje

[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, in

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

r294332 - Revert "Basic: match GCC behaviour for SuS macro"

2017-02-07 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Feb 7 13:00:06 2017 New Revision: 294332 URL: http://llvm.org/viewvc/llvm-project?rev=294332&view=rev Log: Revert "Basic: match GCC behaviour for SuS macro" This reverts commit SVN r294148. Seems that it was mistaken, and GCC does still define `__unix` and `unix` when

Re: [PATCH] D16135: Macro Debug Info support in Clang

2017-02-07 Thread David Blaikie via cfe-commits
On Tue, Feb 7, 2017 at 11:01 AM Amjad Aboud via Phabricator < revi...@reviews.llvm.org> wrote: > 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. > > > A

[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 clang-tools-extra/test/cl

[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) +<< FixItHint::CreateRemoval(NoExcep

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

2017-02-07 Thread Nikita Kakuev via Phabricator via cfe-commits
nkakuev added a comment. Thanks for the response, Alex! The problem I tried to address in this patch was that notes in source files were "unsuppressing" warnings from third-party headers (this is what we were discussing in https://reviews.llvm.org/D26418#590417). But at this point, I no longe

[PATCH] D29676: Enable -dump-deserialized-decls and -error-on-deserialized-decl for modules

2017-02-07 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev created this revision. Enable the useful -dump-deserialized-decls and -error-on-deserialized-decl flags for modules builds, too. Repository: rL LLVM https://reviews.llvm.org/D29676 Files: lib/Frontend/FrontendAction.cpp Index: lib/Frontend/FrontendAction.cpp ==

Re: Add warning for c++ member variable shadowing

2017-02-07 Thread Richard Smith via cfe-commits
Great, thanks! On 7 February 2017 at 10:54, James Sun wrote: > Hi Richard, Saleem > > > > I cleaned up the patch by removing some unrelated unit tests. Also Saleem > can help me with the commit. > > > > Thanks! > > > > James > > > > *From: *James Sun > *Date: *Saturday, February 4, 2017 at 11:3

Re: Add warning for c++ member variable shadowing

2017-02-07 Thread Jonathan Roelofs via cfe-commits
On 1/24/17 8:10 PM, Saleem Abdulrasool via cfe-commits wrote: Don't use the cast for the check, use isa. Although, since you use the value later, it is probably better to write this as: if (const auto *RD = cast(CurContext)) CheckShadowInheritedVariabless(Loc, Name.getAsString(), RD

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

2017-02-07 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek 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) +<< FixItHint::CreateRemoval(NoExceptRan

[libcxx] r294350 - Use copy.deepcopy instead of doing it manually.

2017-02-07 Thread Dan Albert via cfe-commits
Author: danalbert Date: Tue Feb 7 15:04:19 2017 New Revision: 294350 URL: http://llvm.org/viewvc/llvm-project?rev=294350&view=rev Log: Use copy.deepcopy instead of doing it manually. Reviewers: EricWF Reviewed By: EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org

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

2017-02-07 Thread Dan Albert via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL294350: Use copy.deepcopy instead of doing it manually. (authored by danalbert). Changed prior to commit: https://reviews.llvm.org/D29209?vs=85999&id=87507#toc Repository: rL LLVM https://reviews.ll

[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) +<< FixItHint::CreateRemoval(NoExcep

[libcxx] r294353 - Fix test failures when using modules.

2017-02-07 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Feb 7 15:20:31 2017 New Revision: 294353 URL: http://llvm.org/viewvc/llvm-project?rev=294353&view=rev Log: Fix test failures when using modules. Modified: libcxx/trunk/test/libcxx/debug/containers/db_associative_container_tests.pass.cpp libcxx/trunk/test/libcxx

[libcxx] r294355 - fix python3 syntax error

2017-02-07 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Feb 7 15:21:17 2017 New Revision: 294355 URL: http://llvm.org/viewvc/llvm-project?rev=294355&view=rev Log: fix python3 syntax error Modified: libcxx/trunk/test/support/filesystem_dynamic_test_helper.py Modified: libcxx/trunk/test/support/filesystem_dynamic_test_help

[PATCH] D29628: [compiler-rt] [test] Enable the strace_test only if strace is installed

2017-02-07 Thread Kostya Serebryany via Phabricator via cfe-commits
kcc accepted this revision. kcc added a comment. This revision is now accepted and ready to land. LGTM, but please manually verify that the test runs if strace *is* available. Repository: rL LLVM https://reviews.llvm.org/D29628 ___ cfe-commits m

r294358 - clang-format: Fix bad variable declaration detection.

2017-02-07 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Feb 7 15:38:16 2017 New Revision: 294358 URL: http://llvm.org/viewvc/llvm-project?rev=294358&view=rev Log: clang-format: Fix bad variable declaration detection. Before: LongType variable(nullptr, [](A *a) {}); After: LongType

r294359 - Enable -dump-deserialized-decls and -error-on-deserialized-decl for modules.

2017-02-07 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Tue Feb 7 15:49:41 2017 New Revision: 294359 URL: http://llvm.org/viewvc/llvm-project?rev=294359&view=rev Log: Enable -dump-deserialized-decls and -error-on-deserialized-decl for modules. Modified: cfe/trunk/lib/Frontend/FrontendAction.cpp Modified: cfe/trunk/lib/Fro

[libcxx] r294360 - Fix bugs in filesystem detected by _LIBCPP_ASSERT.

2017-02-07 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Feb 7 15:51:58 2017 New Revision: 294360 URL: http://llvm.org/viewvc/llvm-project?rev=294360&view=rev Log: Fix bugs in filesystem detected by _LIBCPP_ASSERT. Recently I turned on libc++'s debug mode assertions when CMake is configured with -DLIBCXX_ENABLE_ASSERTIONS=ON.

  1   2   >