[cfe-commits] r43052 - in /cfe/trunk: Driver/ASTConsumers.h Driver/SerializationTest.cpp Driver/clang.cpp include/clang/Basic/IdentifierTable.h

Ted Kremenek kremenek at apple.com
Wed Oct 17 09:26:32 PDT 2007


On Oct 16, 2007, at 10:37 PM, Chris Lattner wrote:

>>
>> @@ -60,6 +60,7 @@
>>   WarnDeadStores,               // Run DeadStores checker on parsed  
>> ASTs.
>>   WarnDeadStoresCheck,          // Check diagnostics for  
>> "DeadStores".
>>   WarnUninitVals,               // Run UnitializedVariables checker.
>> +  TestSerialization,            // Run experimental serialization  
>> code.
>>   ParsePrintCallbacks,          // Parse and print each callback.
>>   ParseSyntaxOnly,              // Parse and perform semantic  
>> analysis.
>>   ParseNoop,                    // Parse with noop callbacks.
>> @@ -100,6 +101,8 @@
>>                         "Flag warnings of stores to dead  
>> variables."),
>>              clEnumValN(WarnUninitVals, "warn-uninit-values",
>>                         "Flag warnings of uses of unitialized  
>> variables."),
>> +             clEnumValN(TestSerialization, "test-pickling",
>> +                        "Run prototype serializtion code."),
>>              clEnumValN(EmitLLVM, "emit-llvm",
>>                         "Build ASTs then convert to LLVM, emit .ll  
>> file"),
>>              clEnumValN(RewriteTest, "rewrite-test",
>
> This is getting a bit crazy/unmaintainable.  When convenient, can  
> you please investigate making the various clang modes dynamically  
> registratable using the "llvm/Support/Registry.h" mechanism?  It  
> would be very nice for clang to just get new options when new .o  
> files are linked in (this also gives support for dynamically  
> loadable toys).

That sounds like a great idea.  I'll add it to my things to look into.



More information about the cfe-commits mailing list