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
clang-tidy
hicpp
IgnoredRemoveResultCheck.cpp
Go to the documentation of this file.
1
//===--- IgnoredRemoveResultCheck.cpp - clang-tidy ------------------------===//
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 "
IgnoredRemoveResultCheck.h
"
10
11
namespace
clang::tidy::hicpp
{
12
13
IgnoredRemoveResultCheck::IgnoredRemoveResultCheck
(llvm::StringRef
Name
,
14
ClangTidyContext
*Context)
15
: UnusedReturnValueCheck(
Name
, Context,
16
{
17
"::std::remove$"
,
18
"::std::remove_if$"
,
19
"::std::unique$"
,
20
}) {
21
// The constructor for ClangTidyCheck needs to have been called
22
// before we can access options via Options.get().
23
AllowCastToVoid = Options.get(
"AllowCastToVoid"
,
true
);
24
}
25
26
void
IgnoredRemoveResultCheck::storeOptions
(
ClangTidyOptions::OptionMap
&Opts) {
27
Options
.
store
(Opts,
"AllowCastToVoid"
,
AllowCastToVoid
);
28
}
29
30
}
// namespace clang::tidy::hicpp
Name
llvm::SmallString< 256U > Name
Definition:
ChainedComparisonCheck.cpp:42
IgnoredRemoveResultCheck.h
clang::tidy::ClangTidyCheck::OptionsView::store
void store(ClangTidyOptions::OptionMap &Options, StringRef LocalName, StringRef Value) const
Stores an option with the check-local name LocalName with string value Value to Options.
Definition:
ClangTidyCheck.cpp:141
clang::tidy::ClangTidyCheck::Options
OptionsView Options
Definition:
ClangTidyCheck.h:490
clang::tidy::ClangTidyContext
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
Definition:
ClangTidyDiagnosticConsumer.h:69
clang::tidy::bugprone::UnusedReturnValueCheck::AllowCastToVoid
bool AllowCastToVoid
Definition:
UnusedReturnValueCheck.h:42
clang::tidy::hicpp::IgnoredRemoveResultCheck::storeOptions
void storeOptions(ClangTidyOptions::OptionMap &Opts) override
Should store all options supported by this check with their current values or default values for opti...
Definition:
IgnoredRemoveResultCheck.cpp:26
clang::tidy::hicpp::IgnoredRemoveResultCheck::IgnoredRemoveResultCheck
IgnoredRemoveResultCheck(StringRef Name, ClangTidyContext *Context)
Definition:
IgnoredRemoveResultCheck.cpp:13
clang::tidy::hicpp
Definition:
ExceptionBaseclassCheck.cpp:15
clang::tidy::ClangTidyOptions::OptionMap
llvm::StringMap< ClangTidyValue > OptionMap
Definition:
ClangTidyOptions.h:126
Generated on Fri Feb 21 2025 14:11:23 for clang-tools by
1.9.6