clang: lib/Sema/SemaAVR.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

19

22

25 Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)

27 return;

28 }

29

31 return;

32

33

35 Diag(D->getLocation(), diag::warn_interrupt_signal_attribute_invalid)

36 << 3 << 0 << 0;

37 return;

38 }

40 Diag(D->getLocation(), diag::warn_interrupt_signal_attribute_invalid)

41 << 3 << 0 << 1;

42 return;

43 }

44

46}

47

50 Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)

52 return;

53 }

54

56 return;

57

58

60 Diag(D->getLocation(), diag::warn_interrupt_signal_attribute_invalid)

61 << 3 << 1 << 0;

62 return;

63 }

65 Diag(D->getLocation(), diag::warn_interrupt_signal_attribute_invalid)

66 << 3 << 1 << 1;

67 return;

68 }

69

71}

72

73}

This file declares semantic analysis functions specific to AVR.

bool isRegularKeywordAttribute() const

Decl - This represents one declaration (or definition), e.g.

SourceLocation getLocation() const

ParsedAttr - Represents a syntactic attribute.

bool checkExactlyNumArgs(class Sema &S, unsigned Num) const

Check if the attribute has exactly as many args as Num.

SemaAVR(Sema &S)

Definition SemaAVR.cpp:21

void handleSignalAttr(Decl *D, const ParsedAttr &AL)

Definition SemaAVR.cpp:48

void handleInterruptAttr(Decl *D, const ParsedAttr &AL)

Definition SemaAVR.cpp:23

SemaDiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID)

Emit a diagnostic.

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

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

QualType getFunctionOrMethodResultType(const Decl *D)

bool isFuncOrMethodForAttrSubject(const Decl *D)

isFuncOrMethodForAttrSubject - Return true if the given decl has function type (function or function-...

void handleSimpleAttribute(SemaBase &S, Decl *D, const AttributeCommonInfo &CI)

Applies the given attribute to the Decl without performing any additional semantic checking.

bool hasFunctionProto(const Decl *D)

hasFunctionProto - Return true if the given decl has a argument information.

unsigned getFunctionOrMethodNumParams(const Decl *D)

getFunctionOrMethodNumParams - Return number of function or method parameters.