clang: include/clang/Basic/AttributeScopeInfo.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef LLVM_CLANG_BASIC_ATTRIBUTESCOPEINFO_H

15#define LLVM_CLANG_BASIC_ATTRIBUTESCOPEINFO_H

16

18

20

22

24public:

26

28 : Name(Name), NameLoc(NameLoc) {}

29

32 : Name(Name), NameLoc(NameLoc), CommonScopeLoc(CommonScopeLoc) {}

33

36

37 bool isValid() const { return Name != nullptr; }

38 bool isExplicit() const { return CommonScopeLoc.isInvalid(); }

39

40private:

44};

45

46}

47

48#endif

Defines the clang::SourceLocation class and associated facilities.

SourceLocation getNameLoc() const

Definition AttributeScopeInfo.h:35

AttributeScopeInfo()=default

const IdentifierInfo * getName() const

Definition AttributeScopeInfo.h:34

bool isExplicit() const

Definition AttributeScopeInfo.h:38

bool isValid() const

Definition AttributeScopeInfo.h:37

AttributeScopeInfo(const IdentifierInfo *Name, SourceLocation NameLoc, SourceLocation CommonScopeLoc)

Definition AttributeScopeInfo.h:30

AttributeScopeInfo(const IdentifierInfo *Name, SourceLocation NameLoc)

Definition AttributeScopeInfo.h:27

One of these records is kept for each identifier that is lexed.

Encodes a location in the source.

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