summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Some documentation fixes so that we are explicit about which iteration order ↵Jonathan D. Turner2011-07-282-10/+8
| | | | | | is source-order. Also, removing unused NextInSource field of Module. llvm-svn: 136423
* Really remove FlatStoreManager and BasicStoreManager, this time from the ↵Ted Kremenek2011-07-2861-273/+20
| | | | | | driver. Also remove associated tests. Sorry for the messy commits; this is the result of a botched Git merge. llvm-svn: 136422
* Remove flat store tests.Ted Kremenek2011-07-282-21/+0
| | | | llvm-svn: 136421
* Remove FlatStoreManager and BasicStoreManager. The latter has long been ↵Ted Kremenek2011-07-282-822/+0
| | | | | | obsolete and the former has no had development in a long time. llvm-svn: 136420
* [analyzer] Overhaul how the static analyzer expects CFGs by forcing CFGs to ↵Ted Kremenek2011-07-2820-1867/+2065
| | | | | | | | | | | | be linearized only when used by the static analyzer. This required a rewrite of LiveVariables, and exposed a ton of subtle bugs. The motivation of this large change is to drastically simplify the logic in ExprEngine going forward. Some fallout is that the output of some BugReporterVisitors is not as accurate as before; those will need to be fixed over time. There is also some possible performance regression as RemoveDeadBindings will be called frequently; this can also be improved over time. llvm-svn: 136419
* [analyzer] fix bug in malloc checker where the tracked symbol would not ↵Ted Kremenek2011-07-281-11/+18
| | | | | | properly be removed from the state. llvm-svn: 136418
* [analyzer] add accessor to StoreRef.Ted Kremenek2011-07-281-0/+1
| | | | llvm-svn: 136417
* [analyzer] Add StoreManager::includedInBindings() to to query whether a ↵Ted Kremenek2011-07-282-2/+22
| | | | | | region is used in any bindings. llvm-svn: 136416
* [analyzer] Add safety checking in RegionStoreManager for string literal ↵Ted Kremenek2011-07-281-0/+4
| | | | | | underruns. llvm-svn: 136415
* [analyzer] Teach Environment to not look through MaterializeTemporaryExprs.Ted Kremenek2011-07-281-3/+0
| | | | llvm-svn: 136414
* [analyzer] Fix bug in ObjCMessage where casts were being incorrectly ignored.Ted Kremenek2011-07-281-1/+1
| | | | llvm-svn: 136413
* [analyzer] fix handling of MaterializeTemporaryExpr by binding the result ↵Ted Kremenek2011-07-284-8/+11
| | | | | | | | value to the proper expression. llvm-svn: 136412
* Introduce the local-global mapping for preprocessed entities, and useDouglas Gregor2011-07-283-13/+32
| | | | | | | it appropriately. Also, patch up a place where we were failing to map local macro definition IDs into global macro definition IDs. llvm-svn: 136411
* Use local-to-global mapping appropriately for macro definitions in the ASTReaderDouglas Gregor2011-07-282-2/+21
| | | | llvm-svn: 136410
* Use the local -> global mapping functions for selectors moreDouglas Gregor2011-07-283-13/+22
| | | | | | consistently in the ASTReader. llvm-svn: 136395
* Teach the ASTReader to perform local and global mapping of identifierDouglas Gregor2011-07-285-38/+62
| | | | | | IDs properly, although the mapping itself is still trivial. llvm-svn: 136391
* Add a fixit for removal of unused label.Anna Zaks2011-07-282-3/+30
| | | | llvm-svn: 136389
* Fix a test case that was intermittently failing. The issue was that ↵Richard Trieu2011-07-281-7/+13
| | | | | | | | instantiations are not stored in an order preserving structure, so the print order may be impacted. Modified test case to do two FileCheck passes to ensure that both instantiations are in the same place. Test originially commited at r136306 and temporarily silenced at r136348. llvm-svn: 136385
* Added basic parsing for all remaining attributes, thread safetyCaitlin Sadowski2011-07-287-19/+1015
| | | | | | | analysis. This includes checking that the attributes are applied in the correct contexts and with the correct number of arguments. llvm-svn: 136383
* Another test case for the &/* mismatch fixit.Anna Zaks2011-07-281-1/+15
| | | | llvm-svn: 136380
* Add */& mismatch fixit generation to the Sema::DiagnoseAssignmentResult().Anna Zaks2011-07-286-9/+86
| | | | llvm-svn: 136379
* Make the deserialization of Sema::PendingInstantiations lazy. At thisDouglas Gregor2011-07-284-9/+35
| | | | | | | | point, ASTReader::InitializeSema() has very little interesting work, *except* issues stemming from preloaded declarations. That's something we'll still need to cope with. llvm-svn: 136378
* Refactor the */& mismatch fixit generation out of SemaOverload and provide a ↵Anna Zaks2011-07-285-134/+283
| | | | | | simple conversion checking function. llvm-svn: 136376
* Promote the deserialized PendingInstantiations vector from being aDouglas Gregor2011-07-282-20/+26
| | | | | | | Module member to being an ASTReader member; we want it to be centralized for lazy deserialization. llvm-svn: 136373
* Lazily deserialize Sema::VTableUses. Plus, fix the utterly andDouglas Gregor2011-07-286-18/+72
| | | | | | | | completely broken deserialization mapping code we had for VTableUses, which would have broken horribly as soon as our local-to-global ID mapping became interesting. llvm-svn: 136371
* Thread safety: Fix typo in documentationCaitlin Sadowski2011-07-281-1/+1
| | | | llvm-svn: 136370
* Make Sema::WeakUndeclaredIdentifiers lazily deserialized.Douglas Gregor2011-07-288-51/+140
| | | | llvm-svn: 136368
* Add missing documentation onto new member variable.Jonathan D. Turner2011-07-281-0/+2
| | | | llvm-svn: 136365
* Added parsing for guarded_var, pt_guarded_var, lockable,Caitlin Sadowski2011-07-287-1/+403
| | | | | | scoped_lockable, and no_thread_safety_analysis attributes, all for thread safety analysis llvm-svn: 136364
* Switch the ModuleManager over to using a FileManager and FileEntry* as part ↵Jonathan D. Turner2011-07-283-9/+26
| | | | | | of its lookup instead of the filename. This is a more correct unique identifier, as symlinks can be handled by the FileManager. llvm-svn: 136363
* Make Sema::ReferencedSelectors lazily deserialized.Douglas Gregor2011-07-284-14/+40
| | | | llvm-svn: 136357
* Move a Module's ReferencedSelectorsData into the ASTReader itself, soDouglas Gregor2011-07-282-26/+35
| | | | | | | that it accumulates referenced selectors from each of the modules/PCH files as they are loaded. No actual functionality change, yet. llvm-svn: 136356
* Make Sema::LocallyScopedExternalDecls lazily deserialized. In theory,Douglas Gregor2011-07-286-16/+55
| | | | | | | | | we could turn this into an on-disk hash table so we don't load the whole thing the first time we need it. However, it tends to be very, very small (i.e., empty) for most precompiled headers, so it isn't all that interesting. llvm-svn: 136352
* test/Misc/ast-dump-templates.cpp: Disable this temporarily due to unstable ↵NAKAMURA Takumi2011-07-281-1/+2
| | | | | | output. llvm-svn: 136348
* test/CodeGen/2004-03-16-AsmRegisterCrash.c: XTARGET should accept the part ↵NAKAMURA Takumi2011-07-281-1/+1
| | | | | | of triplet. ("x86" is not the part of triplet) llvm-svn: 136346
* Make a note about a missing optimization.John McCall2011-07-281-0/+18
| | | | llvm-svn: 136340
* Fix a couple of problems with initialization and assignment toJohn McCall2011-07-284-8/+92
| | | | | | | | | | | __block variables where the act of initialization/assignment itself causes the __block variable to be copied to the heap because the variable is of block type and is being assigned a block literal which captures the variable. rdar://problem/9814099 llvm-svn: 136337
* test/CodeGen/struct-matching-constraint.c: Fixup not to emit garbage to ↵NAKAMURA Takumi2011-07-281-1/+1
| | | | | | source tree. llvm-svn: 136333
* AST serialization support for the Framework in IndexHeaderMapHeaderDouglas Gregor2011-07-284-19/+76
| | | | | | fields of HeaderFileInfo. llvm-svn: 136332
* Introduce the "-index-header-map" option, to give special semanticsDouglas Gregor2011-07-2810-24/+124
| | | | | | | for quoted header lookup when dealing with not-yet-installed frameworks. Fixes <rdar://problem/9824020>. llvm-svn: 136331
* test/CodeGen/struct-init.c, struct-matching-constraint.c: Tweak commandline, ↵NAKAMURA Takumi2011-07-282-2/+2
| | | | | | or they would not be recognized as armv7 on some hosts. llvm-svn: 136330
* Don't set Sema's StdNamespace or StdBadAlloc if they've already been setDouglas Gregor2011-07-281-2/+4
| | | | llvm-svn: 136318
* Switch Sema::DynamicClasses over to LazyVectorDouglas Gregor2011-07-286-14/+34
| | | | llvm-svn: 136317
* Cut down the number of open/close system calls for output files.Argyrios Kyrtzidis2011-07-284-32/+44
| | | | | | | | | For PCH files, have only one open/close for temporary + rename to be safe from race conditions. For all other output files open/close the output file directly. Depends on llvm r136310. rdar://9082880 & http://llvm.org/PR9374. llvm-svn: 136315
* Switch Sema::ExtVectorDecls over to LazyVector.Douglas Gregor2011-07-286-17/+37
| | | | llvm-svn: 136314
* Fix thinko in last checkin.Eric Christopher2011-07-281-1/+1
| | | | llvm-svn: 136311
* Remove the need for a header and specify a triple so that the typeEric Christopher2011-07-281-4/+4
| | | | | | sizes make sense. llvm-svn: 136309
* Fix this up for clang codegen versus llvm-gcc.Eric Christopher2011-07-281-6/+4
| | | | llvm-svn: 136308
* Fix this test to work for arm and on all platforms.Eric Christopher2011-07-281-9/+3
| | | | llvm-svn: 136307
* Add template instantiations to the output of -ast-dump.Richard Trieu2011-07-284-13/+96
| | | | llvm-svn: 136306
OpenPOWER on IntegriCloud