14 #ifndef LLVM_CLANG_AST_AVAILABILITY_H
15 #define LLVM_CLANG_AST_AVAILABILITY_H
19 #include "llvm/ADT/StringRef.h"
45 : Version(Version), Platform(Platform), BeginLoc(BeginLoc),
50 : BeginLoc(StarLoc), EndLoc(StarLoc) {}
AvailabilitySpec(VersionTuple Version, StringRef Platform, SourceLocation BeginLoc, SourceLocation EndLoc)
Represents a version number in the form major[.minor[.subminor[.build]]].
AvailabilitySpec(SourceLocation StarLoc)
This constructor is used when representing the '*' case.
bool isOtherPlatformSpec() const
Returns true when this represents the '*' case.
Encodes a location in the source.
SourceLocation getBeginLoc() const
SourceLocation getEndLoc() const
bool empty() const
Determine whether this version information is empty (e.g., all version components are zero)...
VersionTuple getVersion() const
Defines the clang::SourceLocation class and associated facilities.
Defines the clang::VersionTuple class, which represents a version in the form major[.minor[.subminor]].
StringRef getPlatform() const
One specifier in an expression.