Johan Vikstrom
17b4a932fa
[clangd] Added highlighting for members and methods.
...
Summary: Added highlighting for members and methods.
Reviewers: hokein, sammccall, ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D64617
llvm-svn: 366047
2019-07-15 08:12:21 +00:00
Johan Vikstrom
d02f17daed
[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 seems to be the most correct scope for enum constants. However, this makes theia color them blue (the same color it uses for keywords).
Reviewers: hokein, sammccall, ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D64624
llvm-svn: 366045
2019-07-15 07:41:12 +00:00
Johan Vikstrom
b6a74e33c3
[clangd] Added highlightings for namespace specifiers.
...
Summary: Added highlightings for namespace specifiers.
Reviewers: hokein, sammccall, ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D64492
llvm-svn: 365745
2019-07-11 09:29:16 +00:00
Johan Vikstrom
eff868fdef
[clangd] Added highlighting for class and enum types.
...
Summary: Added highlighting for non-builtin types using VisitTypeLoc. Ignoring namespace qualifiers as for now.
Reviewers: hokein, sammccall, ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D64257
llvm-svn: 365602
2019-07-10 08:41:25 +00:00
Johan Vikstrom
8ca1c65ced
[clangd] Added highlighting for variable references (declrefs)
...
Summary: Added highlighting for variable references using VisitDeclRefExpr.
Reviewers: hokein, sammccall
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D64199
llvm-svn: 365205
2019-07-05 13:06:03 +00:00
Haojian Wu
1ca2ee4dc1
[clangd] Some tweaks on semantic highlighting lookuptable.
...
Summary:
- move toTextMateScope to SemanticHighlighting.h;
- move the buildLookupTable to LSP layer (as LSP requires such form);
Reviewers: sammccall, jvikstrom
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D64202
llvm-svn: 365135
2019-07-04 12:27:21 +00:00
Johan Vikstrom
a848dab7a3
[clangd] Emit publishSemanticHighlighting in LSP if enabled
...
Summary: Emit publishSemanticHighlighting in LSP if enabled
Reviewers: hokein, kadircet
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D63919
llvm-svn: 365111
2019-07-04 07:53:12 +00:00
Haojian Wu
cbab10099d
[clangd] No need to setTraversalScope in SemanticHighlighting.
...
Summary:
We have already set it when the AST is being built, and setting TraversalScope
is not free (it will clear the cache, which is expensive to build).
Reviewers: jvikstrom
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D63874
llvm-svn: 364528
2019-06-27 12:22:18 +00:00
Johan Vikstrom
09bc665766
[clangd] Added functionality for getting semantic highlights for variable and function declarations
...
llvm-svn: 364421
2019-06-26 13:08:36 +00:00