clang-tools
20.0.0git
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
f
g
h
i
n
o
p
q
r
s
t
u
Enumerations
b
c
d
e
f
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
h
l
m
n
o
p
q
r
s
t
u
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
v
w
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
p
q
r
s
u
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
q
r
s
t
u
v
Related Functions
:
c
d
h
i
l
o
p
r
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
Enumerations
Enumerator
Macros
a
c
d
e
f
h
m
n
o
p
r
s
t
llvm-project
clang-tools-extra
clangd
Config.cpp
Go to the documentation of this file.
1
//===--- Config.cpp - User configuration of clangd behavior ---------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
Config.h
"
10
#include "
support/Context.h
"
11
12
namespace
clang
{
13
namespace
clangd {
14
15
Key<Config>
Config::Key
;
16
17
const
Config
&
Config::current
() {
18
if
(
const
Config
*
C
=
Context::current
().get(
Key
))
19
return
*
C
;
20
static
Config
Default;
21
return
Default;
22
}
23
24
}
// namespace clangd
25
}
// namespace clang
Config.h
Context.h
C
const Criteria C
Definition:
FunctionCognitiveComplexityCheck.cpp:92
clang::clangd::Context::current
static const Context & current()
Returns the context for the current thread, creating it if needed.
Definition:
Context.cpp:27
clang::clangd::Key
Values in a Context are indexed by typed keys.
Definition:
Context.h:40
clang
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Definition:
ApplyReplacements.h:27
clang::clangd::Config
Settings that express user/project preferences and control clangd behavior.
Definition:
Config.h:44
clang::clangd::Config::Key
static clangd::Key< Config > Key
Context key which can be used to set the current Config.
Definition:
Config.h:48
clang::clangd::Config::current
static const Config & current()
Returns the Config of the current Context, or an empty configuration.
Definition:
Config.cpp:17
Generated on Sat Feb 1 2025 18:43:47 for clang-tools by
1.9.6