13 #ifndef LLVM_CLANG_SEMA_SEMAFIXITUTILS_H 14 #define LLVM_CLANG_SEMA_SEMAFIXITUTILS_H 68 CompareTypes(compareTypesSimple) {}
82 NumConversionsFixed = 0;
86 return (NumConversionsFixed == 0);
static bool compareTypesSimple(CanQualType From, CanQualType To, Sema &S, SourceLocation Loc, ExprValueKind FromVK)
Performs a simple check to see if From type can be converted to To type.
ConversionFixItGenerator()
A (possibly-)qualified type.
bool tryToFixConversion(const Expr *FromExpr, const QualType FromQTy, const QualType ToQTy, Sema &S)
If possible, generates and stores a fix for the given conversion.
std::vector< FixItHint > Hints
The list of Hints generated so far.
bool(* TypeComparisonFuncTy)(const CanQualType FromTy, const CanQualType ToTy, Sema &S, SourceLocation Loc, ExprValueKind FromVK)
OverloadFixItKind Kind
The type of fix applied.
Sema - This implements semantic analysis and AST building for C.
Expr - This represents one expression.
ExprValueKind
The categorization of expression values, currently following the C++11 scheme.
ConversionFixItGenerator(TypeComparisonFuncTy Foo)
TypeComparisonFuncTy CompareTypes
The type comparison function used to decide if expression FromExpr of type FromTy can be converted to...
Encodes a location in the source.
Dataflow Directional Tag Classes.
void setConversionChecker(TypeComparisonFuncTy Foo)
Resets the default conversion checker method.
The class facilities generation and storage of conversion FixIts.
unsigned NumConversionsFixed
The number of Conversions fixed.