clang: include/clang/Sema/SemaFixItUtils.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12#ifndef LLVM_CLANG_SEMA_SEMAFIXITUTILS_H

13#define LLVM_CLANG_SEMA_SEMAFIXITUTILS_H

14

16

18

26

27class Sema;

28

29

30

31

33

39

40

41 std::vector Hints;

42

43

44

46

47

48

50

56

57

58

60

64

68

69

73

74

78

83

87};

88

89}

90#endif

This represents one expression.

A (possibly-)qualified type.

Sema - This implements semantic analysis and AST building for C.

Encodes a location in the source.

The JSON file list parser is used to communicate input to InstallAPI.

CanQual< Type > CanQualType

Represents a canonical, potentially-qualified type.

OverloadFixItKind

Definition SemaFixItUtils.h:19

@ OFIK_Dereference

Definition SemaFixItUtils.h:21

@ OFIK_TakeAddress

Definition SemaFixItUtils.h:22

@ OFIK_RemoveDereference

Definition SemaFixItUtils.h:23

@ OFIK_RemoveTakeAddress

Definition SemaFixItUtils.h:24

@ OFIK_Undefined

Definition SemaFixItUtils.h:20

ExprValueKind

The categorization of expression values, currently following the C++11 scheme.

ConversionFixItGenerator()

Definition SemaFixItUtils.h:65

OverloadFixItKind Kind

The type of fix applied.

Definition SemaFixItUtils.h:49

unsigned NumConversionsFixed

The number of Conversions fixed.

Definition SemaFixItUtils.h:45

bool(* TypeComparisonFuncTy)(const CanQualType FromTy, const CanQualType ToTy, Sema &S, SourceLocation Loc, ExprValueKind FromVK)

Definition SemaFixItUtils.h:51

TypeComparisonFuncTy CompareTypes

The type comparison function used to decide if expression FromExpr of type FromTy can be converted to...

Definition SemaFixItUtils.h:59

ConversionFixItGenerator(TypeComparisonFuncTy Foo)

Definition SemaFixItUtils.h:61

void setConversionChecker(TypeComparisonFuncTy Foo)

Resets the default conversion checker method.

Definition SemaFixItUtils.h:70

bool tryToFixConversion(const Expr *FromExpr, const QualType FromQTy, const QualType ToQTy, Sema &S)

If possible, generates and stores a fix for the given conversion.

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.

bool isNull()

Definition SemaFixItUtils.h:84

void clear()

Definition SemaFixItUtils.h:79

std::vector< FixItHint > Hints

The list of Hints generated so far.

Definition SemaFixItUtils.h:41