Add ASTDumper support for AvailabilityQueryExpr

This patch also moves some static utility methods involving PlatformKind out of Attr.h and into PlatformKind.h.


Swift SVN r21896
This commit is contained in:
Devin Coughlin
2014-09-12 00:13:48 +00:00
parent ef791914a1
commit 5a9ccc5ab2
10 changed files with 99 additions and 47 deletions

View File

@@ -58,12 +58,16 @@ public:
VersionComparison getComparison() const { return Comparison; }
SourceLoc getConstraintLoc() const { return ComparisonLoc; }
StringRef getComparisonAsString() const;
// The platform version to compare against.
clang::VersionTuple getVersion() { return Version; }
clang::VersionTuple getVersion() const { return Version; }
SourceRange getVersionSrcRange() const { return VersionSrcRange; }
SourceRange getSourceRange() const;
void print(raw_ostream &OS, unsigned Indent) const;
void *
operator new(size_t Bytes, ASTContext &C,
unsigned Alignment = alignof(VersionConstraintAvailabilitySpec));