summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Switch to void-cast for this. Chris prefers that over the attribute, I'llChandler Carruth2010-07-111-3/+4
| | | | | | probably try and switch more of these if I can. llvm-svn: 108085
* Mark assert-only variables as unused.Chandler Carruth2010-07-111-2/+3
| | | | llvm-svn: 108068
* Rename clang.dll to libclang.dll, to fix Windows build.John Thompson2010-07-111-1/+0
| | | | llvm-svn: 108067
* PrintFunctionNames is a plugin, it should pull in symbols from the clang binaryNick Lewycky2010-07-101-1/+0
| | | | | | that loads it, not by linking against them directly. llvm-svn: 108055
* Clang do so have plugins, we can't prune exports. Fixes plugin support.Nick Lewycky2010-07-101-3/+0
| | | | llvm-svn: 108054
* Fix compile error. Per Fariborz.Dale Johannesen2010-07-101-1/+2
| | | | llvm-svn: 108051
* Lay the ground work for resoving PR7047. This doesn't actually fix it becauseChandler Carruth2010-07-102-3/+66
| | | | | | | | | | default arguments to template parameters don't have a DeclContext when instantiated, and so we can't detect that we're in an instantiation context as opposed to the definition context. However, it fixes the more commonly-occuring cases in TMP code that use devolve to this type of tautology after substitution. llvm-svn: 108044
* Add PCH support for the remaining C++ exprs.Argyrios Kyrtzidis2010-07-105-20/+104
| | | | llvm-svn: 108042
* Fix CMake buildPeter Collingbourne2010-07-091-0/+2
| | | | llvm-svn: 108031
* Hack for dealing with commas until we support multiple alternative ↵John Thompson2010-07-091-0/+4
| | | | | | constraints, per pr7338. llvm-svn: 108028
* BlockDeclRefExpr of a dependent type mustFariborz Jahanian2010-07-092-14/+17
| | | | | | be a dependent expression when its is built. llvm-svn: 108026
* Instantiation of byref variable inFariborz Jahanian2010-07-093-1/+28
| | | | | | block literal expression. llvm-svn: 108019
* Slightly improve the diagnostic when using a qualified function typedef to ↵Sebastian Redl2010-07-093-9/+10
| | | | | | declare nonmember or static member functions. llvm-svn: 108018
* Reorganize how ClassTemplate[Partial]SpecializationDecls are read/written to ↵Argyrios Kyrtzidis2010-07-092-37/+38
| | | | | | | | avoid the possibility of adding an unitialized one into the folding set. llvm-svn: 108016
* isMemberSpecialization -> setMemberSpecialization.Argyrios Kyrtzidis2010-07-091-1/+1
| | | | llvm-svn: 108015
* When given the -chained-pch option and a previous PCH file, have the ↵Sebastian Redl2010-07-094-14/+23
| | | | | | PCHWriter emit a CHAINED_METADATA record instead of METADATA, and write a link to the previous file there. llvm-svn: 108014
* Fix a crashing but trying to print a TemplateTemplateParmDeclCraig Silverstein2010-07-091-1/+5
| | | | | | | | | | | | | | | for code like this: template<template<typename T> class U> class V {}; The problem is that the DeclPrinter assumed all TemplateDecls have a getTemplatedClass(), but template template params don't (so we got a NULL dereference). The solution is to detect if we're a template template param, and construct the template class name ('class U') specially in this case. OKed by dgregor and chandlerc llvm-svn: 108007
* Ignore -Wno-main, per PR7269.Eli Friedman2010-07-091-0/+1
| | | | llvm-svn: 108006
* Rip out the floating point return type handling from the atomic builtin. It'sChandler Carruth2010-07-091-2/+1
| | | | | | | wrong, and we don't handle floating point value type arguments yet anyways. Will add correct logic for both when I finish the patch. llvm-svn: 108004
* Fix PR7600, and correctly convert the result of an atomic builtin to theChandler Carruth2010-07-093-30/+63
| | | | | | | | | expected value type. This is necessary as the builtin is internally represented as only operating on integral types. Also, add a FIXME to add support for floating point value types. llvm-svn: 108002
* Instantiation of block literal expressions. wip.Fariborz Jahanian2010-07-094-9/+103
| | | | llvm-svn: 108000
* Document my otherwise-inexplicable changeDouglas Gregor2010-07-091-0/+15
| | | | llvm-svn: 107998
* Refer to implicit "conversions" rather than implicit "casts", whichDouglas Gregor2010-07-094-75/+76
| | | | | | don't technically exist in the language. <rdar://problem/8085982> llvm-svn: 107995
* Correctly initialize Reader to null.Sebastian Redl2010-07-091-1/+1
| | | | llvm-svn: 107994
* Really respect -chained-pch.Sebastian Redl2010-07-091-7/+5
| | | | llvm-svn: 107993
* Introduce -f{no-}spell-checking options to enable/disableDouglas Gregor2010-07-0910-1/+23
| | | | | | | spell-checking. By default, spell-checking is enabled for Clang (obviously) but disabled in CIndex for performance reasons. llvm-svn: 107992
* Document -f{no-}color-diagnosticsDouglas Gregor2010-07-091-1/+18
| | | | llvm-svn: 107985
* Move traverseunqualifiedtypeloc over to the 'main' typeloc tree.Craig Silverstein2010-07-091-2/+16
| | | | | | | | | | | | | | | | | | | | Note that this is a move -- we pretend that we were really looking at the unqualified typeloc all along -- rather than a recursion, so we don't follow the normal CRTP plan of going through getDerived().TraverseTypeLoc. If we did, we'd be traversing twice for the same type (once as a QualifiedTypeLoc version of the type, once as an UnqualifiedTypeLoc version of the type), which in effect means we'd call VisitTypeLoc twice with the 'same' type. This solves that problem, at the cost of never seeing the qualified version of the type (unless the client subclasses TraverseQualifiedTypeLoc themselves). It's not a perfect solution. A perfect solution probably requires making QualifiedTypeLoc a wrapper around TypeLoc -- like QualType is a wrapper around Type* -- rather than being its own class in the type hierarchy. Reviewed by wan. llvm-svn: 107973
* Revert 107953, remove comma ignoring from PPC constraints.John Thompson2010-07-091-2/+0
| | | | llvm-svn: 107956
* Updating PPC target to ignore commas in asm contrains, as apparently that is ↵John Thompson2010-07-091-0/+2
| | | | | | what gcc does. llvm-svn: 107953
* Add a frontend option -chained-pch and don't pass an active PCH reader to ↵Sebastian Redl2010-07-094-1/+12
| | | | | | the PCH writer if it is not set, preventing creation of chained PCH files. Since the reader is so far unused, effectively no functionality change. llvm-svn: 107936
* Cleanup in CStringChecker. Now properly bifurcates the state for ↵Jordy Rose2010-07-082-139/+179
| | | | | | zero/nonzero sizes. llvm-svn: 107935
* Support code completion for parameter names in Objective-C methodDouglas Gregor2010-07-085-7/+48
| | | | | | declarations. llvm-svn: 107933
* Introduce a new code-completion point prior to an identifier in theDouglas Gregor2010-07-086-137/+258
| | | | | | | | | | | | selector of an Objective-C method declaration, e.g., given - (int)first:(int)x second:(int)y; this code completion point triggers at the location of "second". It will provide completions that fill out the method declaration for any known method, anywhere in the translation unit. llvm-svn: 107929
* When looking for an entity's Scope, don't consider scopes that can't contain ↵Sebastian Redl2010-07-082-3/+17
| | | | | | declarations. Fixes PR7594. llvm-svn: 107927
* Some preparatory work for chained PCH. No functionality change.Sebastian Redl2010-07-089-11/+64
| | | | llvm-svn: 107915
* Makes RecursiveASTVisitor traverse the type of a temporary objectZhanyong Wan2010-07-081-4/+8
| | | | | | | created via T() where T is a class type. Reviewed by chandlerc and csilvers. llvm-svn: 107911
* During code completion, give the "nil" and "NULL" macros the sameDouglas Gregor2010-07-082-5/+36
| | | | | | | priority as other constants. And, if we're in a place where we prefer a pointer type, consider "nil" and "NULL" to be close matches. llvm-svn: 107910
* Allow C-style casts and reinterpret_casts between block pointers andDouglas Gregor2010-07-082-7/+39
| | | | | | either integer values or other pointers. Fixes <rdar://problem/8134521>. llvm-svn: 107905
* PR7588: Fix the _mm_shufflehi_epi16 macro. (The issue was an oversightEli Friedman2010-07-081-3/+4
| | | | | | involving operator precedence.) llvm-svn: 107902
* Handle forward declarations properly in debug info.Devang Patel2010-07-081-6/+14
| | | | | | | Patch by Alexander Kabaev. PR 7595. llvm-svn: 107900
* Add missing whitespace.Ted Kremenek2010-07-081-1/+1
| | | | llvm-svn: 107897
* When performing substitution of template arguments within the body ofDouglas Gregor2010-07-089-28/+95
| | | | | | | a template, be sure to include the template arguments from the injected-class-name. Fixes PR7587. llvm-svn: 107895
* Update checker build.Ted Kremenek2010-07-081-1/+1
| | | | llvm-svn: 107893
* Introduce PCHReader::GetTranslationUnitDecl() and use it instead of ↵Argyrios Kyrtzidis2010-07-082-1/+11
| | | | | | | | | ReadDeclRecord when initializing. ReadDeclRecord would hit assertion if the translation unit declaration was already loaded during IdentifierInfo initialization. llvm-svn: 107885
* Support TemplateTemplateParmDecl for PCH.Argyrios Kyrtzidis2010-07-083-4/+22
| | | | llvm-svn: 107884
* Bowing to popular demand, reduce the "comma at end of enumerator list"Douglas Gregor2010-07-083-4/+3
| | | | | | ExtWarn to an Extension. Let the broken code propagate! llvm-svn: 107875
* Apparently the {{$}} hack doesn't work on Windows; I am saddened but notJohn McCall2010-07-081-2/+5
| | | | | | surprised. llvm-svn: 107874
* For TagType and TemplateSpecializationType, isDependent calculation may be ↵Argyrios Kyrtzidis2010-07-083-10/+27
| | | | | | | | | invalid because some decls that the calculation is using may still be initializing. Thus, store the isDependent flag to PCH and restore directly to Type. llvm-svn: 107873
* Read/write the C++ parts of DeclRefExpr and MemberExpr for PCH.Argyrios Kyrtzidis2010-07-084-25/+122
| | | | llvm-svn: 107872
OpenPOWER on IntegriCloud