]> granicus.if.org Git - clang/commitdiff
Add missing accessors.
authorDaniel Dunbar <daniel@zuster.org>
Sun, 29 Nov 2009 02:38:55 +0000 (02:38 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 29 Nov 2009 02:38:55 +0000 (02:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90053 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/LangStandard.h

index 1442cb64e22d1fcacdd0f0dcded875265b21167e..441d34f5a3885bb1d6ecb132677574fb71dbf04c 100644 (file)
@@ -44,6 +44,12 @@ struct LangStandard {
   unsigned Flags;
 
 public:
+  /// getName - Get the name of this standard.
+  const char *getName() const { return ShortName; }
+
+  /// getDescription - Get the description of this standard.
+  const char *getDescription() const { return Description; }
+
   /// hasBCPLComments - Language supports '//' comments.
   bool hasBCPLComments() const { return Flags & frontend::BCPLComment; }