summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add driver::types::isObjC predicate.Daniel Dunbar2009-11-172-0/+16
| | | | llvm-svn: 89064
* Add EvalEndPath interface to Checker. Now we can check memory leaked at theZhongxing Xu2009-11-174-32/+70
| | | | | | end of the path. Need to unify interfaces. llvm-svn: 89063
* Fail less mysteriously; inform the user that their LLVM was not built withNick Lewycky2009-11-171-0/+3
| | | | | | | libffi support and that the interpreter can't call external functions without it. Patch by Timo Juhani Lindfors! Fixes PR5466. llvm-svn: 89062
* Store "sugared" decls in LookupResults (i.e. decl aliases like using ↵John McCall2009-11-173-48/+53
| | | | | | | | | | | | declarations); strip the sugar off in getFoundDecl() and getAsSingleDecl(), but leave it on for clients like overload resolution who want to use the iterators. Refactor a few pieces of overload resolution to strip off using declarations in a single place. Don't do anything useful with the extra context knowledge yet. llvm-svn: 89061
* Clear the dest set.Zhongxing Xu2009-11-171-0/+1
| | | | llvm-svn: 89060
* Fixed call to wrong constructor.Lang Hames2009-11-171-1/+1
| | | | llvm-svn: 89059
* Move -fnext-runtime defaulting to driver (and change clang-cc default toDaniel Dunbar2009-11-1746-65/+58
| | | | | | -fnext-runtime), instead of using getDefaultLangOptions. llvm-svn: 89058
* Move -fms-extensions defaulting to driver, instead of using ↵Daniel Dunbar2009-11-173-11/+8
| | | | | | getDefaultLangOptions. llvm-svn: 89057
* Fix a race condition in the Timer class.Owen Anderson2009-11-171-38/+5
| | | | llvm-svn: 89056
* Sort visitor methods. No functionality change.Ted Kremenek2009-11-171-22/+24
| | | | llvm-svn: 89055
* Be more careful with anonymous namespaces, since Clang diagnoses the ↵Douglas Gregor2009-11-171-19/+9
| | | | | | ambiguity here llvm-svn: 89054
* Move char-is-signed defaulting to driver, instead of usingDaniel Dunbar2009-11-173-25/+25
| | | | | | getDefaultLangOptions. llvm-svn: 89053
* Add newline at the end of the file.Ted Kremenek2009-11-171-1/+1
| | | | llvm-svn: 89052
* Silence some warnings produced by Clang, and add a missing headerDouglas Gregor2009-11-176-11/+12
| | | | llvm-svn: 89051
* Implement template instantiation for using directives, which is dead simple.Douglas Gregor2009-11-172-2/+25
| | | | | | | | Also, make the "don't know how to instantiate a particular kind of declaration" diagnostic nicer, so we don't have to trap Clang in a debugger to figure out what went wrong. llvm-svn: 89050
* Add initial cut at CompilerInvocation::toArgs, which "serializes" the ↵Daniel Dunbar2009-11-173-0/+571
| | | | | | | | CompilerInvocation into a list of arguments which can be passed to clang-cc (eventually, clang -cc1). - Unfortunately, this is currently a tedious and manual translation. Eventually it would be nice to automatically generate this code. llvm-svn: 89049
* Instead of hanging a using declaration's target decls directly off the using John McCall2009-11-1713-63/+230
| | | | | | | decl, create shadow declarations and put them in scope like normal. Work in progress. llvm-svn: 89048
* Simplify PreprocessorOptions, it doesn't need abstracted field access.Daniel Dunbar2009-11-175-74/+24
| | | | llvm-svn: 89047
* Have clang_getCursorSource() return NULL when the source location is invalid ↵Ted Kremenek2009-11-173-13/+23
| | | | | | or refers to a built-in buffer. Implements <rdar://problem/7296243>. llvm-svn: 89044
* Add missing #include found by ClangDouglas Gregor2009-11-171-0/+1
| | | | llvm-svn: 89043
* Require the object type of a member access expression ("." or "->") toDouglas Gregor2009-11-175-9/+31
| | | | | | be complete. llvm-svn: 89042
* Reorder options alphabetically.Daniel Dunbar2009-11-171-14/+14
| | | | llvm-svn: 89041
* Move InitializeAnalyzerOptions for consistency.Daniel Dunbar2009-11-171-19/+18
| | | | llvm-svn: 89040
* Remove unused NoPreprocess variable.Daniel Dunbar2009-11-171-5/+0
| | | | llvm-svn: 89039
* Remove unused program action.Daniel Dunbar2009-11-171-1/+0
| | | | llvm-svn: 89038
* Rename CompilerInvocation::DiagOpts -> DiagnosticOpts for consistency.Daniel Dunbar2009-11-171-3/+3
| | | | llvm-svn: 89037
* Add missing defaults to AnalyzerOptions.Daniel Dunbar2009-11-171-0/+3
| | | | llvm-svn: 89036
* Remove unused IsCXXAware and IgnoreSysRoots option from ↵Daniel Dunbar2009-11-173-23/+16
| | | | | | HeaderSearchOptions::Entry. llvm-svn: 89035
* Unify the way destructor epilogues are generated for synthesized and regular ↵Anders Carlsson2009-11-178-315/+144
| | | | | | destructors. Also fix PR5529. llvm-svn: 89034
* More const is always good.Anders Carlsson2009-11-172-6/+6
| | | | llvm-svn: 89033
* Add a comment.Zhongxing Xu2009-11-171-1/+1
| | | | llvm-svn: 89032
* Fix typo. Thanks Ted.Mike Stump2009-11-171-1/+1
| | | | llvm-svn: 89031
* Add typeinfo support for T* and const T* for all builtin types T.Mike Stump2009-11-172-1/+18
| | | | llvm-svn: 89030
* Add test to verify that the analyzer plist output is what we expect.Ted Kremenek2009-11-171-0/+122
| | | | llvm-svn: 89029
* Add typeid for the builtin types. WIP.Mike Stump2009-11-174-11/+44
| | | | llvm-svn: 89028
* Carry lookup configuration throughout lookup on the LookupResult. GiveJohn McCall2009-11-1711-223/+325
| | | | | | | | | | | | | LookupResult RAII powers to diagnose ambiguity in the results. Other diagnostics (e.g. access control and deprecation) will be moved to automatically trigger during lookup as part of this same mechanism. This abstraction makes it much easier to encapsulate aliasing declarations (e.g. using declarations) inside the lookup system: eventually, lookup will just produce the aliases in the LookupResult, and the standard access methods will naturally strip the aliases off. llvm-svn: 89027
* Fix tests after enabling -split-phi-edges.Jakob Stoklund Olesen2009-11-172-11/+11
| | | | | | | | object-size.c aws simply too fragile. constructor-default-arg.cpp triggers an issue when LiveVariables is run before RALocal. llvm-svn: 89025
* Refactor the code that creates the "dot-label" difference. This may be used inBill Wendling2009-11-172-18/+29
| | | | | | more than one place. No intended functionality change. llvm-svn: 89024
* PR5526: Make sure to set the right cast kinds for the inserted implicit casts.Eli Friedman2009-11-172-2/+10
| | | | llvm-svn: 89023
* When moving a block for table jumps, make sure the prior block terminatorJim Grosbach2009-11-171-7/+9
| | | | | | | is analyzable so it can be updated. If it's not, be safe and don't move the block. llvm-svn: 89022
* Enable -split-phi-edges by defaultJakob Stoklund Olesen2009-11-173-3/+9
| | | | llvm-svn: 89021
* MOV64rm should be marked isReMaterializable.Evan Cheng2009-11-172-1/+43
| | | | llvm-svn: 89019
* When querying type qualifiers on QualType via one of the "non-local"Douglas Gregor2009-11-173-28/+86
| | | | | | | | | | | | | | interfaces (which are used throughout the front end), combine the qualifiers on the QualType instance with the qualifiers on the canonical type to produce the set of qualifiers that, semantically, apply to that type. This should design away a large category of "qualifier-hidden-behind-a-typedef" buts like we saw in PR5383. Performance-wise, this caused a regression of ~0.5% on Cocoa.h, but it's totally worth it. We may actually be able to get a little more performance back by using CanQualType more often. llvm-svn: 89018
* Remove the optimizations that convert BRCOND and BR_CC intoDan Gohman2009-11-171-17/+12
| | | | | | | | | | unconditional branches or fallthroghes. Instcombine/SimplifyCFG should be simplifying branches with known conditions. This fixes some problems caused by these transformations not updating the MachineBasicBlock CFG. llvm-svn: 89017
* Remove debug info attached with an instruction.Devang Patel2009-11-171-36/+18
| | | | llvm-svn: 89016
* Ensure we peer through () when handling typeid(*p).Mike Stump2009-11-172-2/+2
| | | | llvm-svn: 89015
* In GlobalVariable::setInitializer, assert that the initializer has theJeffrey Yasskin2009-11-172-12/+19
| | | | | | right type. llvm-svn: 89014
* Remove extra space in warn_maynot_respond diagnostic. Fixes ↵Ted Kremenek2009-11-173-3/+3
| | | | | | <rdar://problem/7364274>. llvm-svn: 89013
* Note why this doesn't yet work.Mike Stump2009-11-171-1/+2
| | | | llvm-svn: 89012
* A few more instructions that should be marked re-materializable.Evan Cheng2009-11-172-4/+7
| | | | llvm-svn: 89011
OpenPOWER on IntegriCloud