r365017 - [clang-tidy] Fix the YAML created for checks like modernize-pass-by-value

2019-07-03 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Wed Jul 3 03:21:50 2019 New Revision: 365017 URL: http://llvm.org/viewvc/llvm-project?rev=365017=rev Log: [clang-tidy] Fix the YAML created for checks like modernize-pass-by-value Currently this check generates the replacement with the newline in the end. The proper way to

r359453 - [libclang] Add missing export for clang_Cursor_isAnonymousRecordDecl

2019-04-29 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Mon Apr 29 07:13:11 2019 New Revision: 359453 URL: http://llvm.org/viewvc/llvm-project?rev=359453=rev Log: [libclang] Add missing export for clang_Cursor_isAnonymousRecordDecl Follow up for D61232 to fix build. Modified: cfe/trunk/tools/libclang/libclang.exports

r359448 - [libclang] Restore old clang_Cursor_isAnonymous behaviour

2019-04-29 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Mon Apr 29 06:44:07 2019 New Revision: 359448 URL: http://llvm.org/viewvc/llvm-project?rev=359448=rev Log: [libclang] Restore old clang_Cursor_isAnonymous behaviour D54996 Changed the behaviour of clang_Cursor_isAnonymous, but there is no alternative available to get the old

r355586 - [libclang] Fix CXTranslationUnit_KeepGoing

2019-03-07 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu Mar 7 02:13:50 2019 New Revision: 355586 URL: http://llvm.org/viewvc/llvm-project?rev=355586=rev Log: [libclang] Fix CXTranslationUnit_KeepGoing Since commit 56f5487e4387a69708f70724d00e9e076153 [modules] Round-trip -Werror flag through explicit module build. the

r350805 - [libclang] Fix clang_Cursor_isAnonymous

2019-01-10 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu Jan 10 01:34:44 2019 New Revision: 350805 URL: http://llvm.org/viewvc/llvm-project?rev=350805=rev Log: [libclang] Fix clang_Cursor_isAnonymous Use the same logic as in TypePrinter::printTag to determine that the tag is anonymous and the separate check for namespaces.

[clang-tools-extra] r349132 - [clang-tidy] Remove extra config.h includes

2018-12-13 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu Dec 13 23:44:52 2018 New Revision: 349132 URL: http://llvm.org/viewvc/llvm-project?rev=349132=rev Log: [clang-tidy] Remove extra config.h includes It's included in a new header ClangTidyForceLinker.h and should not be included the second time. Follow up for the

[clang-tools-extra] r349131 - [clang-tidy] Share the forced linking code between clang-tidy tool and plugin

2018-12-13 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu Dec 13 23:29:06 2018 New Revision: 349131 URL: http://llvm.org/viewvc/llvm-project?rev=349131=rev Log: [clang-tidy] Share the forced linking code between clang-tidy tool and plugin Extract code that forces linking to the separate header and include it in both plugin and

[clang-tools-extra] r349038 - [clang-tidy] Share the forced linking code between clang-tidy tool and plugin

2018-12-13 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu Dec 13 06:37:17 2018 New Revision: 349038 URL: http://llvm.org/viewvc/llvm-project?rev=349038=rev Log: [clang-tidy] Share the forced linking code between clang-tidy tool and plugin Extract code that forces linking to the separate header and include it in both plugin and

r348764 - [libclang] Revert removal of tidy plugin support from libclang introduced in r347496

2018-12-10 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Mon Dec 10 07:58:50 2018 New Revision: 348764 URL: http://llvm.org/viewvc/llvm-project?rev=348764=rev Log: [libclang] Revert removal of tidy plugin support from libclang introduced in r347496 Differential Revision: https://reviews.llvm.org/D55415 Modified:

r347654 - [libclang] Fix clang_Cursor_getNumArguments and clang_Cursor_getArgument for CXXConstructExpr

2018-11-27 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Tue Nov 27 04:02:39 2018 New Revision: 347654 URL: http://llvm.org/viewvc/llvm-project?rev=347654=rev Log: [libclang] Fix clang_Cursor_getNumArguments and clang_Cursor_getArgument for CXXConstructExpr Constructors have the same methods for arguments as call expressions.

r342721 - [CodeComplete] Generate completion fix-its for C code as well

2018-09-21 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Fri Sep 21 04:23:22 2018 New Revision: 342721 URL: http://llvm.org/viewvc/llvm-project?rev=342721=rev Log: [CodeComplete] Generate completion fix-its for C code as well Current completion fix-its approach does not provide OtherOpBase for C code. But we can easily proceed in

r341656 - [libclang] Return the proper pointee type for 'auto' deduced to pointer

2018-09-07 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Fri Sep 7 06:23:51 2018 New Revision: 341656 URL: http://llvm.org/viewvc/llvm-project?rev=341656=rev Log: [libclang] Return the proper pointee type for 'auto' deduced to pointer Currently the resulting type is always invalid in such case. Differential Revision:

r340521 - [libclang] Fix cursors for arguments of Subscript and Call operators

2018-08-23 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu Aug 23 02:48:11 2018 New Revision: 340521 URL: http://llvm.org/viewvc/llvm-project?rev=340521=rev Log: [libclang] Fix cursors for arguments of Subscript and Call operators The DeclRefExpr of CXXOperatorCallExpr refering to the custom operator is visited before the

r335220 - Fix line endings in recently updated test file

2018-06-21 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu Jun 21 05:39:24 2018 New Revision: 335220 URL: http://llvm.org/viewvc/llvm-project?rev=335220=rev Log: Fix line endings in recently updated test file Modified: cfe/trunk/test/Index/complete-call.cpp Modified: cfe/trunk/test/Index/complete-call.cpp URL:

r335211 - [Sema] Fix overloaded static functions for templates

2018-06-21 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu Jun 21 01:34:50 2018 New Revision: 335211 URL: http://llvm.org/viewvc/llvm-project?rev=335211=rev Log: [Sema] Fix overloaded static functions for templates Apply almost the same fix as https://reviews.llvm.org/D36390 but for templates. Differential Revision:

r334593 - [libclang] Optionally add code completion results for arrow instead of dot

2018-06-13 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Wed Jun 13 05:37:08 2018 New Revision: 334593 URL: http://llvm.org/viewvc/llvm-project?rev=334593=rev Log: [libclang] Optionally add code completion results for arrow instead of dot Follow up for D41537 - libclang part. Differential Revision: https://reviews.llvm.org/D46862

r334072 - Fix build - use llvm::make_unique

2018-06-06 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Wed Jun 6 01:25:54 2018 New Revision: 334072 URL: http://llvm.org/viewvc/llvm-project?rev=334072=rev Log: Fix build - use llvm::make_unique Modified: cfe/trunk/unittests/Frontend/ASTUnitTest.cpp Modified: cfe/trunk/unittests/Frontend/ASTUnitTest.cpp URL:

r334070 - [Frontend] Honor UserFilesAreVolatile flag getting file buffer in ASTUnit

2018-06-06 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Wed Jun 6 00:17:26 2018 New Revision: 334070 URL: http://llvm.org/viewvc/llvm-project?rev=334070=rev Log: [Frontend] Honor UserFilesAreVolatile flag getting file buffer in ASTUnit Do not memory map the main file if the flag UserFilesAreVolatile is set to true in ASTUnit when

r333276 - Fix members initialization order in constructor (fails with -Werror)

2018-05-25 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Fri May 25 06:46:07 2018 New Revision: 333276 URL: http://llvm.org/viewvc/llvm-project?rev=333276=rev Log: Fix members initialization order in constructor (fails with -Werror) Modified: cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h Modified:

r333272 - Optionally add code completion results for arrow instead of dot

2018-05-25 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Fri May 25 05:56:26 2018 New Revision: 333272 URL: http://llvm.org/viewvc/llvm-project?rev=333272=rev Log: Optionally add code completion results for arrow instead of dot Currently getting such completions requires source correction, reparsing and calling completion again.

r332587 - [libclang] Allow skipping function bodies in preamble only

2018-05-17 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu May 17 02:24:37 2018 New Revision: 332587 URL: http://llvm.org/viewvc/llvm-project?rev=332587=rev Log: [libclang] Allow skipping function bodies in preamble only Second attempt. Fix line endings and warning. As an addition to CXTranslationUnit_SkipFunctionBodies, provide

r332586 - [Frontend] Avoid running plugins during code completion parse

2018-05-17 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu May 17 02:21:07 2018 New Revision: 332586 URL: http://llvm.org/viewvc/llvm-project?rev=332586=rev Log: [Frontend] Avoid running plugins during code completion parse Second attempt. Proper line endings. The parsing that is done for code completion is a special case that

r332585 - Revert https://reviews.llvm.org/D46050 and https://reviews.llvm.org/D45815

2018-05-17 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu May 17 02:15:22 2018 New Revision: 332585 URL: http://llvm.org/viewvc/llvm-project?rev=332585=rev Log: Revert https://reviews.llvm.org/D46050 and https://reviews.llvm.org/D45815 Windows line endings. Requires proper resubmission. Removed:

r332578 - [libclang] Allow skipping function bodies in preamble only

2018-05-17 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu May 17 00:31:29 2018 New Revision: 332578 URL: http://llvm.org/viewvc/llvm-project?rev=332578=rev Log: [libclang] Allow skipping function bodies in preamble only As an addition to CXTranslationUnit_SkipFunctionBodies, provide the new option

r332469 - [Frontend] Avoid running plugins during code completion parse

2018-05-16 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Wed May 16 06:50:05 2018 New Revision: 332469 URL: http://llvm.org/viewvc/llvm-project?rev=332469=rev Log: [Frontend] Avoid running plugins during code completion parse The parsing that is done for code completion is a special case that will discard any generated diagnostics,

r322546 - Add missing CINDEX_LINKAGE

2018-01-16 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Tue Jan 16 04:11:59 2018 New Revision: 322546 URL: http://llvm.org/viewvc/llvm-project?rev=322546=rev Log: Add missing CINDEX_LINKAGE Follow up for [libclang] Add PrintingPolicy for pretty printing declarations Differential Revision: https://reviews.llvm.org/D39903

r321794 - [libclang] Support querying whether a declaration is invalid

2018-01-04 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Thu Jan 4 02:59:50 2018 New Revision: 321794 URL: http://llvm.org/viewvc/llvm-project?rev=321794=rev Log: [libclang] Support querying whether a declaration is invalid This is useful for e.g. highlighting purposes in an IDE. Note: First version of this patch was reverted due

Re: r321697 - [libclang] Support querying whether a declaration is invalid

2018-01-03 Thread Ivan Donchevskii via cfe-commits
lures on the buildbots. I've reverted it and the > commits that depended on it in r321708. See that commit message for > more details. > > On Wed, Jan 3, 2018 at 10:49 AM, Ivan Donchevskii via cfe-commits > <cfe-commits@lists.llvm.org> wrote: >> Author: yvvan >> Date: W

r321709 - [libclang] Fix cursors for functions with trailing return type

2018-01-03 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Wed Jan 3 06:35:48 2018 New Revision: 321709 URL: http://llvm.org/viewvc/llvm-project?rev=321709=rev Log: [libclang] Fix cursors for functions with trailing return type This one was rolled back as follow-up to the failing commit. Second try. For the function declaration

r321701 - Fix more line endings.

2018-01-03 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Wed Jan 3 02:40:11 2018 New Revision: 321701 URL: http://llvm.org/viewvc/llvm-project?rev=321701=rev Log: Fix more line endings. Modified: cfe/trunk/include/clang-c/Index.h Modified: cfe/trunk/include/clang-c/Index.h URL:

r321700 - Fix line endings.

2018-01-03 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Wed Jan 3 02:33:21 2018 New Revision: 321700 URL: http://llvm.org/viewvc/llvm-project?rev=321700=rev Log: Fix line endings. Modified: cfe/trunk/test/Index/annotate-tokens.cpp cfe/trunk/test/Index/print-type-size.cpp cfe/trunk/tools/c-index-test/c-index-test.c

r321698 - [libclang] Fix cursors for functions with trailing return type

2018-01-03 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Wed Jan 3 02:04:37 2018 New Revision: 321698 URL: http://llvm.org/viewvc/llvm-project?rev=321698=rev Log: [libclang] Fix cursors for functions with trailing return type For the function declaration auto foo5(Foo) -> Foo; the parameter tokens were mapped to cursors

r321697 - [libclang] Support querying whether a declaration is invalid

2018-01-03 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Wed Jan 3 01:49:31 2018 New Revision: 321697 URL: http://llvm.org/viewvc/llvm-project?rev=321697=rev Log: [libclang] Support querying whether a declaration is invalid This is useful for e.g. highlighting purposes in an IDE. Patch by Nikolai Kosjar. Differential Revision:

r321695 - [libclang] Add clang_getFileContents to libclang.exports

2018-01-03 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Wed Jan 3 01:17:08 2018 New Revision: 321695 URL: http://llvm.org/viewvc/llvm-project?rev=321695=rev Log: [libclang] Add clang_getFileContents to libclang.exports This is the follow up patch for rL319881 which introduced the function but did not put it into .exports file.

r316758 - Test commit

2017-10-27 Thread Ivan Donchevskii via cfe-commits
Author: yvvan Date: Fri Oct 27 04:05:40 2017 New Revision: 316758 URL: http://llvm.org/viewvc/llvm-project?rev=316758=rev Log: Test commit Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp URL: