| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
+ test case
<rdar://problem/6080040>
http://llvm.org/bugs/show_bug.cgi?id=2280
llvm-svn: 53756
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
declarations (bodies) or Objective-C @implementation blocks.
llvm-svn: 53584
|
|
|
|
|
|
|
|
|
|
|
|
| |
clang.cpp now #include these definitions to create the command line options, and
AnalysisConsumer #includes this file to generate the switch statement to create
actions.
Renamed -check-objc-methodsigs to -warn-objc-methodsigs.
The "missing -dealloc" check is now optional: -warn-objc-missing-dealloc
llvm-svn: 53575
|
|
|
|
|
|
|
|
|
| |
ObjCImplementationDecls and sees if a ancestor class defines a method with the
same selector but with a different type signature. Right now it just compares
return types, and mainly looks at differences in primitive values. The checking
will be expanded in the future.
llvm-svn: 53482
|
|
|
|
|
|
|
|
| |
bug. Patch by Jean-Daniel Dupas!
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-July/002166.html
llvm-svn: 53184
|
|
|
|
|
|
| |
enough..)
llvm-svn: 53143
|
|
|
|
|
|
| |
the code is compiled with GC.
llvm-svn: 53098
|
|
|
|
|
|
|
|
| |
instead of references, because they can both fail
on functions we cannot construct full CFGs for yet.
llvm-svn: 53081
|
|
|
|
|
|
| |
-dealloc, and whether or not that implementation calls [super dealloc].
llvm-svn: 53075
|
|
|
|
|
|
| |
BugReporter interface.
llvm-svn: 53054
|
|
|
|
|
|
|
|
| |
ASTContext&, PathDiagnosticClient*, can be provided by an external source.
Split BugReporter into BugReporter and GRBugReporter so checkers not based on GRExprEngine can still use the BugReporter mechanism.
llvm-svn: 53048
|
|
|
|
|
|
|
|
| |
creator.
This allows an optimization in AnalysisConsumer where the same LiveVariables information is used between multiple analyses.
llvm-svn: 53046
|
|
|
|
|
|
|
|
| |
LiveVariables object.
Modified the DeadStores logic in AnalysisConsumer.cpp to use the LiveVariables object created by the AnalysisManager.
llvm-svn: 53043
|
|
|
|
|
|
| |
Renamed -dump-cfg to -cfg-dump, and -view-cfg to -cfg-view. This naming better matches the same options for asts (e.g. -ast-dump).
llvm-svn: 53041
|
|
|
|
| |
llvm-svn: 53039
|
|
|
|
|
|
| |
Remove CheckerConsumer.
llvm-svn: 53029
|
|
|
|
| |
llvm-svn: 53028
|
|
|
|
|
|
| |
new AnalysisConsumer interface.
llvm-svn: 53002
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
analyses. This potentially is the primordial origins of a Clang-equivalent
"PassManager".
The new AnalysisConsumer interface allows multiple analyses to be run from a
single invocation of Clang.
Migrated the logic of "-warn-dead-stores" and "-warn-uninit-values" to use the
new AnalysisConsumer interface. The new interface results in a significant code
reduction to incorporate an analysis into the Driver.
Updated a test case to (correctly) acknowledge that it contains a dead store
(this check wasn't being performed because it was previously masked by
-warn-uninit-values).
llvm-svn: 52996
|
|
|
|
|
|
| |
Patch by Nick Lewycky!
llvm-svn: 52777
|
|
|
|
|
|
| |
since LLVM r52748.
llvm-svn: 52776
|
|
|
|
|
|
| |
changes in llvm mainline.
llvm-svn: 52753
|
|
|
|
|
|
|
|
|
|
| |
'There's not much to say about this patch, it just adds the Arch Linux
gcc 4.3.1 header paths for i686 and amd64. The patch was generated
using "svn diff" with clang at revision 52660. The paths aren't
distribution-specific, so they should work for all Linux distributions
using the default(?) names like "i686-pc-linux-gnu".'
llvm-svn: 52665
|
|
|
|
| |
llvm-svn: 52598
|
|
|
|
|
|
| |
Patch by David Chisnall with objc rewriter and stmtdumper updates from me.
llvm-svn: 52580
|
|
|
|
| |
llvm-svn: 52560
|
|
|
|
|
|
| |
Patch by David Chisnall!
llvm-svn: 52422
|
|
|
|
| |
llvm-svn: 52249
|
|
|
|
|
|
|
|
|
| |
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: 52152
|
|
|
|
|
|
| |
to cache the contents of source files already loaded from disk.
llvm-svn: 52066
|
|
|
|
| |
llvm-svn: 52032
|
|
|
|
|
|
| |
variety of cleanups in some ASTConsumers.
llvm-svn: 51943
|
|
|
|
|
|
|
|
| |
token didn't
lead with a space.
llvm-svn: 51896
|
|
|
|
|
|
| |
inserts undeclared function (objc_enumerationMutation should be in preamble)
llvm-svn: 51880
|
|
|
|
| |
llvm-svn: 51827
|
|
|
|
|
|
|
|
|
|
|
| |
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: 51803
|
|
|
|
|
|
|
|
| |
option.
Patch by Holger Schurig!
llvm-svn: 51774
|
|
|
|
|
|
|
|
|
| |
essentially that we were destroying the declarations twice.
(Note that we don't use -serialize directly in the testsuite, only
SerializeTest.)
llvm-svn: 51768
|
|
|
|
| |
llvm-svn: 51683
|