Skip to content
  1. Jun 12, 2007
    • Chris Lattner's avatar
      Pretty print if/else/elseif chains nicer, like this: · c0a38dd3
      Chris Lattner authored
      void printutf8(unsigned int X) {
        if (X <= 127)
          printf("%c", (char)X);
        else if (X <= 2047)
          printf("%d %d ", 128 + 64 + (X >> 6), 128 + (X & ((1 << 6) - 1)));
        else if (X <= 65535)
          printf("%c%c%c", 128 + 64 + 32 + (X >> 12), 128 + ((X >> 6) & 63), 128 + (X & 63));
        else
          printf("UNKNOWN %d\n", X);
      
      instead of:
      
        if (X <= 127)
          printf("%c", (char)X);
        else
          if (X <= 2047)
            printf("%d %d ", 128 + 64 + (X >> 6), 128 + (X & ((1 << 6) - 1)));
          else
            if (X <= 65535)
              printf("%c%c%c", 128 + 64 + 32 + (X >> 12), 128 + ((X >> 6) & 63), 128 + (X & 63));
            else
              printf("UNKNOWN %d\n", X);
      
      llvm-svn: 39648
      c0a38dd3
  2. Jun 11, 2007
  3. Jun 10, 2007
    • Bill Wendling's avatar
      Submitted by: Bill Wendling · 314ae547
      Bill Wendling authored
      Reviewed by: Chris Lattner
      
      - Added a method "IgnoreDiagnostic" so that the diagnostic client can
        tell the diagnostic object that it doesn't want to handle a particular
        diagnostic message. In which case, it won't be counted as either a
        diagnostic or error.
      
      llvm-svn: 39641
      314ae547
    • Steve Naroff's avatar
      Bug #: · 0f05a7ae
      Steve Naroff authored
      Submitted by:
      Reviewed by:
      Changed the name of DeclSpec.AddAttribute and Declarator.AddAttribute to
      AddAttributes(). Also added some (much needed) comments. While documenting,
      realized I could simplify & tighten up Declarator.AddAttributes...
      
      llvm-svn: 39640
      0f05a7ae
  4. Jun 09, 2007
  5. Jun 08, 2007
Loading