summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Have AggExprEmitter::VisitCXXConstructExpr make new variables if necessary. ↵Anders Carlsson2009-05-192-2/+22
| | | | | | Stub out VisitCXXExprWithTemporaries. llvm-svn: 72103
* Create CXXConstructExpr calls for arguments passed to functions.Anders Carlsson2009-05-191-3/+7
| | | | llvm-svn: 72102
* Clean up some unnecessary includes.Eli Friedman2009-05-195-9/+1
| | | | llvm-svn: 72101
* CMake updates for r72099; untested, so please tell me if there are any Eli Friedman2009-05-192-11/+11
| | | | | | issues. llvm-svn: 72100
* Move clang-cc.h to lib/Frontend/Utils.h, and move the associated .cpp Eli Friedman2009-05-1910-14/+13
| | | | | | files to lib/Frontend. llvm-svn: 72099
* Add comment about FullExprArg.Anders Carlsson2009-05-191-0/+3
| | | | llvm-svn: 72098
* Move CreateAnalysisConsumer into a separate header AnalysisConsumer.h. Eli Friedman2009-05-194-38/+80
| | | | | | | Start moving things around in the direction of refactoring the command-line options out of AnalysisConsumer.cpp. llvm-svn: 72097
* Move the options for dependency file generation from DependencyFile.cpp Eli Friedman2009-05-193-59/+67
| | | | | | | | to clang-cc.cpp. Also, rename CreateDependencyFileGen to AttachDependencyFileGen, and make it take a raw_ostream rather than opening a file itself. llvm-svn: 72096
* Move options for -E mode from PrintPreprocessedOutput.cpp to Eli Friedman2009-05-193-27/+41
| | | | | | clang-cc.cpp. llvm-svn: 72095
* Refactor -dM mode out of the main routine for -E handling.Eli Friedman2009-05-192-53/+56
| | | | llvm-svn: 72090
* Move the warning options from Warnings.cpp to clang-cc.cpp.Eli Friedman2009-05-193-18/+29
| | | | llvm-svn: 72089
* Switch some utilities in clang-cc to take a stream instead of a Eli Friedman2009-05-197-191/+165
| | | | | | filename (or unconditionally using stdout). llvm-svn: 72085
* Update checker build.Ted Kremenek2009-05-191-1/+1
| | | | llvm-svn: 72084
* When assigning from an rvalue to a const reference, the implicit cast from T ↵Anders Carlsson2009-05-191-1/+1
| | | | | | -> const T is not an lvalue cast. llvm-svn: 72082
* Template instantiation for call expressions.Douglas Gregor2009-05-194-9/+113
| | | | llvm-svn: 72081
* This patch allows clang to generate code for declared properties on the GNU ↵Fariborz Jahanian2009-05-191-2/+28
| | | | | | | | runtime. As with @synchronized, this requires some extra functions that are included with other libraries (not with the GNU runtime itself) and so will cause linker errors when these are not present. Patch by David Chisnall. llvm-svn: 72079
* Template instantiation for array subscript expressions. This was farDouglas Gregor2009-05-194-1/+67
| | | | | | | easier than expected because of the limitation that subscript operators must be member functions. llvm-svn: 72076
* BlockDecl node must be complete before block attributesFariborz Jahanian2009-05-181-2/+2
| | | | | | can be processed. No change in functionality. llvm-svn: 72066
* Fix PR 4230: Don't flag leaks of NSAutoreleasePools until we know that we ↵Ted Kremenek2009-05-182-0/+16
| | | | | | aren' at the top-most scope of autorelease pools. llvm-svn: 72065
* Attempted CMake build fixes for r72060; this is untested, so please tell Eli Friedman2009-05-182-7/+7
| | | | | | me if there are any issues. llvm-svn: 72063
* Build fixes for r72060; sorry for any inconvenience.Eli Friedman2009-05-183-5/+4
| | | | llvm-svn: 72062
* Remove -fprintf-source-range-info from the Driver (this was renamed)Daniel Dunbar2009-05-182-2/+0
| | | | llvm-svn: 72061
* Move ASTConsumers.h to include/clang/Frontend, and move the associated Eli Friedman2009-05-187-6/+6
| | | | | | .cpp files to lib/Frontend. (As proposed on cfe-dev.) llvm-svn: 72060
* Move the Wno-rewrite-macros option out of RewriteObjC.cpp in prepration Eli Friedman2009-05-183-12/+23
| | | | | | for moving ASTConsumers.h to include/clang/Frontend. llvm-svn: 72059
* Template instantiation for imaginary literals, because they were next in Expr.hDouglas Gregor2009-05-184-0/+29
| | | | llvm-svn: 72058
* Rename the factory function for the ObjC rewriter to something sane.Eli Friedman2009-05-183-11/+10
| | | | llvm-svn: 72055
* Move AnalysisConsumer out of ASTConsumers.h in preparation for moving Eli Friedman2009-05-183-8/+11
| | | | | | ASTConsumers.h to include/clang/Frontend. llvm-svn: 72054
* Refactor ASTConsumers to take a raw_ostream instead of a filename where Eli Friedman2009-05-187-187/+156
| | | | | | appropriate. There shouldn't be any significant functionality change. llvm-svn: 72052
* "This patch fixes an obvious buffer overrun inDouglas Gregor2009-05-181-2/+2
| | | | | | SelectInterestingSourceRegion()," from Jay Foad! llvm-svn: 72049
* Fix sorting of using directives, from Jay FoadDouglas Gregor2009-05-181-1/+1
| | | | llvm-svn: 72048
* Reformat a commentDaniel Dunbar2009-05-181-5/+4
| | | | llvm-svn: 72046
* Several fixes to the clang man page.Daniel Dunbar2009-05-181-24/+21
| | | | | | | | | | | | | | - -emit-llvm isn't a stage selection option. - Document -O4 and -flto. - -ObjC++ and -ObjC apply to all inputs, not subsequent ones. - Some versions of pod2man aren't happy about the comment after =over=? - Some minor grammar fixes. llvm-svn: 72044
* Deal with an icky corner case where we were complaining that a catchDouglas Gregor2009-05-182-1/+15
| | | | | | | | | statement was using an rvalue reference during the template definition. However, template instantiations based on an lvalue reference type are well-formed, so we delay checking of these property until template instantiation time. llvm-svn: 72041
* more printf attribute on block declaration andFariborz Jahanian2009-05-183-0/+32
| | | | | | checking when block is envoked. In progress. llvm-svn: 72039
* Debug info: Initialize runtime language field correctly for Objective-CDaniel Dunbar2009-05-182-2/+10
| | | | | | interface types. llvm-svn: 72036
* Template instantiation for C++ try/catch statements.Douglas Gregor2009-05-187-29/+136
| | | | llvm-svn: 72035
* Since we miscompile many cases when declaring a variable with a reference ↵Anders Carlsson2009-05-181-0/+10
| | | | | | type, make them unsupported for now. llvm-svn: 72034
* Remove an unused builtin.Anders Carlsson2009-05-183-6/+0
| | | | llvm-svn: 72033
* Add 'cmp' SSE builtins and get rid of a bunch of other builtins.Anders Carlsson2009-05-185-288/+98
| | | | llvm-svn: 72032
* Include StmtNodes.def to declare Visit methods for all of the knownDouglas Gregor2009-05-181-19/+87
| | | | | | | | kinds of statements (in the instantiation logic). No functionality change, but now we'll get linker errors if we add a statement but forget to introduce its instantiation logic. llvm-svn: 72031
* Simplify struct/class tag mismatch warning, per Sebastian's suggestionDouglas Gregor2009-05-182-2/+1
| | | | llvm-svn: 72027
* Simplify tests now that GNU runtime supports exception handling.Daniel Dunbar2009-05-182-7/+0
| | | | llvm-svn: 72021
* Minor tweak to support format attribute on blocks. No change in functionality.Fariborz Jahanian2009-05-181-3/+3
| | | | llvm-svn: 72020
* Avoid potential out-of-bounds access in SourceManager::getLineNumber.Daniel Dunbar2009-05-181-1/+13
| | | | | | - Chris, please see added FIXMEs. llvm-svn: 72019
* Oops, dropped a -verifyDouglas Gregor2009-05-181-1/+1
| | | | llvm-svn: 72016
* When instantiating the definition of a member function of a classDouglas Gregor2009-05-188-36/+62
| | | | | | | | | | | | | | template, introduce that member function into the template instantiation stack. Also, add diagnostics showing the member function within the instantiation stack and clean up the qualified-name printing so that we get something like: note: in instantiation of member function 'Switch1<int, 2, 2>::f' requested here in the template instantiation backtrace. llvm-svn: 72015
* Improve test case a wee bitDaniel Dunbar2009-05-181-0/+3
| | | | llvm-svn: 72014
* Silence a Release-Asserts warning.Daniel Dunbar2009-05-181-0/+1
| | | | llvm-svn: 72013
* Fix for PR2386: distinguish between insertion and replacements in the Eli Friedman2009-05-183-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | delta tree. The issue is roughly a conflict in ReplaceText between two kinds of uses. One, it should be possible to replace a replacement: for example, the ObjC rewriter calls ReplaceStmt for an expression, then replaces the resulting expression with another expression. Two, it should be possible to replace text that already has text inserted before it: for example, the HTML rewriter inserts a bunch of tags at the beginning of the line, then tries to escape the first character on the line. This patch distinguishes the two cases by storing the deltas separately; essentially, replacements and insertions no longer interfere with each other. Another possibility would be to add some sort of flag to ReplaceText, but this seems a bit more intuitive and flexible. There are a few downsides to the current solution: one is that there isn't any way to remove/replace an insertion without touching additional surrounding text; if such an operation turns out to be useful, an additional method or flag can be added. Another is that an insertion and replacing a string of length zero are distinct operations; I'm not sure how to resolve this, or whether it will be confusing in practice. This is relatively sensitive code, so please test and tell me if anything breaks. llvm-svn: 72000
* Remove tabs.Eli Friedman2009-05-181-1/+1
| | | | llvm-svn: 71997
OpenPOWER on IntegriCloud