summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* add gentoo x86 2009.1 (gcc 4.3.4) include pathsNuno Lopes2009-10-171-0/+6
| | | | llvm-svn: 84371
* Fix a crash with qualified member access into a non-type, from Sean Hunt!Douglas Gregor2009-10-171-0/+6
| | | | llvm-svn: 84370
* When type-checking a C++ "new" expression, don't type-check the actual Douglas Gregor2009-10-171-2/+5
| | | | | | | initialization if any of the constructor/initialization arguments are type-dependent. Fixes PR5224. llvm-svn: 84365
* When resolving the address of an overloaded function or function template, ↵Sebastian Redl2009-10-171-11/+20
| | | | | | | | mark the result as referenced. The most important effect of this is that function templates only referenced by address expressions now get instantiated. This, in turn, means that Hello World compiles with the Apache stdcxx library even when using endl. llvm-svn: 84363
* Don't add implicit casts of explicit address-taking of overloaded functions.Sebastian Redl2009-10-173-5/+14
| | | | | | Taking the address of an overloaded function with an explicit address-of operator wrapped the operator in an implicit cast that added yet another pointer level, leaving us with a corrupted AST, which crashed CodeGen in the test case I've added. Fix this by making FixOverloadedFunctionReference return whether there was an address-of operator and not adding the implicit cast in that case. llvm-svn: 84362
* Use StringExtra's HashString instead of BernsteinHash.Daniel Dunbar2009-10-171-6/+7
| | | | llvm-svn: 84360
* teach getCorrespondingUnsignedType how to handle vectors of integers,Chris Lattner2009-10-172-10/+18
| | | | | | fixing PR4838. llvm-svn: 84353
* In some dependent contexts, incomplete array types persist into ↵Sebastian Redl2009-10-171-4/+31
| | | | | | FinalizeDeclaratorGroup. Don't require them to have a complete type. This allows us to compile Hello World with the Apache stdcxx library. If you don't use endl, it even links and runs. llvm-svn: 84347
* Fix for PR5190, Credit to Zhanyong Wan.Edward O'Callaghan2009-10-171-5/+14
| | | | llvm-svn: 84346
* Avoid std::string thrashing in MultiKeywordSelector::getName(), and simplify.Daniel Dunbar2009-10-171-19/+12
| | | | llvm-svn: 84343
* Simplify more.Daniel Dunbar2009-10-171-9/+5
| | | | llvm-svn: 84342
* Simplify.Daniel Dunbar2009-10-171-25/+4
| | | | llvm-svn: 84341
* Use raw_ostream instead of C stdio.Daniel Dunbar2009-10-171-9/+6
| | | | llvm-svn: 84340
* Rewrite AttributeList::getKind to use StringRef API.Daniel Dunbar2009-10-171-8/+5
| | | | llvm-svn: 84339
* Simplify.Daniel Dunbar2009-10-171-15/+5
| | | | llvm-svn: 84338
* Use raw_ostream for formatting integers, and use IdentifierInfo::getNameStrDaniel Dunbar2009-10-171-10/+4
| | | | | | | instead of getName. - -2 FIXMEs. llvm-svn: 84337
* Minor cleanup: move typedef out of anonymous namespace (which now contains ↵Ted Kremenek2009-10-171-4/+2
| | | | | | nothing) and into RemoveDeadBindings. No functionality change. llvm-svn: 84335
* Write the preprocessor block after we write out types + declarations,Douglas Gregor2009-10-172-2/+3
| | | | | | | | so that we catch any macros used within the declarations and types. Also, properly store a NULL selector. llvm-svn: 84334
* Suppress -Asserts warning.Daniel Dunbar2009-10-171-0/+1
| | | | llvm-svn: 84329
* Per discussion with Ted, the 'FromSuper'/'FromSub' logic is invalid. SimplifyZhongxing Xu2009-10-171-72/+33
| | | | | | | the code to standard worklist algorithm. Always add both sub and super regions of live regions. llvm-svn: 84323
* Fix another static analyzer crash due to a corner case in "folding" symbolic ↵Ted Kremenek2009-10-171-11/+16
| | | | | | values that are constrained to be a constant. llvm-svn: 84320
* Actually all regions whose super region is not MemSpaceRegion are of these 3Zhongxing Xu2009-10-171-5/+4
| | | | | | kinds. This means we are visiting all regions 'from super region'. llvm-svn: 84319
* Don't crash when dumping pretty stack traces, if the current tok is anDaniel Dunbar2009-10-171-1/+4
| | | | | | | | annotation token. - I'm not sure what the best thing to print is, for now we just print the token location and 'at annotation token'. llvm-svn: 84312
* Fix PR5211: codegen shouldn't assume that the result of ||/&& is int Chris Lattner2009-10-171-10/+14
| | | | | | anymore. In C++ it is bool. llvm-svn: 84308
* Simplify.Daniel Dunbar2009-10-171-3/+1
| | | | llvm-svn: 84307
* Add Ubuntu 9.04 C++ search path.Daniel Dunbar2009-10-171-0/+5
| | | | llvm-svn: 84301
* Add 'UseBumpPtrAllocator' flag to ASTUnit::LoadFromPCHFile() to cause the ↵Ted Kremenek2009-10-171-2/+3
| | | | | | | | | | | created ASTContext to use its own BumpPtrAllocator to allocate ASTs. Change clang_createTranslationUnit (CIndex) to pass 'UseBumpPtrAllocator = true' to ASTUnit::LoadFromPCHFile(). llvm-svn: 84296
* Merge the "types" and "declarations" blocks in the precompiled headerDouglas Gregor2009-10-173-116/+78
| | | | | | | | | | | | | | | format, so that we don't end up with multiple declaration and types blocks. Also, fix a few obscure bugs with PCH loading and generation: - If the DeclIDs DenseMap reallocates while we are writing a declaration (due to recursively writing other declarations), we could end up writing a bad ID to ExternalDefinitions. - When loading an ArrayLoc (part of DeclaratorInfo), we need to set the size expression to NULL if no size expression was provided. PCH -> AST rewriting is still partly broken, unfortunately. llvm-svn: 84293
* Patch to clean up and improve visual display ofFariborz Jahanian2009-10-161-7/+14
| | | | | | builtin function ambiguity. llvm-svn: 84289
* While writing source-location entries to a PCH file, go through anDouglas Gregor2009-10-162-8/+7
| | | | | | | interface that can load those source-location entries on demand (from another PCH file). llvm-svn: 84287
* Allow TypeLocs to be fully initialized with a single SourceLocation. ThisJohn McCall2009-10-161-12/+27
| | | | | | will be the keystone of converting existing rewrites to be rewrites on TypeLocs. llvm-svn: 84286
* Use VisibleQuals to control setting of Volatile/Restrict qualifiers onFariborz Jahanian2009-10-161-7/+15
| | | | | | | candidate types in BuiltinCandidateTypeSet::AddPointerWithMoreQualifiedTypeVariants further trimming the overload candidate set. llvm-svn: 84281
* Factor out routines to encode/decode DeclaratorInfos and move them into theJohn McCall2009-10-164-153/+163
| | | | | | core PCH reader/writer implementation files. llvm-svn: 84278
* Fix static analyzer crash due to recently add symbolic-value constant ↵Ted Kremenek2009-10-161-1/+9
| | | | | | | | | folding. The issue was falsely converting the constant value of the LHS of a '<<'/'>>' operation to the same APSInt value of the RHS. llvm-svn: 84269
* Keep track of whether declararions were loaded from a precompiledDouglas Gregor2009-10-163-2/+7
| | | | | | | | | | header or not via a new "PCHLevel" field in Decl. We currently use this information to help CIndex filter out declarations that came from a precompiled header (rather than from an AST file). Further down the road, it can be used to help implement multi-level precompiled headers. llvm-svn: 84267
* dynamic linker arg is incorrectly invoking gnu ld arg syntax instead of svr4 ↵Edward O'Callaghan2009-10-161-1/+1
| | | | | | ld syntax in AuroraUX toolchain. llvm-svn: 84266
* Implement derived-to-base AST/code gen. There is aFariborz Jahanian2009-10-163-9/+60
| | | | | | | FIXME in CGCXX.cpp that I would like Anders to take a look at. llvm-svn: 84265
* Add support for a chain of stat caches in the FileManager, rather thanDouglas Gregor2009-10-166-20/+59
| | | | | | | | | only supporting a single stat cache. The immediate benefit of this change is that we can now generate a PCH/AST file when including another PCH file; in the future, the chain of stat caches will likely be useful with multiple levels of PCH files. llvm-svn: 84263
* Implement PR4407 - missing warnings on case value overflow,Chris Lattner2009-10-161-2/+27
| | | | | | patch by Zhanyong Wan! llvm-svn: 84259
* ignore 'using' directive in CodeGenFunction::EmitDecl(). this fixes PR5085Nuno Lopes2009-10-161-0/+1
| | | | llvm-svn: 84255
* fix -ansi in c++: it means -std=c++98Nuno Lopes2009-10-161-1/+4
| | | | llvm-svn: 84254
* Add CK_VectorSplat and use it for casting non-pointer scalars to ExtVectors.Anders Carlsson2009-10-163-10/+22
| | | | llvm-svn: 84245
* Make CheckVectorCast return a CastKind. Reduce nesting of if statements in ↵Anders Carlsson2009-10-162-20/+33
| | | | | | CheckCastTypes. llvm-svn: 84242
* Add a ToVoid cast kind and start using it.Anders Carlsson2009-10-162-1/+7
| | | | llvm-svn: 84241
* increase helpfulness of assert message.Chris Lattner2009-10-161-1/+6
| | | | llvm-svn: 84240
* Builtin types are subsitutable if they are qualified. Fixes PR5196.Anders Carlsson2009-10-161-1/+1
| | | | llvm-svn: 84237
* The result type of logical || and && is bool in C++. Fixes PR5206.Anders Carlsson2009-10-161-3/+10
| | | | llvm-svn: 84231
* Work-around wchar_t and __pragma problem in VC headersJohn Thompson2009-10-161-2/+11
| | | | llvm-svn: 84227
* retain/release checker: Stop tracking reference counts for any symbols ↵Ted Kremenek2009-10-163-14/+37
| | | | | | | | touched by StoreManager::InvalidateRegion(). This fixes <rdar://problem/7257223> and <rdar://problem/7283470>. llvm-svn: 84223
* Remove the ConstantArrayType subtypes. This information is preserved in theJohn McCall2009-10-1610-239/+9
| | | | | | | | | | TypeLoc records for declarations; it should not be necessary to represent it directly in the type system. Please complain if you were using these classes and feel you can't replicate previous functionality using the TypeLoc API. llvm-svn: 84222
OpenPOWER on IntegriCloud