]> granicus.if.org Git - clang/commitdiff
Tidy up analyze_printf::ConversionSpecifier::Kind declaration, prepping it to be...
authorTed Kremenek <kremenek@apple.com>
Tue, 20 Jul 2010 20:04:20 +0000 (20:04 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 20 Jul 2010 20:04:20 +0000 (20:04 +0000)
with analyze_scanf::ConversionSpecifier::Kind.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108902 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/Analyses/FormatString.h

index a33db7d8c8ef3d45cb5a93737c141e529b265aa4..bd51bdf712718bd071db67e64335ff697145988b 100644 (file)
@@ -257,44 +257,45 @@ class ConversionSpecifier {
 public:
   enum Kind {
     InvalidSpecifier = 0,
-      // C99 conversion specifiers.
-    dArg, // 'd'
-    cArg, // 'c'
-    iArg, // 'i',
-    oArg, // 'o',
-    uArg, // 'u',
-    xArg, // 'x',
-    XArg, // 'X',
-    fArg, // 'f',
-    FArg, // 'F',
-    eArg, // 'e',
-    EArg, // 'E',
-    gArg, // 'g',
-    GArg, // 'G',
-    aArg, // 'a',
-    AArg, // 'A',
-    sArg, // 's'
-    pArg, // 'p'
-    nArg, // 'n'
-    PercentArg,    // '%'
-      // MacOS X unicode extensions.
-    CArg, // 'C'
-    SArg, // 'S'
-      // Objective-C specific specifiers.
-    ObjCObjArg,    // '@'
-      // GlibC specific specifiers.
-    PrintErrno,    // 'm'
-      // Specifier ranges.
-    IntArgBeg = dArg,
-    IntArgEnd = iArg,
-    UIntArgBeg = oArg,
-    UIntArgEnd = XArg,
-    DoubleArgBeg = fArg,
-    DoubleArgEnd = AArg,
-    C99Beg = IntArgBeg,
-    C99End = DoubleArgEnd,
-    ObjCBeg = ObjCObjArg,
-    ObjCEnd = ObjCObjArg
+    // C99 conversion specifiers.
+    cArg,
+    dArg,
+    iArg,
+    IntArgBeg = cArg, IntArgEnd = iArg,    
+
+    oArg,
+    uArg,
+    xArg,
+    XArg,
+    UIntArgBeg = oArg, UIntArgEnd = XArg,
+
+    fArg,
+    FArg,
+    eArg,
+    EArg,
+    gArg,
+    GArg,
+    aArg,
+    AArg,
+    DoubleArgBeg = fArg, DoubleArgEnd = AArg,
+
+    sArg,
+    pArg,
+    nArg,
+    PercentArg,
+    CArg,
+    SArg,
+
+    // ** Printf-specific **
+    
+    // Objective-C specific specifiers.
+    ObjCObjArg,  // '@'
+    ObjCBeg = ObjCObjArg, ObjCEnd = ObjCObjArg,
+    
+    // GlibC specific specifiers.
+    PrintErrno,   // 'm'
+    
+    PrintfConvBeg = ObjCObjArg, PrintfConvEnd = PrintErrno
   };
 
   ConversionSpecifier()