summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* More #include cleaningDaniel Dunbar2008-08-118-8/+21
| | | | | | | - Drop Diagnostic.h from DeclSpec.h, move utility Diag methods into implementation .cpp llvm-svn: 54626
* Minor #include cleaningDaniel Dunbar2008-08-118-3/+10
| | | | | | | - Drop TokenKinds.h from Action.h - Move DeclSpec.h from Sema.h into individual Sema .cpp files llvm-svn: 54625
* Add dummy Mac Objective-C runtime interface.Daniel Dunbar2008-08-116-8/+229
| | | | | | - Not currently accessible and completely non-functional. llvm-svn: 54624
* fix linking with .so files specified in cmd line (this fixes some libtool ↵Nuno Lopes2008-08-101-1/+1
| | | | | | usages) llvm-svn: 54623
* pass -R arg to linkerNuno Lopes2008-08-101-1/+1
| | | | llvm-svn: 54622
* Back out r54608 (inline string literals were getting an extra '\0')Daniel Dunbar2008-08-104-37/+33
| | | | | | | | | | | | | | | temporarily, I assumed GetAddrForConstantString literal was being used consistently but it doesn't look like it is. Factored out a CodeGenModule::getStringForStringLiteral which handles extracting a std::string for the bytes of a StringLiteral, padded to match the type. Update EmitLValue to use getStringForStringLiteral, this was previously not padding strings correctly. Good thing we only emit strings in 4 different places! llvm-svn: 54621
* * Remove isInSystemHeader() from DiagClient, move it to SourceManagerNico Weber2008-08-1017-165/+111
| | | | | | | | | | | | | | | | * Move FormatError() from TextDiagnostic up to DiagClient, remove now empty class TextDiagnostic * Make DiagClient optional for Diagnostic This fixes the following problems: * -html-diags (and probably others) does now output the same set of warnings as console clang does * nothing crashes if one forgets to call setHeaderSearch() on TextDiagnostic * some code duplication is removed llvm-svn: 54620
* Forgot to modify LAST_EXPR (thanks Nuno).Steve Naroff2008-08-101-1/+1
| | | | llvm-svn: 54619
* Do not crash with -serialize.Nico Weber2008-08-101-14/+7
| | | | | | This happened because seralization was done in the constructor, and at that time the TranslationUnit is no longer valid. llvm-svn: 54618
* Cleanup ObjCSuperRefExpr (remove last usage and AST node:-).Steve Naroff2008-08-106-45/+4
| | | | llvm-svn: 54617
* Remove the old evaluator code.Anders Carlsson2008-08-101-40/+2
| | | | llvm-svn: 54615
* InitListChecker::CheckListElementTypes(): Check for function types and issue ↵Steve Naroff2008-08-103-3/+7
| | | | | | an appropriate diagnostic. llvm-svn: 54614
* Cleanup from yesterday...make isTentativeDefinition() a static helper ↵Steve Naroff2008-08-102-2/+1
| | | | | | function (no need for it to be part of the Sema API). llvm-svn: 54613
* Sema::CheckForFileScopedRedefinitions(): Make sure tentative decls of ↵Steve Naroff2008-08-102-0/+13
| | | | | | incomplete array types are completed (and diagnosed properly). llvm-svn: 54612
* Allow the preprocessor to cache the lexed tokens, so that we can do ↵Argyrios Kyrtzidis2008-08-105-129/+146
| | | | | | | | | | | | | | | efficient lookahead and backtracking. 1) New public methods added: -EnableBacktrackAtThisPos -DisableBacktrack -Backtrack -isBacktrackEnabled 2) LookAhead() implementation is replaced with a more efficient one. 3) LookNext() is removed. llvm-svn: 54611
* Fix crash during initialization of a bitfield which followed a zeroDaniel Dunbar2008-08-102-2/+19
| | | | | | | | length element. Fix some 80-col violations. llvm-svn: 54610
* Update ShuffeVectorExpr::getShuffleMaskIdx to useDaniel Dunbar2008-08-101-4/+2
| | | | | | | | | getIntegerConstantExprValue. Tweak getIntegerConstantExprValue to suppress warning in Release-Asserts mode. llvm-svn: 54609
* Bug fix, inline string literals were getting an extra '\0'.Daniel Dunbar2008-08-101-1/+1
| | | | llvm-svn: 54608
* tighten up some code and some wording on diagnostics.Chris Lattner2008-08-102-30/+22
| | | | llvm-svn: 54607
* wrap some long diagnostics, make 'initializer is not a constant' diagnosticChris Lattner2008-08-107-12/+14
| | | | | | a bit more clear (rdar://5646070) llvm-svn: 54606
* rename PreDefinedExpr -> PredefinedExprChris Lattner2008-08-1020-62/+62
| | | | llvm-svn: 54605
* Add some C++ Decl statistics.Argyrios Kyrtzidis2008-08-101-3/+12
| | | | llvm-svn: 54604
* Make sure to count the struct elements correctly; here, we want the Eli Friedman2008-08-092-1/+8
| | | | | | | | member count. The count returned by numStructUnionElements is the number of initializers that will be consumed, not the number of members to iterate through. Fixes PR2534. llvm-svn: 54601
* Fix for PR2631; make va_arg work correctly on x86-64.Eli Friedman2008-08-092-3/+16
| | | | llvm-svn: 54600
* 80 colsNico Weber2008-08-091-1/+1
| | | | llvm-svn: 54599
* Remove the ICE pointer cast hack; the issue this was working around is Eli Friedman2008-08-091-5/+0
| | | | | | now fixed in an alternate way. llvm-svn: 54598
* Turn on the new constant expression evaluator; it isn't Eli Friedman2008-08-091-1/+1
| | | | | | | anywhere near complete, but I don't know of any issues, and it can handle enough to allow removing the I-C-E pointer cast hack. llvm-svn: 54597
* add assert, use make_pair() instead of pair constructorNico Weber2008-08-091-1/+3
| | | | llvm-svn: 54596
* Mention 'wchar_t' at the C++ status page.Argyrios Kyrtzidis2008-08-091-0/+5
| | | | llvm-svn: 54595
* fix spelloNico Weber2008-08-091-1/+1
| | | | llvm-svn: 54594
* Handle BuiltinType::WChar inside CodeGenTypes::ConvertNewType().Argyrios Kyrtzidis2008-08-091-0/+2
| | | | llvm-svn: 54593
* Fix PR2400 by more graceful handling of invalid decls. Don't try to layoutChris Lattner2008-08-093-4/+22
| | | | | | | an invalid struct decl. Thanks to Martin Doucha for the isIncompleteArrayType part of this patch. llvm-svn: 54592
* Expressive diagnostics-- worth their weight in gold?Gordon Henriksen2008-08-092-21/+21
| | | | | | (Fixing a spelling error.) llvm-svn: 54591
* do not serialize invalid asts. this fixes bug #2637Nico Weber2008-08-091-6/+12
| | | | llvm-svn: 54590
* Change 'Wchar' to 'WChar' casing, for consistency.Argyrios Kyrtzidis2008-08-093-5/+5
| | | | | | No functionality change. llvm-svn: 54588
* Handle WChar inside BuiltinType::getName().Argyrios Kyrtzidis2008-08-091-0/+1
| | | | llvm-svn: 54587
* Implement support for the 'wchar_t' C++ type.Argyrios Kyrtzidis2008-08-099-4/+73
| | | | llvm-svn: 54585
* Fix Sema::MergeVarDecl() to better handle type compatibility. The previous ↵Steve Naroff2008-08-092-34/+4
| | | | | | | | code was trying to handle arrays specially (which didn't work for pointers to array). Removed local helper function areEquivalentArrayTypes(), replacing it's use with the more general ASTContext::typesAreCompatible() predicate. Even though the test case this fixes is in "tentative-decls.c", this bug didn't have anything to do with our handling of tentative definitions (which is what I first expected). In any event, this is a tricky area of the spec. llvm-svn: 54583
* When in C++, invoke ASTConsumer::HandleTagDeclDefinition in ↵Argyrios Kyrtzidis2008-08-092-4/+10
| | | | | | | | Sema::ActOnFinishCXXClassDef, at which point the C++ struct/class/union is fully parsed. llvm-svn: 54569
* Added FIXME.Ted Kremenek2008-08-091-0/+1
| | | | llvm-svn: 54568
* Passing right brace location to ActOnFinishCXXClassDef is redundant, since ↵Argyrios Kyrtzidis2008-08-094-4/+4
| | | | | | it gets passed to ActOnFinishCXXMemberSpecification too. llvm-svn: 54567
* Updated checker build.Ted Kremenek2008-08-091-1/+1
| | | | llvm-svn: 54566
* Don't use Expr::isIntegerConstantExpr just to check if a pointer value is ↵Ted Kremenek2008-08-091-13/+9
| | | | | | initialize to NULL. llvm-svn: 54563
* Updated checker build.Ted Kremenek2008-08-081-1/+1
| | | | llvm-svn: 54562
* Make RecordDecl::Destroy() public.Argyrios Kyrtzidis2008-08-081-2/+2
| | | | llvm-svn: 54561
* Have scan-build/ccc-analyzer generate preprocessed .i/.mi files for sources ↵Ted Kremenek2008-08-082-75/+149
| | | | | | that clang crashes on. llvm-svn: 54552
* update to make IRBuilder API change.Chris Lattner2008-08-088-35/+37
| | | | llvm-svn: 54548
* Fix issues with C "tentative" definitions.Steve Naroff2008-08-083-38/+55
| | | | | | | | | | - Move checking from MergeVarDecl->FinializeDeclaratorGroup. Since MergeVarDecl is called before the initializer is attacted, it can't be done there (this removes a long standing FIXME). - Add Sema::isTentativeDefinition() and Sema::CheckForFileScopedRedefinitions(). - Remove FIXME's and touch-up test case. Still some more work to do (forthcoming)... llvm-svn: 54533
* Change line endings, CRLF -> LF.Argyrios Kyrtzidis2008-08-081-6/+6
| | | | llvm-svn: 54530
* Revert my previous commit where I replaced cast<> with static_cast<> in ↵Argyrios Kyrtzidis2008-08-081-8/+6
| | | | | | CXXFieldDecl::getMember(). llvm-svn: 54529
OpenPOWER on IntegriCloud