Re: [clang-tools-extra] r295482 - [clang-tidy] Add -path option to clang-tidy-diff.py

2017-02-17 Thread Ehsan Akhgari via cfe-commits
t;15" >> >> YAML:1:1: error: Unrecognized escape code! >> >> ^ >> >> :1:7: note: possible intended match here >> >> YAML:1:1: error: Unrecognized escape code! >> >> ^ >> >> >> error: command failed with exit status: 1 &g

Re: [clang-tools-extra] r295482 - [clang-tidy] Add -path option to clang-tidy-diff.py

2017-02-17 Thread Ehsan Akhgari via cfe-commits
: possible intended match here > > YAML:1:1: error: Unrecognized escape code! > > ^ > > > error: command failed with exit status: 1 > > Douglas Yung > > > -Original Message- > > From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Beha

[clang-tools-extra] r295482 - [clang-tidy] Add -path option to clang-tidy-diff.py

2017-02-17 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Fri Feb 17 13:31:43 2017 New Revision: 295482 URL: http://llvm.org/viewvc/llvm-project?rev=295482&view=rev Log: [clang-tidy] Add -path option to clang-tidy-diff.py Summary: This flag allows specifying a custom path for the compilation database. Unfortunately we can't use the

[clang-tools-extra] r294607 - [clang-tidy] Add -quiet option to suppress extra output

2017-02-09 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Thu Feb 9 12:32:02 2017 New Revision: 294607 URL: http://llvm.org/viewvc/llvm-project?rev=294607&view=rev Log: [clang-tidy] Add -quiet option to suppress extra output Summary: This new flag instructs clang-tidy to not output anything except for errors and warnings. This make

[clang-tools-extra] r294491 - [clang-tidy] Add -extra-arg and -extra-arg-before to clang-tidy-diff.py

2017-02-08 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Wed Feb 8 11:50:24 2017 New Revision: 294491 URL: http://llvm.org/viewvc/llvm-project?rev=294491&view=rev Log: [clang-tidy] Add -extra-arg and -extra-arg-before to clang-tidy-diff.py Summary: These flags allow specifying extra arguments to the tool's command line which don't

[clang-tools-extra] r292415 - [clang-tidy] Add -extra-arg and -extra-arg-before to run-clang-tidy.py

2017-01-18 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Wed Jan 18 11:49:35 2017 New Revision: 292415 URL: http://llvm.org/viewvc/llvm-project?rev=292415&view=rev Log: [clang-tidy] Add -extra-arg and -extra-arg-before to run-clang-tidy.py Summary: These flags allow specifying extra arguments to the tool's command line which don't a

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

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

Re: r253909 - Make clang_Cursor_getMangling not mangle if the declaration isn't mangled

2016-05-31 Thread Ehsan Akhgari via cfe-commits
aeology)? > > On Mon, Nov 23, 2015 at 11:56 AM, Ehsan Akhgari via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: ehsan >> Date: Mon Nov 23 13:56:46 2015 >> New Revision: 253909 >> >> URL: http://llvm.org/viewvc/llvm-project?re

r271292 - clang-c: Add the clang_getCursorVisibility() API

2016-05-31 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Tue May 31 10:55:51 2016 New Revision: 271292 URL: http://llvm.org/viewvc/llvm-project?rev=271292&view=rev Log: clang-c: Add the clang_getCursorVisibility() API This patch adds an API for querying the visibility of the entity referred to by a cursor. Patch by Michael Wu . Ad

r271291 - Revert r253909 because it was committed with an incorrect message

2016-05-31 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Tue May 31 10:39:10 2016 New Revision: 271291 URL: http://llvm.org/viewvc/llvm-project?rev=271291&view=rev Log: Revert r253909 because it was committed with an incorrect message Removed: cfe/trunk/test/Index/symbol-visibility.c Modified: cfe/trunk/include/clang-c/Index

r260276 - Fix the test added in r260266

2016-02-09 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Tue Feb 9 14:49:24 2016 New Revision: 260276 URL: http://llvm.org/viewvc/llvm-project?rev=260276&view=rev Log: Fix the test added in r260266 Modified: cfe/trunk/test/Frontend/plugins.c Modified: cfe/trunk/test/Frontend/plugins.c URL: http://llvm.org/viewvc/llvm-project/

r260266 - clang-cl: Enable plugins on Windows

2016-02-09 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Tue Feb 9 13:43:13 2016 New Revision: 260266 URL: http://llvm.org/viewvc/llvm-project?rev=260266&view=rev Log: clang-cl: Enable plugins on Windows Modified: cfe/trunk/test/Frontend/plugins.c cfe/trunk/test/lit.cfg Modified: cfe/trunk/test/Frontend/plugins.c URL: htt

r260265 - clang-cl: Support loading plugins on Windows

2016-02-09 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Tue Feb 9 13:43:11 2016 New Revision: 260265 URL: http://llvm.org/viewvc/llvm-project?rev=260265&view=rev Log: clang-cl: Support loading plugins on Windows This builds on the support being added to LLVM to import and export registries from DLLs. This will allow us to pick up

Re: [PATCH] D16761: clang-cl: Support loading plugins on Windows

2016-02-05 Thread Ehsan Akhgari via cfe-commits
ehsan updated this revision to Diff 47057. ehsan added a comment. Sorry for the noise, arconist fail... http://reviews.llvm.org/D16761 Files: docs/ClangPlugins.rst examples/PrintFunctionNames/PrintFunctionNames.cpp lib/FrontendTool/ExecuteCompilerInvocation.cpp test/Frontend/plugins.c

Re: [PATCH] D16761: clang-cl: Support loading plugins on Windows

2016-02-05 Thread Ehsan Akhgari via cfe-commits
ehsan updated this revision to Diff 47056. ehsan added a comment. Updating based on the LLVM side changes. http://reviews.llvm.org/D16761 Files: docs/ClangPlugins.rst examples/PrintFunctionNames/PrintFunctionNames.cpp include/clang/Basic/DiagnosticASTKinds.td lib/AST/ExprConstant.cpp

Re: [PATCH] D16465: [MS ABI] Prevent some expressions from evaluating to a constant

2016-02-05 Thread Ehsan Akhgari via cfe-commits
ehsan updated this revision to Diff 47021. ehsan added a comment. Addressed the review comments. http://reviews.llvm.org/D16465 Files: include/clang/AST/Decl.h include/clang/AST/Expr.h include/clang/Basic/DiagnosticASTKinds.td lib/AST/Decl.cpp lib/AST/ExprConstant.cpp lib/CodeGen/CG

Re: [PATCH] D16503: [MSVC Compat] Warn when suppressing a trailing comma in macro args

2016-02-02 Thread Ehsan Akhgari via cfe-commits
ehsan added a comment. In http://reviews.llvm.org/D16503#342116, @thakis wrote: > Sorry for the slow response. I was reading http://reviews.llvm.org/D15670 to > understand this patch, and I couldn't find anything in that patch that > enables this extension only in Microsoft mode. Trying > supp

[PATCH] D16761: clang-cl: Support loading plugins on Windows

2016-01-31 Thread Ehsan Akhgari via cfe-commits
ehsan created this revision. ehsan added a reviewer: rnk. ehsan added a subscriber: cfe-commits. This builds on the support being added to LLVM to import and export registries from DLLs. This will allow us to pick up the registry entries added in the DLL's copy of FrontendPluginRegistry. This wi

Re: r258720 - [MSVC Compat] Only warn for unknown clang-cl arguments

2016-01-26 Thread Ehsan Akhgari via cfe-commits
Hi Renato, Thanks, Nico helped me diagnose and fix the test yesterday < http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20160125/147979.html>. I fixed the test accordingly in r258776 and that seems to have worked! Cheers, Ehsan On Tue, Jan 26, 2016 at 7:41 AM, Renato Golin wrote: > Hi,

Re: r258772 - Revert the test for r258720 temporarily

2016-01-25 Thread Ehsan Akhgari via cfe-commits
: > Since it isn't a -### test, the test probably just needs a `// REQUIRES: > x86-registered-target`? Is adding -### a possibility? > > On Mon, Jan 25, 2016 at 8:51 PM, Ehsan Akhgari via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: ehsan >&

r258776 - Recommit the test for r258720 using -###

2016-01-25 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Mon Jan 25 20:23:05 2016 New Revision: 258776 URL: http://llvm.org/viewvc/llvm-project?rev=258776&view=rev Log: Recommit the test for r258720 using -### Modified: cfe/trunk/test/Driver/unknown-arg.c Modified: cfe/trunk/test/Driver/unknown-arg.c URL: http://llvm.org/viewv

Re: r258720 - [MSVC Compat] Only warn for unknown clang-cl arguments

2016-01-25 Thread Ehsan Akhgari via cfe-commits
if you can > revert it for me. I will look at fixing this tomorrow. > On Jan 25, 2016 6:49 PM, "Renato Golin" wrote: > >> On 25 January 2016 at 21:14, Ehsan Akhgari via cfe-commits >> wrote: >> > Author: ehsan >> > Date: Mon Jan 25 15:14:52 2016 >

r258772 - Revert the test for r258720 temporarily

2016-01-25 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Mon Jan 25 19:51:47 2016 New Revision: 258772 URL: http://llvm.org/viewvc/llvm-project?rev=258772&view=rev Log: Revert the test for r258720 temporarily This test is failing on a bot for reasons that are unclear to me. Reverting for now... Modified: cfe/trunk/test/Driver/u

Re: r258720 - [MSVC Compat] Only warn for unknown clang-cl arguments

2016-01-25 Thread Ehsan Akhgari via cfe-commits
Ouch, sorry about that! I'm afk right now, I would appreciate if you can revert it for me. I will look at fixing this tomorrow. On Jan 25, 2016 6:49 PM, "Renato Golin" wrote: > On 25 January 2016 at 21:14, Ehsan Akhgari via cfe-commits > wrote: > > Author: ehsan &g

Re: [PATCH] D16511: [MSVC Compat] Only warn for unknown clang-cl arguments

2016-01-25 Thread Ehsan Akhgari via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL258720: [MSVC Compat] Only warn for unknown clang-cl arguments (authored by ehsan). Changed prior to commit: http://reviews.llvm.org/D16511?vs=45796&id=45906#toc Repository: rL LLVM http://reviews.l

r258720 - [MSVC Compat] Only warn for unknown clang-cl arguments

2016-01-25 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Mon Jan 25 15:14:52 2016 New Revision: 258720 URL: http://llvm.org/viewvc/llvm-project?rev=258720&view=rev Log: [MSVC Compat] Only warn for unknown clang-cl arguments Summary: MSVC's driver accepts all unknown arguments but warns about them. clang by default rejects all unkno

Re: [PATCH] D16511: [MSVC Compat] Only warn for unknown clang-cl arguments

2016-01-25 Thread Ehsan Akhgari via cfe-commits
Thanks for the reviews! Will address both when landing. On Mon, Jan 25, 2016 at 2:34 PM, Hans Wennborg wrote: > hans added a subscriber: hans. > hans added a comment. > > Maybe this behavior should be called out in the Command-Line Options > section under clang-cl in docs/UsersManual.rst? > > >

[PATCH] D16511: [MSVC Compat] Only warn for unknown clang-cl arguments

2016-01-23 Thread Ehsan Akhgari via cfe-commits
ehsan created this revision. ehsan added a reviewer: rnk. ehsan added a subscriber: cfe-commits. MSVC's driver accepts all unknown arguments but warns about them. clang by default rejects all unknown arguments. This causes issues specifically with build systems such as autoconf which liberally p

Re: r258530 - [MSVC Compat] Accept elided commas in macro function arguments

2016-01-22 Thread Ehsan Akhgari via cfe-commits
On Fri, Jan 22, 2016 at 3:22 PM, Nico Weber wrote: > Every time we accept something in MS mode that isn't standards compliant, > we should accept it with a warning (for stuff that's harmless, an Extension > warning, for stuff that can lead to bugs a Warning warning), unless it's > really hard to

[PATCH] D16503: [MSVC Compat] Warn when suppressing a trailing comma in macro args

2016-01-22 Thread Ehsan Akhgari via cfe-commits
ehsan created this revision. ehsan added a reviewer: thakis. ehsan added a subscriber: cfe-commits. MSVC suppresses a trailing comma if no arguments are passed in place of a variadic argument[1]. This patch adds a -Wmicrosoft warning when accepting such code. [1] https://msdn.microsoft.com/en-us

Re: r258530 - [MSVC Compat] Accept elided commas in macro function arguments

2016-01-22 Thread Ehsan Akhgari via cfe-commits
it possible to emit some -Wmicrosoft warning in cases where this is > necessary? > > On Fri, Jan 22, 2016 at 2:26 PM, Ehsan Akhgari via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: ehsan >> Date: Fri Jan 22 13:26:44 2016 >> New Revision: 258

Re: [PATCH] D15670: Accept elided commas in macro function arguments for MS compatibility

2016-01-22 Thread Ehsan Akhgari via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL258530: [MSVC Compat] Accept elided commas in macro function arguments (authored by ehsan). Changed prior to commit: http://reviews.llvm.org/D15670?vs=43310&id=45718#toc Repository: rL LLVM http://r

r258530 - [MSVC Compat] Accept elided commas in macro function arguments

2016-01-22 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Fri Jan 22 13:26:44 2016 New Revision: 258530 URL: http://llvm.org/viewvc/llvm-project?rev=258530&view=rev Log: [MSVC Compat] Accept elided commas in macro function arguments Summary: This fixes PR25875. When the trailing comma in a macro argument list is elided, we need to t

Re: [PATCH] D15670: Accept elided commas in macro function arguments for MS compatibility

2016-01-22 Thread Ehsan Akhgari via cfe-commits
ehsan added a comment. Sure. I'd be happy to address any comments post-landing. Thanks! http://reviews.llvm.org/D15670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15670: Accept elided commas in macro function arguments for MS compatibility

2016-01-22 Thread Ehsan Akhgari via cfe-commits
Sure. I'd be happy to address any comments post-landing. Thanks! On Fri, Jan 22, 2016 at 2:13 PM, Reid Kleckner wrote: > rnk added a comment. > > Let's go ahead and land this. It doesn't seem high risk. Richard will be > back on Monday, he's been skiing. > > > http://reviews.llvm.org/D15670 >

Re: [PATCH] D16465: [MS ABI] Prevent some expressions from evaluating to a constant

2016-01-22 Thread Ehsan Akhgari via cfe-commits
ehsan added a comment. In http://reviews.llvm.org/D16465#333688, @rnk wrote: > Your code won't catch this test case: > > static int x; > extern inline const bool *f() { > static const bool p = !&x; > return &p; > } > > Getting this exactly right is going to be a challenge. =/ Oh y

Re: [PATCH] D16465: [MS ABI] Prevent some expressions from evaluating to a constant

2016-01-22 Thread Ehsan Akhgari via cfe-commits
ehsan added inline comments. Comment at: lib/AST/ExprConstant.cpp:4113 @@ +4112,3 @@ + if (!CheckPotentialExpressionContainingDeclRefExpr(E->getTrueExpr(), + E->getFalseExpr())) +return false; O

[PATCH] D16465: [MS ABI] Prevent some expressions from evaluating to a constant

2016-01-22 Thread Ehsan Akhgari via cfe-commits
ehsan created this revision. ehsan added a reviewer: rnk. ehsan added a subscriber: cfe-commits. In the Microsoft ABI, some expressions containing references to variables cannot be evaluated as a constant. These are expressions containing a conditional, logical and/or, or comma operator with an o

Re: [PATCH] D15670: Accept elided commas in macro function arguments for MS compatibility

2016-01-20 Thread Ehsan Akhgari via cfe-commits
ehsan added a subscriber: ehsan. ehsan added a comment. Richard: ping? http://reviews.llvm.org/D15670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15670: Accept elided commas in macro function arguments for MS compatibility

2016-01-20 Thread Ehsan Akhgari via cfe-commits
Richard: ping? On Tue, Jan 12, 2016 at 6:41 PM, Reid Kleckner wrote: > rnk accepted this revision. > rnk added a comment. > This revision is now accepted and ready to land. > > Seems reasonable to me, but we should check with Richard. > > > http://reviews.llvm.org/D15670 > > > > -- Ehsan

Re: [PATCH] D15839: Move _xgetbv to immintrin.h

2015-12-31 Thread Ehsan Akhgari via cfe-commits
ehsan abandoned this revision. ehsan added a comment. Oops, sorry, I submitted this by mistake. http://reviews.llvm.org/D15839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D15839: Move _xgetbv to immintrin.h

2015-12-31 Thread Ehsan Akhgari via cfe-commits
ehsan created this revision. ehsan added a reviewer: hansw. ehsan added a subscriber: cfe-commits. The documentation in https://msdn.microsoft.com/en-us/library/hh977022.aspx says that this intrinsic is defined in immintrin.h, and that's the header where MSVC declares this intrinsic, but clang-cl

Re: [PATCH] D15795: [ms inline asm] Add support for label names with '$' chars

2015-12-28 Thread Ehsan Akhgari via cfe-commits
ehsan accepted this revision. ehsan added a comment. This revision is now accepted and ready to land. LGTM. Repository: rL LLVM http://reviews.llvm.org/D15795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

[PATCH] D15670: Accept elided commas in macro function arguments for MS compatibility

2015-12-19 Thread Ehsan Akhgari via cfe-commits
ehsan created this revision. ehsan added reviewers: rnk, rsmith. ehsan added a subscriber: cfe-commits. This fixes PR25875. When the trailing comma in a macro argument list is elided, we need to treat it similarly to the case where a variadic macro misses one actual argument. http://reviews.llvm

Re: [PATCH] D13388: Add support for querying the visibility of a cursor

2015-11-23 Thread Ehsan Akhgari via cfe-commits
ehsan accepted this revision. ehsan added a reviewer: ehsan. ehsan added a comment. Landed in r253909. http://reviews.llvm.org/D13388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r253909 - Make clang_Cursor_getMangling not mangle if the declaration isn't mangled

2015-11-23 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Mon Nov 23 13:56:46 2015 New Revision: 253909 URL: http://llvm.org/viewvc/llvm-project?rev=253909&view=rev Log: Make clang_Cursor_getMangling not mangle if the declaration isn't mangled Right now clang_Cursor_getMangling will attempt to mangle any declaration, even if the decl

r251638 - Add a link to the DXR project

2015-10-29 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Thu Oct 29 12:20:17 2015 New Revision: 251638 URL: http://llvm.org/viewvc/llvm-project?rev=251638&view=rev Log: Add a link to the DXR project DXR is a project developed at Mozilla that implements a code indexing and browsing utility on top of libclang that has features such as

r249639 - Make clang_Cursor_getMangling not mangle if the declaration isn't mangled

2015-10-07 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Wed Oct 7 19:01:20 2015 New Revision: 249639 URL: http://llvm.org/viewvc/llvm-project?rev=249639&view=rev Log: Make clang_Cursor_getMangling not mangle if the declaration isn't mangled Right now clang_Cursor_getMangling will attempt to mangle any declaration, even if the decl

r249440 - Revert r249437

2015-10-06 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Tue Oct 6 13:53:12 2015 New Revision: 249440 URL: http://llvm.org/viewvc/llvm-project?rev=249440&view=rev Log: Revert r249437 Modified: cfe/trunk/test/Index/print-mangled-name.cpp cfe/trunk/tools/c-index-test/c-index-test.c cfe/trunk/tools/libclang/CIndex.cpp Mod

Re: [PATCH] D13317: clang_Cursor_getMangling shouldn't mangle if the declaration isn't mangled

2015-10-06 Thread Ehsan Akhgari via cfe-commits
ehsan closed this revision. ehsan added a comment. Landed in r249437. http://reviews.llvm.org/D13317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r249437 - Make clang_Cursor_getMangling don't mangle if the declaration isn't mangled

2015-10-06 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Tue Oct 6 13:24:33 2015 New Revision: 249437 URL: http://llvm.org/viewvc/llvm-project?rev=249437&view=rev Log: Make clang_Cursor_getMangling don't mangle if the declaration isn't mangled Right now clang_Cursor_getMangling will attempt to mangle any declaration, even if the de

Re: [PATCH] D9286: Insert override at the same line as the end of the function declaration

2015-08-18 Thread Ehsan Akhgari via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL245401: Insert override at the same line as the end of the function declaration (authored by ehsan). Changed prior to commit: http://reviews.llvm.org/D9286?vs=24449&id=32492#toc Repository: rL LLVM

[clang-tools-extra] r245401 - Insert override at the same line as the end of the function declaration

2015-08-18 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Tue Aug 18 21:05:37 2015 New Revision: 245401 URL: http://llvm.org/viewvc/llvm-project?rev=245401&view=rev Log: Insert override at the same line as the end of the function declaration Summary: The existing check converts the code pattern below: void f() { } to: void

Re: [PATCH] D9286: Insert override at the same line as the end of the function declaration

2015-08-14 Thread Ehsan Akhgari via cfe-commits
ehsan added a comment. I should land this, but let's wait to see if we want http://reviews.llvm.org/D9285 or not, since this patch is built on top of it. If not, I can rebase it on top of master as well. http://reviews.llvm.org/D9286 ___ cfe-comm

Re: [PATCH] D9285: Add a KeepVirtual option to misc-use-override

2015-08-14 Thread Ehsan Akhgari via cfe-commits
ehsan added a comment. Sorry, I kind of dropped the ball here! At Mozilla we ended up deciding on allowing only a maximum of one of virtual, final or override per function declaration, similar to the Google coding style, so we won't need the KeepVirtual option. Should I still add it neverthele