clang: include/clang/Analysis/Support/FixitUtil.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_CLANG_ANALYSIS_SUPPORT_FIXITUTIL_H

10#define LLVM_CLANG_ANALYSIS_SUPPORT_FIXITUTIL_H

11

16#include

17#include

18

20

21

22

23

24

25

26std::optionalstd::string

29 std::optional *QualifiersToAppend);

30

31

32std::optionalstd::string

35 std::optional *QualifiersToAppend);

36

38

39

42

43

47

48

51

52

53template

54std::optional getPastLoc(const NodeTy *Node,

60 return Loc;

61 return std::nullopt;

62}

63

64

65

67

68}

69

70#endif

Defines the clang::SourceLocation class and associated facilities.

Represents a ValueDecl that came out of a declarator.

This represents one expression.

Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...

static SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset, const SourceManager &SM, const LangOptions &LangOpts)

Computes the source location just past the end of the token at this source location.

Encodes a location in the source.

bool isValid() const

Return true if this is a valid SourceLocation object.

This class handles loading and caching of source files into memory.

A trivial tuple used to represent a source range.

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

SourceLocation getVarDeclIdentifierLoc(const DeclaratorDecl *VD)

SourceLocation getBeginLocOfNestedIdentifier(const DeclaratorDecl *D)

std::optional< StringRef > getExprText(const Expr *E, const SourceManager &SM, const LangOptions &LangOpts)

std::optional< std::string > getPointeeTypeText(const DeclaratorDecl *VD, const SourceManager &SM, const LangOptions &LangOpts, std::optional< Qualifiers > *QualifiersToAppend)

std::optional< std::string > getPointee2TypeText(const DeclaratorDecl *VD, const SourceManager &SM, const LangOptions &LangOpts, std::optional< Qualifiers > *QualifiersToAppend)

std::optional< StringRef > getRangeText(SourceRange SR, const SourceManager &SM, const LangOptions &LangOpts)

std::optional< StringRef > getVarDeclIdentifierText(const DeclaratorDecl *VD, const SourceManager &SM, const LangOptions &LangOpts)

std::optional< SourceLocation > getPastLoc(const NodeTy *Node, const SourceManager &SM, const LangOptions &LangOpts)

Definition FixitUtil.h:54