- Sep 18, 2009
-
-
Douglas Gregor authored
llvm-svn: 82221
-
Daniel Dunbar authored
expression. llvm-svn: 82217
-
Daniel Dunbar authored
llvm-svn: 82216
-
Daniel Dunbar authored
llvm-svn: 82213
-
Daniel Dunbar authored
llvm-svn: 82212
-
Daniel Dunbar authored
llvm-svn: 82211
-
Daniel Dunbar authored
llvm-svn: 82210
-
Daniel Dunbar authored
llvm-svn: 82209
-
Daniel Dunbar authored
llvm-svn: 82208
-
Ted Kremenek authored
when running the analyzer on real projects. We'll keep the change to AnalysisManager.cpp in r82198 so that -fobjc-gc analyzes code correctly in both GC and non-GC modes, although this may emit two diagnostics for each bug in some cases (a better solution will come later). llvm-svn: 82201
-
Ted Kremenek authored
pruning of diagnostics that may be emitted multiple times. This is accomplished by adding FoldingSet profiling support to PathDiagnostic, and then having BugReporter record what diagnostics have been issued. This was motived to a serious bug introduced by moving the 'divide-by-zero' checking outside of GRExprEngine into a separate 'Checker' class. When analyzing code using the '-fobjc-gc' option, a given function would be analyzed twice, but the second time various "internal checks" would be disabled to avoid emitting multiple diagnostics (e.g., "null dereference") for the same issue. The problem is that such checks also effect path pruning and don't just emit diagnostics. This resulted in an assertion failure involving a real divide-by-zero in some analyzed code where we would get an assertion failure in APInt because the 'DivZero' check was disabled and didn't prune the logic that resulted in the divide-by-zero in the analyzer. The implemented solution is somewhat of a hack, and may not perform extremely well. This will need to be cleaned up over time. As a regression test, 'misc-ps.m' has been modified so that its tests are run using -fobjc-gc to test this diagnostic pruning behavior. llvm-svn: 82198
-
Chris Lattner authored
with zeros. This avoids a GCC warning (PR5000) llvm-svn: 82194
-
Anders Carlsson authored
llvm-svn: 82193
-
Anders Carlsson authored
llvm-svn: 82190
-
Anders Carlsson authored
llvm-svn: 82189
-
Fariborz Jahanian authored
array syntax is used to derefernce and assign to ivar pointee. llvm-svn: 82183
-
- Sep 17, 2009
-
-
Mike Stump authored
llvm-svn: 82170
-
Douglas Gregor authored
essence, code completion is triggered by a magic "code completion" token produced by the lexer [*], which the parser recognizes at certain points in the grammar. The parser then calls into the Action object with the appropriate CodeCompletionXXX action. Sema implements the CodeCompletionXXX callbacks by performing minimal translation, then forwarding them to a CodeCompletionConsumer subclass, which uses the results of semantic analysis to provide code-completion results. At present, only a single, "printing" code completion consumer is available, for regression testing and debugging. However, the design is meant to permit other code-completion consumers. This initial commit contains two code-completion actions: one for member access, e.g., "x." or "p->", and one for nested-name-specifiers, e.g., "std::". More code-completion actions will follow, along with improved gathering of code-completion results for the various contexts. [*] In the current -code-completion-dump testing/debugging mode, the file is truncated at the completion point and EOF is translated into "code completion". llvm-svn: 82166
-
Mike Stump authored
llvm-svn: 82164
-
Daniel Dunbar authored
- Move CMake to using the new test runner. - Switch Makefiles to use the lit.site.cfg.in template. - Remove explicit --path arguments, instead this gets written into the site configuration. This means running lit from the command line should use the exact same configuration as is used in 'make test', assuming it can find the site configuration file. You still need to run 'make test' (or the cmake build target equivalent) at least once. llvm-svn: 82160
-
Douglas Gregor authored
complain about specializations of member functions that are not definitions. Fixes PR4995. llvm-svn: 82159
-
Steve Naroff authored
llvm-svn: 82154
-
Daniel Dunbar authored
- Based on patch by Shantonu. llvm-svn: 82147
-
Anders Carlsson authored
llvm-svn: 82146
-
Daniel Dunbar authored
llvm-svn: 82133
-
Daniel Dunbar authored
- Patch by Shantonu Sen! <rdar://problem/6922650> clang doesn't know about ARM registers for inline asm clobber lists llvm-svn: 82132
-
Daniel Dunbar authored
llvm-svn: 82131
-
Daniel Dunbar authored
- Doug, please check. - PR4940. llvm-svn: 82129
-
Daniel Dunbar authored
llvm-svn: 82128
-
Daniel Dunbar authored
llvm-svn: 82126
-
Anders Carlsson authored
llvm-svn: 82125
-
Anders Carlsson authored
llvm-svn: 82124
-
Anders Carlsson authored
llvm-svn: 82123
-
Anders Carlsson authored
llvm-svn: 82122
-
Anders Carlsson authored
llvm-svn: 82121
-
Daniel Dunbar authored
already preprocessed. -- ddunbar@giles:tmp$ touch t.i ddunbar@giles:tmp$ gcc -E t.i ddunbar@giles:tmp$ clang -E t.i clang: warning: t.i: previously preprocessed input unused when '-E' is present ddunbar@giles:tmp$ -- <rdar://problem/6813375> [driver] driver prints confusing message when running -E on preprocessed file llvm-svn: 82120
-
Anders Carlsson authored
llvm-svn: 82119
-
Daniel Dunbar authored
This fixes some bad -O0 codegen and the unnecessary clearing of al on entry to objc_msgSend for most message sends. <rdar://problem/7102824> [irgen] unnecessary xorb on calls to objc_msgSend on x86_64 llvm-svn: 82118
-
Daniel Dunbar authored
llvm-svn: 82117
-
Anders Carlsson authored
llvm-svn: 82116
-