clang-tools 20.0.0git
|
A class to encapsulate lowering of the tool's confidence level. More...
#include <LoopConvertUtils.h>
Public Types | |
enum | Level { CL_Risky , CL_Reasonable , CL_Safe } |
Public Member Functions | |
Confidence (Confidence::Level Level) | |
Initialize confidence level. | |
void | lowerTo (Confidence::Level Level) |
Lower the internal confidence level to Level, but do not raise it. | |
Level | getLevel () const |
Return the internal confidence level. | |
A class to encapsulate lowering of the tool's confidence level.
Definition at line 245 of file LoopConvertUtils.h.
Enumerator | |
---|---|
CL_Risky | |
CL_Reasonable | |
CL_Safe |
Definition at line 247 of file LoopConvertUtils.h.
|
inlineexplicit |
Initialize confidence level.
Definition at line 258 of file LoopConvertUtils.h.
|
inline |
Return the internal confidence level.
Definition at line 266 of file LoopConvertUtils.h.
Referenced by clang::tidy::modernize::LoopConvertCheck::check(), and clang::tidy::modernize::ForLoopIndexUseVisitor::getConfidenceLevel().
|
inline |
Lower the internal confidence level to Level, but do not raise it.
Definition at line 261 of file LoopConvertUtils.h.
Referenced by clang::tidy::modernize::LoopConvertCheck::check().