summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename pch namespace to serialization.Sebastian Redl2010-08-1811-713/+722
| | | | llvm-svn: 111478
* Rename PCHBitCodes.h -> ASTBitCodes.hSebastian Redl2010-08-185-5/+5
| | | | llvm-svn: 111476
* Rename stuff in PCHBitCodes.hSebastian Redl2010-08-185-52/+52
| | | | llvm-svn: 111475
* Rename the ASTReader header files.Sebastian Redl2010-08-1811-15/+15
| | | | llvm-svn: 111474
* Rename the ASTReader implementation files.Sebastian Redl2010-08-185-18/+18
| | | | llvm-svn: 111473
* More PCH -> AST renaming.Sebastian Redl2010-08-1829-301/+275
| | | | llvm-svn: 111472
* Rename various classes from PCH to AST.Sebastian Redl2010-08-189-38/+38
| | | | llvm-svn: 111471
* Rename PCHStmtReader -> ASTStmtReader.Sebastian Redl2010-08-184-139/+139
| | | | llvm-svn: 111470
* Rename PCHDeclReader -> ASTDeclReader.Sebastian Redl2010-08-189-93/+93
| | | | llvm-svn: 111469
* Rename PCHReader to ASTReader.Sebastian Redl2010-08-1816-179/+179
| | | | llvm-svn: 111467
* Rename PCHWriter.h to ASTWriter.hSebastian Redl2010-08-189-10/+10
| | | | llvm-svn: 111466
* Rename the ASTWriter implementation filesSebastian Redl2010-08-185-18/+18
| | | | llvm-svn: 111465
* Do the PCH->AST rename for ASTWriter's implementation parts.Sebastian Redl2010-08-1813-293/+292
| | | | llvm-svn: 111464
* Rename PCHWriter to ASTWriterSebastian Redl2010-08-187-109/+108
| | | | llvm-svn: 111463
* When creating an ASTUnit by parsing source code, set DisableFree toDouglas Gregor2010-08-181-1/+1
| | | | | | | | false (not true), so that the CompilerInstance will actually free data structures when it's done. This fixes a major leak with libclang's in-process code completion. llvm-svn: 111457
* Generate Attr subclasses with TableGen.Alexis Hunt2010-08-1835-1456/+558
| | | | | | | | | | | | | | | | | | | | | | | | Now all classes derived from Attr are generated from TableGen. Additionally, Attr* is no longer its own linked list; SmallVectors or Attr* are used. The accompanying LLVM commit contains the updates to TableGen necessary for this. Some other notes about newly-generated attribute classes: - The constructor arguments are a SourceLocation and a Context&, followed by the attributes arguments in the order that they were defined in Attr.td - Every argument in Attr.td has an appropriate accessor named getFoo, and there are sometimes a few extra ones (such as to get the length of a variadic argument). Additionally, specific_attr_iterator has been introduced, which will iterate over an AttrVec, but only over attributes of a certain type. It can be accessed through either Decl::specific_attr_begin/end or the global functions of the same name. llvm-svn: 111455
* libclang: Put clang_reparseTranslationUnit inside a crash recovery context.Daniel Dunbar2010-08-184-9/+66
| | | | llvm-svn: 111451
* CrashRecovery: Add #pragma clang __debug handle_crash, useful when debuggingDaniel Dunbar2010-08-181-0/+5
| | | | | | | CrashRecovery since it avoids sending a signal which may be intercepted by the debugger. llvm-svn: 111449
* c-index-test: Change -test-load-source-repase to only use remapped files for theDaniel Dunbar2010-08-181-3/+4
| | | | | | reparse, to allow testing distinct inputs. llvm-svn: 111448
* Fix crasher with IgnoringDiagClientDouglas Gregor2010-08-181-2/+1
| | | | llvm-svn: 111447
* Simplify the ownership model for DiagnosticClients, which was reallyDouglas Gregor2010-08-1810-64/+57
| | | | | | | convoluted and a bit leaky. Now, the Diagnostic object owns its DiagnosticClient. llvm-svn: 111437
* There is no pointer conversion between to similar types (i.e., sameDouglas Gregor2010-08-182-0/+27
| | | | | | | type ignoring cv-qualifiers). These are qualification conversions. Fixes PR7934. llvm-svn: 111428
* Call llvm::remove_fatal_error_handler before deallocating objectsDan Gohman2010-08-182-2/+7
| | | | | | which are used by the error handling functions. llvm-svn: 111427
* Added psuedo-constant analysis and integrated it into the false positive ↵Tom Care2010-08-189-24/+247
| | | | | | | | | | | | | reduction stage in IdempotentOperationChecker. - Renamed IdempotentOperationChecker::isConstant to isConstantOrPseudoConstant to better reflect the function - Changed IdempotentOperationChecker::PreVisitBinaryOperator to only run 'CanVary' once on undefined assumptions - Created new PsuedoConstantAnalysis class and added it to AnalysisContext - Changed IdempotentOperationChecker to exploit the new analysis - Updated tests with psuedo-constants - Added check to IdempotentOperationChecker to see if a Decl is const qualified llvm-svn: 111426
* Contextual arity is a feature of mangling expressions; kill offJohn McCall2010-08-182-45/+47
| | | | | | | | mangleCallExpression. Also, operator names with unknown arity should be mangled as binary operators; this is actually covered by an oddly- positioned sentence in the ABI document. Fixes PR7891. llvm-svn: 111395
* libclang: Put clang_parseTranslationUnit inside a crash recovery context.Daniel Dunbar2010-08-182-12/+54
| | | | llvm-svn: 111387
* libclang: Implicitly enable crash recovery when using the libclang APIs. We ↵Daniel Dunbar2010-08-181-0/+5
| | | | | | may need to add an explicit API call, but hopefully we can make the crash recovery seamless enough that it doesn't make sense to turn it off. llvm-svn: 111386
* zap dead code.Chris Lattner2010-08-184-63/+14
| | | | llvm-svn: 111365
* no need to pass bumppointer allocator into macroinfo::destroyChris Lattner2010-08-183-8/+7
| | | | llvm-svn: 111364
* Make sure to add MallocAttr to explicitly-declared operator new/new[]Douglas Gregor2010-08-182-1/+8
| | | | | | when -fassume-sane-operator-new. Patch by Tom Jablin! llvm-svn: 111363
* Simplify FixItHint by eliminated the unnecessary InsertionLocDouglas Gregor2010-08-185-52/+16
| | | | | | location. Patch by Eelis van der Weegen! llvm-svn: 111362
* Flesh out the test cases a little.John McCall2010-08-181-0/+44
| | | | llvm-svn: 111359
* Rip out the existing retroactive abstract-class usage checker,John McCall2010-08-183-77/+204
| | | | | | | | which in a fit of zeal wanted to walk the entire translation unit, and replace it with a new checker that walks the types of declarations nested within the class. Also, look into templates when doing this. llvm-svn: 111357
* Remove -Wunused-member-function from the 'Extra' diagnostic group too; llvm ↵Argyrios Kyrtzidis2010-08-181-1/+0
| | | | | | | | uses it. This effectively disables -Wunused-member-function for building llvm/clang. llvm-svn: 111356
* Check whether errors should be included in the diagnostic counts. Previously,Chandler Carruth2010-08-181-5/+7
| | | | | | only warnings did this check. llvm-svn: 111355
* Remove dead malloc symbols from the symbol-state map.Jordy Rose2010-08-181-0/+7
| | | | llvm-svn: 111353
* Use RegionStateTy everywhere we mean ImmutableMap<SymbolRef, RefState>Jordy Rose2010-08-181-4/+3
| | | | llvm-svn: 111351
* zap dead code.Chris Lattner2010-08-181-23/+0
| | | | llvm-svn: 111347
* zap a big dead method.Chris Lattner2010-08-181-51/+0
| | | | llvm-svn: 111346
* Emit an error if an array is too large. We're slightly more strictDouglas Gregor2010-08-188-14/+121
| | | | | | | | | | | | | than GCC 4.2 here when building 32-bit (where GCC will allow allocation of an array for which we can't get a valid past-the-end pointer), and emulate its odd behavior in 64-bit where it only allows 63 bits worth of storage in the array. The former is a correctness issue; the latter is harmless in practice (you wouldn't be able to use such an array anyway) and helps us pass a GCC DejaGNU test. Fixes <rdar://problem/8212293>. llvm-svn: 111338
* fix typoChris Lattner2010-08-181-1/+1
| | | | llvm-svn: 111334
* Fix PR7889 by generalizing some over specialized code. There is noChris Lattner2010-08-182-4/+12
| | | | | | reason that this should be limited to simple lvalues. llvm-svn: 111331
* fix PR7892, a crash on valid in c++ codegen of __PRETTY_FUNCTION__Chris Lattner2010-08-172-1/+9
| | | | llvm-svn: 111330
* TypedRegion::isBoundable() should return true by default. Since there is no ↵Ted Kremenek2010-08-171-3/+1
| | | | | | TypedViewRegion anyore, it is not possible that the subclass (which doesn't override isBoundable) could return a null value type. llvm-svn: 111329
* Get rid of extra nesting when checking for invalid type,Fariborz Jahanian2010-08-171-5/+5
| | | | | | per Doug's comment. llvm-svn: 111328
* Rewrite code fragment to avoide ICE in MSVC. Fixes PR 7875. Patch by ↵Ted Kremenek2010-08-171-2/+4
| | | | | | Dimitry Andric! llvm-svn: 111327
* Diagnose if type of iboutletcollection attribute is a builtin type.Fariborz Jahanian2010-08-173-2/+7
| | | | llvm-svn: 111324
* Get rid of pretty non-ASCII quotes.Sebastian Redl2010-08-171-2/+2
| | | | llvm-svn: 111316
* StringRef'ication of lots stuff, patch by Peter Davies!Daniel Dunbar2010-08-1710-73/+63
| | | | llvm-svn: 111314
* Lex: Add #pragma clang __debug {llvm_fatal_error, llvm_unreachable}, for testingDaniel Dunbar2010-08-172-7/+16
| | | | | | those crash paths. llvm-svn: 111311
OpenPOWER on IntegriCloud