| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 52035
|
| |
|
|
| |
llvm-svn: 52034
|
| |
|
|
| |
llvm-svn: 52033
|
| |
|
|
|
|
| |
Reuse RecordLayout.
llvm-svn: 51968
|
| |
|
|
|
|
| |
Move field layout code in a ASTRecordLayout member fn.
llvm-svn: 51966
|
| |
|
|
|
|
| |
variety of cleanups in some ASTConsumers.
llvm-svn: 51943
|
| |
|
|
| |
llvm-svn: 51939
|
| |
|
|
|
|
|
|
|
|
| |
and union codepaths and fixes some minor bugs.
I'm reasonably confident this is accurate, at least for X86. I'll
correct any bugs as I find them; I haven't found any for a while,
though.
llvm-svn: 51762
|
| |
|
|
| |
llvm-svn: 51575
|
| |
|
|
|
|
| |
the destruction of Decls and Stmts.
llvm-svn: 51385
|
| |
|
|
| |
llvm-svn: 51380
|
| |
|
|
| |
llvm-svn: 51322
|
| |
|
|
| |
llvm-svn: 49942
|
| |
|
|
|
|
|
|
| |
-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
|
| |
|
|
|
|
| |
in C++
llvm-svn: 49621
|
| |
|
|
| |
llvm-svn: 49328
|
| |
|
|
| |
llvm-svn: 49327
|
| |
|
|
| |
llvm-svn: 49326
|
| |
|
|
| |
llvm-svn: 49325
|
| |
|
|
| |
llvm-svn: 49324
|
| |
|
|
| |
llvm-svn: 49323
|
| |
|
|
|
|
| |
and fix a bug.
llvm-svn: 49322
|
| |
|
|
|
|
|
| |
if MyClass is a superclass of MyOtherClass, there is no need for
an exact interface match.
llvm-svn: 49320
|
| |
|
|
| |
llvm-svn: 49319
|
| |
|
|
| |
llvm-svn: 49318
|
| |
|
|
| |
llvm-svn: 49316
|
| |
|
|
| |
llvm-svn: 49315
|
| |
|
|
| |
llvm-svn: 49314
|
| |
|
|
|
|
|
|
|
|
| |
While it is similar to the other compatibility predicates in ASTContext,
it is not used by them and is different.
In addition, greatly simplify ObjCQualifiedIdTypesAreCompatible and
fix some canonical type bugs. Also, simplify my Type::getAsObjC* methods.
llvm-svn: 49313
|
| |
|
|
|
|
|
| |
an O(n) algorithm by taking advantage of the fact that the
protocol qualifier list is already guaranteed sorted.
llvm-svn: 49312
|
| |
|
|
|
|
|
|
| |
sema. This allows clients of the parser to have the unmolested
list if desired, and guarantees that noone can create an
ObjCQualifiedInterfaceType with an unsorted list.
llvm-svn: 49310
|
| |
|
|
|
|
|
| |
ObjCQualifiedIdType/ObjCQualifiedInterfaceType, adding an interator
interface instead.
llvm-svn: 49308
|
| |
|
|
|
|
| |
and start simplifying it.
llvm-svn: 49307
|
| |
|
|
|
|
| |
ObjCInterfaceType as a method.
llvm-svn: 49306
|
| |
|
|
|
|
| |
a static function named isCompatibleInterfaceAssign.
llvm-svn: 49305
|
| |
|
|
| |
llvm-svn: 49302
|
| |
|
|
|
|
|
| |
there are QualType::getAsObjc* type methods, and make isa<ObjCInterfaceType>
return true for ObjCQualifiedInterfaceType's.
llvm-svn: 49300
|
| |
|
|
| |
llvm-svn: 49298
|
| |
|
|
|
|
| |
getFloatingTypeOrder) instead of a type. Fix a fixme.
llvm-svn: 49297
|
| |
|
|
| |
llvm-svn: 49296
|
| |
|
|
|
|
|
|
| |
Context.getCanonicalType(CT) for PR2189.
While I'm at it, clean up a bit of maxIntegerType.
llvm-svn: 49292
|
| |
|
|
|
|
| |
step towards fixing PR2189.
llvm-svn: 49291
|
| |
|
|
|
|
| |
when assertions are disabled.
llvm-svn: 49288
|
| |
|
|
|
|
|
|
|
|
| |
-Renamed ContextDecl -> DeclContext
-Removed DeclContext pointer from FieldDecl
-EnumDecl inherits from DeclContext, instead of TagDecl
Patch by Argiris Kirtzidis!
llvm-svn: 49261
|
| |
|
|
|
|
|
|
|
|
|
| |
-Added ContextDecl (no TranslationUnitDecl)
-ScopedDecl class has a ContextDecl member
-FieldDecl class has a ContextDecl member, so that a Field or a ObjCIvar can be traced back to their RecordDecl/ObjCInterfaceDecl easily
-FunctionDecl, ObjCMethodDecl, TagDecl, ObjCInterfaceDecl inherit from ContextDecl. With TagDecl as ContextDecl, enum constants have a EnumDecl as their context.
-Moved Decl class to a "DeclBase.h" along with ContextDecl class
-CurContext is handled by Sema
llvm-svn: 49208
|
| |
|
|
| |
llvm-svn: 49137
|
| |
|
|
|
|
|
| |
allowing them to be treated the same in some contexts. A suggestion for a
better name is welcome :)
llvm-svn: 49100
|
| |
|
|
| |
llvm-svn: 49080
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
First, we got several CVR propagation cases wrong, which Eli pointed
out in PR2039.
Second, we didn't propagate address space qualifiers correctly, leading
to incorrect lowering of code in CodeGen/address-space.c.
Third, we didn't uniformly propagate the specifier in the array to the
pointer ("int[restrict 4]" -> "int *restrict").
This adds an ASTContext::getArrayDecayedType member that handles the
non-trivial logic for this seemingly simple operation.
llvm-svn: 49078
|