[clang-tools-extra] r370482 - [clangd] Add highlighting for macro expansions.

2019-08-30 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Fri Aug 30 08:47:27 2019 New Revision: 370482 URL: http://llvm.org/viewvc/llvm-project?rev=370482=rev Log: [clangd] Add highlighting for macro expansions. Summary: https://github.com/clangd/clangd/issues/134 Reviewers: hokein, ilya-biryukov Subscribers: MaskRay,

[clang-tools-extra] r370473 - [clangd] Added highlighting for structured bindings.

2019-08-30 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Fri Aug 30 07:07:05 2019 New Revision: 370473 URL: http://llvm.org/viewvc/llvm-project?rev=370473=rev Log: [clangd] Added highlighting for structured bindings. Summary: Structured bindings are in a BindingDecl. The decl the declRefExpr points to are the BindingDecls. So

[clang-tools-extra] r370452 - [clangd] Collecting main file macro expansion locations in ParsedAST.

2019-08-30 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Fri Aug 30 02:33:27 2019 New Revision: 370452 URL: http://llvm.org/viewvc/llvm-project?rev=370452=rev Log: [clangd] Collecting main file macro expansion locations in ParsedAST. Summary: TokenBuffer does not collect macro expansions inside macro arguments which is needed

[clang-tools-extra] r370305 - [clangd] Update themeRuleMatcher when color theme changes in vscode extension.

2019-08-29 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Thu Aug 29 01:40:17 2019 New Revision: 370305 URL: http://llvm.org/viewvc/llvm-project?rev=370305=rev Log: [clangd] Update themeRuleMatcher when color theme changes in vscode extension. Summary: Add event listener that listens to configuration changes and reloads the

[clang-tools-extra] r370202 - [clangd] Cleans up the semantic highlighting resources if clangd stops.

2019-08-28 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Wed Aug 28 06:46:22 2019 New Revision: 370202 URL: http://llvm.org/viewvc/llvm-project?rev=370202=rev Log: [clangd] Cleans up the semantic highlighting resources if clangd stops. Summary: Disposes of the vscode listeners when clangd crashes and reuses the old highlighter

[clang-tools-extra] r369911 - [clangd] Handling text editor/document lifetimes in vscode extension.

2019-08-26 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Aug 26 06:56:45 2019 New Revision: 369911 URL: http://llvm.org/viewvc/llvm-project?rev=369911=rev Log: [clangd] Handling text editor/document lifetimes in vscode extension. Summary: Just reapplies highlightings for all files when visible text editors change. Could

[clang-tools-extra] r369893 - [clangd] Added a colorizer to the vscode extension.

2019-08-26 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Aug 26 04:36:11 2019 New Revision: 369893 URL: http://llvm.org/viewvc/llvm-project?rev=369893=rev Log: [clangd] Added a colorizer to the vscode extension. Summary: Adds the main colorizer component. It colorizes every time clangd sends a publishSemanticHighlighting

r369385 - [Syntax] Added function to get macro expansion tokens to TokenBuffer.

2019-08-20 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Tue Aug 20 06:34:01 2019 New Revision: 369385 URL: http://llvm.org/viewvc/llvm-project?rev=369385=rev Log: [Syntax] Added function to get macro expansion tokens to TokenBuffer. Summary: Returns the first token in every mapping where the token is an identifier. This API is

[clang-tools-extra] r369275 - [clangd] Added highlighting for tokens that are macro arguments.

2019-08-19 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Aug 19 09:27:49 2019 New Revision: 369275 URL: http://llvm.org/viewvc/llvm-project?rev=369275=rev Log: [clangd] Added highlighting for tokens that are macro arguments. Summary: Adds semantic highlighting for tokens that are a macro argument. Example: ``` D_V(SomeVar);

[clang-tools-extra] r369238 - [clangd] Added special HighlightingKind for function parameters.

2019-08-19 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Aug 19 00:51:39 2019 New Revision: 369238 URL: http://llvm.org/viewvc/llvm-project?rev=369238=rev Log: [clangd] Added special HighlightingKind for function parameters. Summary: This means that function parameters are no longer highlighted as variable.other.cpp but

[clang-tools-extra] r369090 - [clangd] Added highlighting for non type templates.

2019-08-16 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Fri Aug 16 02:30:21 2019 New Revision: 369090 URL: http://llvm.org/viewvc/llvm-project?rev=369090=rev Log: [clangd] Added highlighting for non type templates. Summary: Non type templates were not being highlighted. This highlights them as TemplateParameters. Reviewers:

[clang-tools-extra] r368834 - [clangd] Loading TokenColorRules as a class mapping the rules to their associated clangd TextMate scope index.

2019-08-14 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Wed Aug 14 05:11:58 2019 New Revision: 368834 URL: http://llvm.org/viewvc/llvm-project?rev=368834=rev Log: [clangd] Loading TokenColorRules as a class mapping the rules to their associated clangd TextMate scope index. Summary: Loads a mapping of the clangd scope lookup

[clang-tools-extra] r368568 - [clangd] Added the vscode SemanticHighlighting feature code but did not enable it in the client.

2019-08-12 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Aug 12 06:33:43 2019 New Revision: 368568 URL: http://llvm.org/viewvc/llvm-project?rev=368568=rev Log: [clangd] Added the vscode SemanticHighlighting feature code but did not enable it in the client. Summary: Added the code for the StaticFeature that must be

[clang-tools-extra] r368563 - [clangd] Remove highlightings coming from non topLevelDecls from included files.

2019-08-12 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Aug 12 06:01:11 2019 New Revision: 368563 URL: http://llvm.org/viewvc/llvm-project?rev=368563=rev Log: [clangd] Remove highlightings coming from non topLevelDecls from included files. Summary: It is possible to write include code from other files so that the decls

[clang-tools-extra] r368546 - [clangd] Highlighting auto variables as the deduced type.

2019-08-12 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Aug 12 00:45:12 2019 New Revision: 368546 URL: http://llvm.org/viewvc/llvm-project?rev=368546=rev Log: [clangd] Highlighting auto variables as the deduced type. Summary: Done in VisitDeclaratorDecl as the AutoTypeLoc is not deduced. Scoped to only work for variables.

[clang-tools-extra] r368434 - [clangd] Added highlighting for constructor initializers.

2019-08-09 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Fri Aug 9 05:19:10 2019 New Revision: 368434 URL: http://llvm.org/viewvc/llvm-project?rev=368434=rev Log: [clangd] Added highlighting for constructor initializers. Summary: Constructor initializers were not being highlighted. This adds highlighting for them by using

[clang-tools-extra] r368403 - [clangd] Fixed printTemplateSpecializationArgs not printing partial variable specialization arguments.

2019-08-09 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Fri Aug 9 00:35:16 2019 New Revision: 368403 URL: http://llvm.org/viewvc/llvm-project?rev=368403=rev Log: [clangd] Fixed printTemplateSpecializationArgs not printing partial variable specialization arguments. Summary: printTemplateSpecializationArgs was not printing

[clang-tools-extra] r368402 - [AST] No longer visiting CXXMethodDecl bodies created by compiler when method was default created.

2019-08-09 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Fri Aug 9 00:30:28 2019 New Revision: 368402 URL: http://llvm.org/viewvc/llvm-project?rev=368402=rev Log: [AST] No longer visiting CXXMethodDecl bodies created by compiler when method was default created. Summary: Clang generates function bodies and puts them in the AST

r368402 - [AST] No longer visiting CXXMethodDecl bodies created by compiler when method was default created.

2019-08-09 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Fri Aug 9 00:30:28 2019 New Revision: 368402 URL: http://llvm.org/viewvc/llvm-project?rev=368402=rev Log: [AST] No longer visiting CXXMethodDecl bodies created by compiler when method was default created. Summary: Clang generates function bodies and puts them in the AST

[clang-tools-extra] r368291 - [clangd] Added semantic highlighting support for primitives.

2019-08-08 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Thu Aug 8 06:10:30 2019 New Revision: 368291 URL: http://llvm.org/viewvc/llvm-project?rev=368291=rev Log: [clangd] Added semantic highlighting support for primitives. Summary: Adds a new HighlightingKind "Primitive". Adds a special case for TypeLocs that have an

[clang-tools-extra] r368287 - [clangd] Added an early return from VisitMemberExpr in SemanticHighlighting if underlying MemberDecl is a CXXConversionDecl.

2019-08-08 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Thu Aug 8 05:43:55 2019 New Revision: 368287 URL: http://llvm.org/viewvc/llvm-project?rev=368287=rev Log: [clangd] Added an early return from VisitMemberExpr in SemanticHighlighting if underlying MemberDecl is a CXXConversionDecl. Summary: Conversion operators contain

[clang-tools-extra] r368261 - [clangd] Fix implicit template instatiations appearing as topLevelDecls.

2019-08-08 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Thu Aug 8 00:21:06 2019 New Revision: 368261 URL: http://llvm.org/viewvc/llvm-project?rev=368261=rev Log: [clangd] Fix implicit template instatiations appearing as topLevelDecls. Summary: The parser gives implicit template instantiations to the action's

[clang-tools-extra] r368136 - [clangd] Added a TextMate theme parser to the vscode extension.

2019-08-07 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Wed Aug 7 01:48:52 2019 New Revision: 368136 URL: http://llvm.org/viewvc/llvm-project?rev=368136=rev Log: [clangd] Added a TextMate theme parser to the vscode extension. Summary: Adds a TextMate parser module to the vscode extension. It parses a theme into an array of a

r367892 - [AST] Fix buildbot failure because of raw string inside macro from 367839.

2019-08-05 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Aug 5 10:14:46 2019 New Revision: 367892 URL: http://llvm.org/viewvc/llvm-project?rev=367892=rev Log: [AST] Fix buildbot failure because of raw string inside macro from 367839. Modified:

r367839 - [AST] Fix RecursiveASTVisitor visiting implicit constructor initializers.

2019-08-05 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Aug 5 05:20:43 2019 New Revision: 367839 URL: http://llvm.org/viewvc/llvm-project?rev=367839=rev Log: [AST] Fix RecursiveASTVisitor visiting implicit constructor initializers. Summary: RecursiveASTVisitor was visiting implcit constructor initializers. This caused

[clang-tools-extra] r367529 - [clangd] Fix buildbot failure from ambigous ArrayRef ctor

2019-08-01 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Thu Aug 1 02:08:41 2019 New Revision: 367529 URL: http://llvm.org/viewvc/llvm-project?rev=367529=rev Log: [clangd] Fix buildbot failure from ambigous ArrayRef ctor Modified: clang-tools-extra/trunk/clangd/SemanticHighlighting.cpp Modified:

[clang-tools-extra] r367521 - [clangd] Duplicate lines of semantic highlightings sent removed.

2019-08-01 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Thu Aug 1 01:08:44 2019 New Revision: 367521 URL: http://llvm.org/viewvc/llvm-project?rev=367521=rev Log: [clangd] Duplicate lines of semantic highlightings sent removed. Summary: Added a class for diffing highlightings and removing duplicate lines. Integrated into the

[clang-tools-extra] r366420 - [clangd] Added highlightings for template parameters and specializations.

2019-07-18 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Thu Jul 18 02:56:38 2019 New Revision: 366420 URL: http://llvm.org/viewvc/llvm-project?rev=366420=rev Log: [clangd] Added highlightings for template parameters and specializations. Summary: Template parameters and specializations were not being highlighted before. This

[clang-tools-extra] r366207 - [clangd] Added highlighting for the targets in typedefs and using.

2019-07-16 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Tue Jul 16 06:23:12 2019 New Revision: 366207 URL: http://llvm.org/viewvc/llvm-project?rev=366207=rev Log: [clangd] Added highlighting for the targets in typedefs and using. Summary: In `typedef int A` the `A` was not highlighted previously. This patch gives `A` the same

[clang-tools-extra] r366070 - [clangd] Fix duplicate highlighting tokens appearing in initializer lists.

2019-07-15 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Jul 15 08:08:27 2019 New Revision: 366070 URL: http://llvm.org/viewvc/llvm-project?rev=366070=rev Log: [clangd] Fix duplicate highlighting tokens appearing in initializer lists. Summary: The RecursiveASTVisitor sometimes visits exprs in initializer lists twice. Added

[clang-tools-extra] r366047 - [clangd] Added highlighting for members and methods.

2019-07-15 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Jul 15 01:12:21 2019 New Revision: 366047 URL: http://llvm.org/viewvc/llvm-project?rev=366047=rev Log: [clangd] Added highlighting for members and methods. Summary: Added highlighting for members and methods. Reviewers: hokein, sammccall, ilya-biryukov Subscribers:

[clang-tools-extra] r366045 - [clangd] Added highlighting to enum constants.

2019-07-15 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Jul 15 00:41:12 2019 New Revision: 366045 URL: http://llvm.org/viewvc/llvm-project?rev=366045=rev Log: [clangd] Added highlighting to enum constants. Summary: VSCode does not have a scope for enum constants. So they were placed under "constant.other.enum" as that

[clang-tools-extra] r365745 - [clangd] Added highlightings for namespace specifiers.

2019-07-11 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Thu Jul 11 02:29:16 2019 New Revision: 365745 URL: http://llvm.org/viewvc/llvm-project?rev=365745=rev Log: [clangd] Added highlightings for namespace specifiers. Summary: Added highlightings for namespace specifiers. Reviewers: hokein, sammccall, ilya-biryukov

[clang-tools-extra] r365602 - [clangd] Added highlighting for class and enum types.

2019-07-10 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Wed Jul 10 01:41:25 2019 New Revision: 365602 URL: http://llvm.org/viewvc/llvm-project?rev=365602=rev Log: [clangd] Added highlighting for class and enum types. Summary: Added highlighting for non-builtin types using VisitTypeLoc. Ignoring namespace qualifiers as for

[clang-tools-extra] r365205 - [clangd] Added highlighting for variable references (declrefs)

2019-07-05 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Fri Jul 5 06:06:03 2019 New Revision: 365205 URL: http://llvm.org/viewvc/llvm-project?rev=365205=rev Log: [clangd] Added highlighting for variable references (declrefs) Summary: Added highlighting for variable references using VisitDeclRefExpr. Reviewers: hokein,

[clang-tools-extra] r365112 - [clangd] Add missing changes for 365111

2019-07-04 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Thu Jul 4 01:06:48 2019 New Revision: 365112 URL: http://llvm.org/viewvc/llvm-project?rev=365112=rev Log: [clangd] Add missing changes for 365111 Modified: clang-tools-extra/trunk/clangd/ClangdLSPServer.h

[clang-tools-extra] r365111 - [clangd] Emit publishSemanticHighlighting in LSP if enabled

2019-07-04 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Thu Jul 4 00:53:12 2019 New Revision: 365111 URL: http://llvm.org/viewvc/llvm-project?rev=365111=rev Log: [clangd] Emit publishSemanticHighlighting in LSP if enabled Summary: Emit publishSemanticHighlighting in LSP if enabled Reviewers: hokein, kadircet Subscribers:

[clang-tools-extra] r364747 - [clangd] No longer getting template instantiations from header files in Main AST.

2019-07-01 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Mon Jul 1 04:49:01 2019 New Revision: 364747 URL: http://llvm.org/viewvc/llvm-project?rev=364747=rev Log: [clangd] No longer getting template instantiations from header files in Main AST. Previous implementation to filter decls not in the main file did not work in the

[clang-tools-extra] r364551 - [clangd] Emit semantic highlighting tokens when the main AST is built.

2019-06-27 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Thu Jun 27 08:13:03 2019 New Revision: 364551 URL: http://llvm.org/viewvc/llvm-project?rev=364551=rev Log: [clangd] Emit semantic highlighting tokens when the main AST is built. Differential Revision: https://reviews.llvm.org/D63821 Modified:

[clang-tools-extra] r364421 - [clangd] Added functionality for getting semantic highlights for variable and function declarations

2019-06-26 Thread Johan Vikstrom via cfe-commits
Author: jvikstrom Date: Wed Jun 26 06:08:36 2019 New Revision: 364421 URL: http://llvm.org/viewvc/llvm-project?rev=364421=rev Log: [clangd] Added functionality for getting semantic highlights for variable and function declarations Added: