| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
HandleTranslationUnit instead of the destructor.
llvm-svn: 54513
|
|
|
|
|
|
|
|
| |
attached file
While this is a safe rewriter fix, there is still a need for some discussion (see report for more info).
llvm-svn: 54412
|
|
|
|
|
|
| |
__CFConstantStringClassReference[];" should be extern "C"
llvm-svn: 54367
|
|
|
|
|
|
| |
input file, rewriter inserts #define on same line as closing brace
llvm-svn: 54363
|
|
|
|
|
|
| |
<rdar://problem/6108127> clang ObjC rewriter: no translation of id <proto>
llvm-svn: 54163
|
|
|
|
| |
llvm-svn: 54106
|
|
|
|
|
|
|
|
| |
and throw.
This fixes <rdar://problem/5988388> clang ObjC rewriter: mystery 'w' inserted in exception throw.
llvm-svn: 54017
|
|
|
|
|
|
|
|
| |
This fixes a critical rewriter bug (<rdar://problem/6096760> clang ObjC rewriter: 'self' not expected value in class method called with 'super').
Also added a couple FIXME's since I'm not happy with my fix to Sema. It would be nicer if the super handling for class/instance messages was the same (based on PreDefinedExpr).
llvm-svn: 53994
|
|
|
|
| |
llvm-svn: 53877
|
|
|
|
|
|
| |
simplifying code along the way and fixing a problem and memory leak or two.
llvm-svn: 53876
|
|
|
|
|
|
|
|
| |
single statement.
Fixes <rdar://problem/6084870> clang ObjC rewriter: for-in enumeration in 1 line produces output with error.
llvm-svn: 53858
|
|
|
|
|
|
|
| |
various objc lists over to it. First up, the protocol list
on ObjCInterfaceDecl.
llvm-svn: 53856
|
|
|
|
|
|
| |
Fixes <rdar://problem/6046663> clang ObjC rewriter: Regression in handling of 'super' in latest build.
llvm-svn: 53703
|
|
|
|
| |
llvm-svn: 53696
|
|
|
|
|
|
| |
This fixes <rdar://problem/6040143> clang ObjC rewriter: @synchronized keyword inserts undeclared objc functions.
llvm-svn: 53695
|
|
|
|
|
|
|
| |
- Make sure ObjCIvarDecl propagates the bitfield width.
- RewriteObjC::SynthesizeIvarOffsetComputation(): Avoid using the __OFFSETOF__ mumbo jumbo for bitfields (since it isn't legal C). This fixes <rdar://problem/5986079> clang ObjC rewriter: bitfields and ivar access don't mix.
llvm-svn: 53694
|
|
|
|
|
|
|
|
| |
are 0 catch clauses.
This fixes <rdar://problem/5987211> clang ObjC rewriter: @try / @finally block produces unbalanced output.
llvm-svn: 53679
|
|
|
|
|
|
|
|
| |
return types.
This fixes <rdar://problem/6034961> clang ObjC rewriter: rewriting methods with function pointer return values does not work
llvm-svn: 53678
|
|
|
|
|
|
| |
Patch by David Chisnall with objc rewriter and stmtdumper updates from me.
llvm-svn: 52580
|
|
|
|
|
|
| |
Patch by David Chisnall!
llvm-svn: 52422
|
|
|
|
|
|
|
|
|
| |
Added TagKind enum.
Added getTagKind() method.
Added convenience methods: isEnum(), isStruct(), isUnion(), isClass().
-RecordDecl/CXXRecordDecl::Create() accept a TagKind enum instead of a DeclKind one.
llvm-svn: 52160
|
|
|
|
|
|
| |
inserts undeclared function (objc_enumerationMutation should be in preamble)
llvm-svn: 51880
|
|
|
|
|
|
|
|
|
|
|
| |
TranslationUnit object instead of an ASTContext. By default it calls
Initialize(ASTConstext& Context) (to match with the current interface used by
most ASTConsumers).
Modified the ObjC-Rewriter to use InitializeTU, and to tell the TranslationUnit
to not free its Decls. This is a workaround for: <rdar://problem/5966749>
llvm-svn: 51825
|
|
|
|
|
|
|
|
| |
lost in translation.
Some fancy footwork to accommodate embedded preprocessor directives within an interface.
llvm-svn: 51815
|
|
|
|
|
|
|
|
|
| |
mysteriously commented out
This fix involved tightening up needToScanForQualifiers(), which predated ObjCQualifiedIdType.
It also includes a minor tweak to the code that searches for the beginning of the qualified type. If the AST contained the correct beginning of the declaration (i.e. the beginning of the declaration specifiers), this code would be more robust. Since it doesn't, we apply an adhoc heuristic. Note that DeclSpec contains this info...we just don't propagate it to the AST (at present).
llvm-svn: 51812
|
|
|
|
|
|
| |
generated code (replacing any non-alphanumeric characters with "_"). This allows header files to contain ObjCStringLiterals.
llvm-svn: 51811
|
|
|
|
| |
llvm-svn: 51646
|
|
|
|
|
|
| |
no functionality change.
llvm-svn: 51497
|
|
|
|
| |
llvm-svn: 51391
|
|
|
|
|
|
|
|
| |
__CFConstantStringClassReference[];" should be extern "C".
Have clang predefine OBJC_NEW_PROPERTIES (which is what gcc does).
llvm-svn: 51163
|
|
|
|
|
|
| |
declaration in preamble does not match objc/objc-exception.h.
llvm-svn: 50915
|
|
|
|
| |
llvm-svn: 50873
|
|
|
|
|
|
| |
structure generated for class
llvm-svn: 50862
|
|
|
|
|
|
| |
'offsetof' macro
llvm-svn: 50832
|
|
|
|
| |
llvm-svn: 50790
|
|
|
|
|
|
| |
structure generated for class
llvm-svn: 50781
|
|
|
|
|
|
| |
declarations instead of putting them in the preamble?
llvm-svn: 50774
|
|
|
|
|
|
| |
twice when two interfaces use it in same file
llvm-svn: 50767
|
|
|
|
|
|
| |
with list of protocols has wrong cast).
llvm-svn: 49935
|
|
|
|
|
|
| |
refs outside a method are being rewritten
llvm-svn: 49932
|
|
|
|
|
|
| |
not being rewritten properly.
llvm-svn: 49925
|
|
|
|
|
|
|
|
| |
-Added TranslationUnitDecl class to serve as top declaration context
-ASTContext gets a TUDecl member and a getTranslationUnitDecl() function
-All ScopedDecls get the TUDecl as DeclContext when declared at global scope
llvm-svn: 49855
|
|
|
|
|
|
|
|
| |
VarDecl::isBlockVarDecl() and VarDecl::isFileVarDecl().
This is a fairly mechanical/large change. As a result, I avoided making any changes/simplifications that weren't directly related. I did break two Analysis tests. I also have a couple FIXME's in UninitializedValues.cpp. Ted, can you take a look? If the bug isn't obvious, I am happy to dig in and fix it (since I broke it).
llvm-svn: 49748
|
|
|
|
| |
llvm-svn: 49695
|
|
llvm-svn: 49693
|