- Oct 20, 2009
-
-
Chris Lattner authored
implements a framework that allows us to use information about previously substituted values to simplify subsequent ones. Maybe this would be useful for C++'y stuff, who knows. We now get: t.c:4:21: error: invalid operands to binary expression ('size_t' (aka 'unsigned long *') and 'size_t') return (size_t) 0 + (size_t) 0; ~~~~~~~~~~ ^ ~~~~~~~~~~ on the testcase. Note that size_t is only aka'd once. llvm-svn: 84604
-
Chris Lattner authored
pass them down into the ArgToStringFn implementation. This allows redundancy across operands to a diagnostic to be eliminated. This isn't used yet, so no functionality change. llvm-svn: 84602
-
Ted Kremenek authored
This was causing a ton of memory to be leaked when using HTML diagnostics with the static analyzer (on large files with many errors). llvm-svn: 84601
-
Chris Lattner authored
llvm-svn: 84599
-
Mike Stump authored
WIP. I have yet to find the magic incantation to get the structure type to be defined. If someone has a pointer, love to hear it. llvm-svn: 84590
-
Ted Kremenek authored
region when doing lazy value retrieval of an ivar. This fixes: <rdar://problem/7312221> llvm-svn: 84584
-
Ted Kremenek authored
retain/release checker: allow 'new', 'copy', 'alloc', 'init' prefix to start before '_' when determining Cocoa fundamental rule. Fixes: <rdar://problem/7265711> llvm-svn: 84569
-
Fariborz Jahanian authored
<<=, >>= and the rest. llvm-svn: 84568
-
Douglas Gregor authored
t->~T<A0, A1>() Fixes PR5213. llvm-svn: 84545
-
- Oct 19, 2009
-
-
Ted Kremenek authored
alternate DiagnosticClients. To match this API, ASTUnit::LoadFromPCHFile() now takes a corresponding DiagnosticClient* argument as well. The DiagnosticClient object is destroyed when the ASTUnit object is destroyed. The CIndex library now uses this API to create a 'IgnoreDiagnosticsClient' that simply silences diagnostics when using the clang_createTranslationUnitFromSourceFile() function. This fixes <rdar://problem/7312058>. This API can change in the future as we add more flexibility for clients. llvm-svn: 84539
-
Fariborz Jahanian authored
to '+=', '-=', '*=' and '/=' builtin operators and fixes a logic bug exposed by doing this. llvm-svn: 84538
-
Fariborz Jahanian authored
is a standard convesion and not a user-defined conversion. llvm-svn: 84525
-
Anders Carlsson authored
llvm-svn: 84518
-
Anders Carlsson authored
llvm-svn: 84514
-
Steve Naroff authored
Removing this shared data should enable clang_createTranslationUnit/clang_createTranslationUnitFromSourceFile to be run from multiple threads (related to <rdar://problem/7303432>). llvm-svn: 84499
-
Daniel Dunbar authored
column computation isn't correct and could exceed the line length, which resulted in a buffer overflow later. - Chris, is there a better way for this code to compute the final column used by the caret? llvm-svn: 84475
-
Edward O'Callaghan authored
llvm-svn: 84469
-
Daniel Dunbar authored
llvm-svn: 84458
-
Daniel Dunbar authored
llvm-svn: 84456
-
Daniel Dunbar authored
llvm-svn: 84453
-
Anders Carlsson authored
When binding a reference to a temporary, it's important that other temporaries created as on the RHS are destroyed before emitting the dtor for the temporary. llvm-svn: 84451
-
- Oct 18, 2009
-
-
Anders Carlsson authored
llvm-svn: 84448
-
Daniel Dunbar authored
are updated. llvm-svn: 84447
-
Daniel Dunbar authored
trashing. llvm-svn: 84439
-
Anders Carlsson authored
llvm-svn: 84438
-
Daniel Dunbar authored
- strcmp -> == - OS.write(II->getName() ...) -> OS << II->getNameStr() - Avoid std::string concatenation - Use getNameStr().str() when an std::string is really needed. llvm-svn: 84437
-
Daniel Dunbar authored
llvm-svn: 84436
-
Nate Begeman authored
form that LLVM code generators can turn into efficient code. For example, int4 a, b, c; a = (int4)(b.yzw, a.x) llvm-svn: 84434
-
Anders Carlsson authored
llvm-svn: 84428
-
Benjamin Kramer authored
llvm-svn: 84427
-
Anders Carlsson authored
llvm-svn: 84423
-
Nuno Lopes authored
llvm-svn: 84418
-
Edward O'Callaghan authored
The AuroraUX toolchain has conflicting wchar_t between the system stdlib.h header and the clang stddef.h header where clang was defining as int where we use long. llvm-svn: 84416
-
Benjamin Kramer authored
llvm-svn: 84415
-
John McCall authored
TemplateTypeParmType with the substituted type directly; instead, replace it with a SubstTemplateTypeParmType which will note that the type was originally written as a template type parameter. This makes it reasonable to preserve source information even through template substitution. Also define the new SubstTemplateTypeParmType class, obviously. For consistency with current behavior, we stringize these types as if they were the underlying type. I'm not sure this is the right thing to do. At any rate, I paled at adding yet another clause to the don't-desugar 'if' statement, so I extracted a function to do it. The new function also does The Right Thing more often, I think: e.g. if we have a chain of typedefs leading to a vector type, we will now desugar all but the last one. llvm-svn: 84412
-
Zhongxing Xu authored
llvm-svn: 84398
-
Daniel Dunbar authored
llvm-svn: 84393
-
Daniel Dunbar authored
- Really this should be simplified by the FIXME above, but I'm too deep in DFS. llvm-svn: 84392
-
Daniel Dunbar authored
llvm-svn: 84391
-
Daniel Dunbar authored
- I have this crazy dream that one day someone will invent a miraculous tool so that developers, instead of hand optimizing their source code to obscure its intent and decrease its maleability, will instead write what they mean, and this strange and wonderful tool -- which I imagine would be called something fancy sounding like "an optimizing compiler" -- will make their code fast *for* them. With all the saved time, developers could maybe even focus on making the magic "optimizing compiler" better!! - No intended functionality change, all though I expect the universe to mock me for snarkiness. llvm-svn: 84390
-