On Sat, Jan 12, 2013 at 5:37 PM, Dmitri Gribenko <[email protected]>wrote:

>
>   Is there a good reason to keep black and white as the default mode?
>
> http://llvm-reviews.chandlerc.com/D291
>

The default mode is whatever you set your terminal to.  Mine happens to be
white text on black, so all my examples use that as the default.

I've attached a file with the proper escape characters.  Dumping this to
your terminal with cat should allow you to see how the colors will show up
on your set up.
(TranslationUnitDecl 0x4d00640 <<invalid 
sloc>>
  (TypedefDecl 0x4d00b80 <<invalid 
sloc>> __int128_t '__int128')
  (TypedefDecl 0x4d00be0 <<invalid 
sloc>> __uint128_t 'unsigned __int128')
  (TypedefDecl 0x4d00fa0 <<invalid 
sloc>> __builtin_va_list '__va_list_tag [1]')
  (VarDecl 0x4d010b0 <simple.cc:1:1, 
col:5> Test 'int'
    (VisibilityAttr 0x4d01110 <col:25, 
col:45> Default))
  (FunctionDecl 0x4d2ec10 <line:3:1, 
line:10:1> main 'int (int, char **)'
    (ParmVarDecl 0x4d01160 <line:3:10, 
col:14> argc 'int')
    (ParmVarDecl 0x4d01230 <col:20, 
col:27> argv 'char **')
    (CompoundStmt 0x4d2f098 <col:33, 
line:10:1>
      (DeclStmt 0x4d2edc0 <line:4:3, 
col:40>
        (VarDecl 0x4d2ecf0 <col:3, 
col:39> x 'int'
          (IntegerLiteral 0x4d2eda0 
<col:39> 'int' 5)
          (AlignedAttr 0x4d2ed50 <col:24, 
col:33>
            (IntegerLiteral 0x4d2ecc0 
<col:32> 'int' 4))))
      (DeclStmt 0x4d2ee68 <line:5:3, 
col:12>
        (VarDecl 0x4d2edf0 <col:3, 
col:11> y 'int'
          (IntegerLiteral 0x4d2ee48 
<col:11> 'int' 2)))
      (ForStmt 0x4d2ef70 <line:6:3, 
line:8:7>
        (<<<NULL>>>)
        (<<<NULL>>>)
        (<<<NULL>>>)
        (<<<NULL>>>)
        (IfStmt 0x4d2ef40 <line:7:5, 
line:8:7>
          (<<<NULL>>>)
          (BinaryOperator 0x4d2ef08 
<line:7:9, col:15> 
'_Bool' '!='
            (ImplicitCastExpr 0x4d2eef0 
<col:9> 'int' 
<LValueToRValue>
              (DeclRefExpr 0x4d2ee80 
<col:9> 'int' lvalue 
Var 0x4d2ecf0 'x' 'int'))
            (UnaryOperator 0x4d2eed0 
<col:14, col:15> 
'int' postfix '++'
              (DeclRefExpr 0x4d2eea8 
<col:14> 'int' lvalue 
Var 0x4d2edf0 'y' 'int')))
          (BreakStmt 0x4d2ef30 <line:8:7>)
          (<<<NULL>>>)))
      (ReturnStmt 0x4d2f078 <line:9:3, 
col:16>
        (ParenExpr 0x4d2f058 <col:10, 
col:16> 'int'
          (BinaryOperator 0x4d2f030 
<col:11, col:15> 
'int' '*'
            (ImplicitCastExpr 0x4d2f000 
<col:11> 'int' 
<LValueToRValue>
              (DeclRefExpr 0x4d2efb0 
<col:11> 'int' lvalue 
Var 0x4d2ecf0 'x' 'int'))
            (ImplicitCastExpr 0x4d2f018 
<col:15> 'int' 
<LValueToRValue>
              (DeclRefExpr 0x4d2efd8 
<col:15> 'int' lvalue 
Var 0x4d2edf0 'y' 'int'))))))))
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to