- Oct 20, 2009
-
-
Devang Patel authored
Do not eagerly cache DITypes because it allows real struct type to be shadowed by forward declared struct type. llvm-svn: 84659
-
Daniel Dunbar authored
llvm-svn: 84656
-
Devang Patel authored
llvm-svn: 84653
-
Daniel Dunbar authored
llvm-svn: 84650
-
Fariborz Jahanian authored
Related to radar: <rdar://problem/7308503> clang should disallow the trailing semicolon in method definitions llvm-svn: 84647
-
Edward O'Callaghan authored
llvm-svn: 84646
-
Fariborz Jahanian authored
Fixes <rdar://problem/7308503> clang should disallow the trailing semicolon in method definitions llvm-svn: 84645
-
Steve Naroff authored
llvm-svn: 84642
-
Steve Naroff authored
- Extend clang_createIndex() to support PCH and diagnostic 'filtering'. This seems cleaner to me without sacrificing much flexibility. - Remove clang_wantOnlyLocalDeclarations(). - Remove 'displayDiagnostics' arguments to clang_createTranslationUnitFromSourceFile() and clang_createTranslationUnit(). - Have clang_createTranslationUnitFromSourceFile() strip the '-o <outfile>' command line arguments if they exist. Document this semantic in the header. Also verify we have a valid ASTUnit before telling it to 'unlinkTemporaryFile()'. llvm-svn: 84634
-
Eli Friedman authored
to all callers. Switch a few other users of CK_Unknown to proper cast kinds. Note that there are still some situations where we end up with CK_Unknown; they're pretty easy to find with grep. There are still a few missing conversion kinds, specifically pointer/int/float->bool and the various combinations of real/complex float/int->real/complex float/int. llvm-svn: 84623
-
Ted Kremenek authored
counts of the bufffers referened by the RopePieces in RopePieceBTreeLeaf. This (I believe) corrently fixes the leak I meant to fix in r84601 (which ended up causing an overrelease). llvm-svn: 84615
-
Douglas Gregor authored
qualified member access expression (e.g., t->U::member) when that first qualifier refers to a template parameters. llvm-svn: 84612
-
Ted Kremenek authored
llvm-svn: 84610
-
Ted Kremenek authored
BumpVectorContext: Use 'unsigned' integer type with PointerIntUnion instead of bool to keep it clear that we are reasoning about an unsigned integer with a single bit. llvm-svn: 84607
-
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
-
Anders Carlsson authored
llvm-svn: 84589
-
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
-
Ted Kremenek authored
llvm-svn: 84555
-
rdar://problem/7312058Ted Kremenek authored
clang_createTranslationUnit() and clang_createTranslationUnitFromSourceFile(). The user can now specify if the diagnostics from Clang are printed to stderr or are silenced completely. We can obviously evolve this API to be more general in the future. Note: Added a FIXME since I wasn't certain what was the best way to redirect to something analogous to '/dev/null' on Windows. llvm-svn: 84548
-
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
-
Ted Kremenek authored
Re-order includes so that the logic involving '#ifdef LLVM_ON_WIN32' appears after the main #includes. The ultimate solution is to just use LLVM-portable methods in llvm/System. llvm-svn: 84534
-
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
-
Steve Naroff authored
llvm-svn: 84498
-
Benjamin Kramer authored
Daniel's comment. llvm-svn: 84484
-
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
-
Chris Lattner authored
llvm-svn: 84466
-
Daniel Dunbar authored
llvm-svn: 84458
-
Daniel Dunbar authored
- I'm not sure this is ideal, but otherwise clients must be overly careful when handling decl's which can have empty names. llvm-svn: 84457
-