summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Also remove the 'rc' suffix from a release candidate.upstream/release_28Bill Wendling2010-09-091-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_28@113532 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert part of previous commit. The change for this isn't in this branch.Bill Wendling2010-09-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_28@113153 91177308-0d34-0410-b5e6-96231b3b80d8
* Approved by Chris:Bill Wendling2010-09-0610-22/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ svn merge -c 113124 https://llvm.org/svn/llvm-project/cfe/trunk --- Merging r113124 into '.': A test/SemaCXX/unary-real-imag.cpp U lib/Sema/SemaExpr.cpp Log: PR8023: Don't crash on invalid uses of __real__ on class types in C++. $ svn merge -c 113125 https://llvm.org/svn/llvm-project/cfe/trunk --- Merging r113125 into '.': U lib/Lex/Pragma.cpp Log: fix 7320: we can't delete a trailing space if it doesn't exist. $ svn merge -c 113127 https://llvm.org/svn/llvm-project/cfe/trunk --- Merging r113127 into '.': U test/Sema/warn-write-strings.c U lib/Headers/stddef.h Log: fix PR7192 by defining wchar_t in a more conventional way. The type of L"x" can change based on command line arguments. $ svn merge -c 113128 https://llvm.org/svn/llvm-project/cfe/trunk --- Merging r113128 into '.': A test/CodeGen/fold-const-declref.c U lib/AST/ExprConstant.cpp Log: PR7242: Make sure to use a different context for evaluating constant initializers, so the result of the evaluation doesn't leak through inconsistently. Also, don't evaluate references to variables with initializers with side-effects. $ svn merge -c 113130 https://llvm.org/svn/llvm-project/cfe/trunk --- Merging r113130 into '.': U test/CodeGen/designated-initializers.c U lib/CodeGen/CGExprAgg.cpp Log: move the hackaround for PR6537 to catch unions as well, fixing the ICE in PR7151 $ svn merge -c 113131 https://llvm.org/svn/llvm-project/cfe/trunk --- Merging r113131 into '.': U test/SemaCXX/i-c-e-cxx.cpp Log: Update test for r113128. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_28@113151 91177308-0d34-0410-b5e6-96231b3b80d8
* Creating release_28 branch from cfe trunk.Bill Wendling2010-09-040-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_28@113053 91177308-0d34-0410-b5e6-96231b3b80d8
* Petty optimization.John McCall2010-09-041-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113049 91177308-0d34-0410-b5e6-96231b3b80d8
* fix a crash in RecursiveASTVisitor's child classes (PR8403); reviewed by ↵Zhanyong Wan2010-09-031-5/+8
| | | | | | chandlerc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113038 91177308-0d34-0410-b5e6-96231b3b80d8
* Synchronize code-completion cursor kinds with indexing cursorDouglas Gregor2010-09-039-184/+126
| | | | | | | kinds. How shameful that this code was duplicated! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113033 91177308-0d34-0410-b5e6-96231b3b80d8
* Truncate block variable of bool type to i1 when itsFariborz Jahanian2010-09-034-20/+9
| | | | | | | | value is used. This matches with non-block variable use of bool type. (Fixes radar 8390062). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113027 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR7402 when it strikes via template instantiation.Chandler Carruth2010-09-032-0/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113019 91177308-0d34-0410-b5e6-96231b3b80d8
* It's OK for classes to have flexible array elements (but not unions).Anders Carlsson2010-09-032-1/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113018 91177308-0d34-0410-b5e6-96231b3b80d8
* Cope with llvm's reference to bool type of 'i1' vs. clang'sFariborz Jahanian2010-09-032-0/+37
| | | | | | | | type of 'i8' for the same for __block variables of type bool. refixes radar 8382559. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113015 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up some whitespace and comments from this test that were remnants ofChandler Carruth2010-09-031-3/+0
| | | | | | | a previous iteration of the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113013 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow anonymous and local types. The support was already in place for these,Chandler Carruth2010-09-036-26/+91
| | | | | | | but this makes them work even as an extension in C++98. This resolves PR8077. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113011 91177308-0d34-0410-b5e6-96231b3b80d8
* A constant initializer never matches the type of the variable it'sJohn McCall2010-09-032-2/+7
| | | | | | | | | initializing; it at best matches the element type of the variable it's initializing. Fixes PR8073. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112992 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement libclang visitation for UnresolvedMemberExpr. This is theDouglas Gregor2010-09-032-0/+34
| | | | | | | | | | last of the C++-specific expressions where we have decent source information in the AST already. In particular, various object-construction expressions (CXXNewExpr, CXXTemporaryObjectExpr) still have poor source-location information that needs to be addressed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112981 91177308-0d34-0410-b5e6-96231b3b80d8
* update svn:ignoreNuno Lopes2010-09-030-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112980 91177308-0d34-0410-b5e6-96231b3b80d8
* Use std::string instead of llvm::StringRef to avoid dangling ref.Fariborz Jahanian2010-09-031-1/+1
| | | | | | | Per Chris's comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112979 91177308-0d34-0410-b5e6-96231b3b80d8
* libclang visitation for CXXDependentScopeMemberExprDouglas Gregor2010-09-032-0/+36
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112978 91177308-0d34-0410-b5e6-96231b3b80d8
* Use getSpelling to get original text of theFariborz Jahanian2010-09-033-67/+24
| | | | | | | c++ operator token. (radar 8328250). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112977 91177308-0d34-0410-b5e6-96231b3b80d8
* libclang visitation for DependentScopeDeclRefExprDouglas Gregor2010-09-032-0/+31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112975 91177308-0d34-0410-b5e6-96231b3b80d8
* Add missing #includeDouglas Gregor2010-09-031-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112974 91177308-0d34-0410-b5e6-96231b3b80d8
* Put the info on testing from the command line into its own sectionDawn Perchik2010-09-031-0/+5
| | | | | | | titled "Testing on the Command Line". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112972 91177308-0d34-0410-b5e6-96231b3b80d8
* fix a hard coded version number, PR8031. Patch by 'nobled'.Chris Lattner2010-09-031-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112970 91177308-0d34-0410-b5e6-96231b3b80d8
* fix lookup of bits/c++config.h on mingw, patch by Ismail Donmez!Chris Lattner2010-09-031-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112969 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify code-completion result sorting a bitDouglas Gregor2010-09-031-8/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112968 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove end-of-line translation properties from test, in the hopes of fixing ↵Douglas Gregor2010-09-030-0/+0
| | | | | | this test on Windows git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112966 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid unnecessary redirect, so that stderr shows up in output.Daniel Dunbar2010-09-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112965 91177308-0d34-0410-b5e6-96231b3b80d8
* First test commit by Francois Pichet. _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES ↵Francois Pichet2010-09-031-3/+0
| | | | | | is not a predefined macro, remove it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112953 91177308-0d34-0410-b5e6-96231b3b80d8
* Update the internals manual for the removal of Action, as well as otherJohn McCall2010-09-031-23/+34
| | | | | | | | changes that are much older. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112951 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a quick-and-dirty hack to give a better diagnostic for [class.protected]John McCall2010-09-034-8/+65
| | | | | | | | | | | | restrictions. The note's not really on the right place given its wording, but putting a second note on the call site (or muddying the wording) doesn't appeal. There are corner cases where this can be wrong, but I'm not concerned. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112950 91177308-0d34-0410-b5e6-96231b3b80d8
* "I see dead code". IdempotentOperationChecker::isTruncationExtensionAssignmentChris Lattner2010-09-036-18/+11
| | | | | | | | | | should probably be removed if it has no purpose, but I just #if'd it out in case it's usefulIdempotentOperationChecker::isTruncationExtensionAssignment should probably be removed if it has no purpose, but I just #if'd it out in case it's useful git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112949 91177308-0d34-0410-b5e6-96231b3b80d8
* Devirtualize Sema, kill off DeleteExpr and DeleteStmt, and reformat.John McCall2010-09-036-890/+812
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112945 91177308-0d34-0410-b5e6-96231b3b80d8
* IRgen: Fix silly thinko in r112021, which was generating code for the same exprDaniel Dunbar2010-09-032-1/+5
| | | | | | | twice. This showed up as an assert on the odd test case because we generated the decl map entry twice. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112943 91177308-0d34-0410-b5e6-96231b3b80d8
* Add symantic support for the Pascal calling convention viaDawn Perchik2010-09-0316-13/+107
| | | | | | | | "__attribute((pascal))" or "__pascal" (and "_pascal" under -fborland-extensions). Support still needs to be added to llvm. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112939 91177308-0d34-0410-b5e6-96231b3b80d8
* Translate NEON vabdl, vaba, and vabal builtins to be implemented using theBob Wilson2010-09-031-9/+26
| | | | | | | vabd intrinsic combined with zext and add operations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112937 91177308-0d34-0410-b5e6-96231b3b80d8
* Re-commit r112916 with an additional fix for the self-host failures.John McCall2010-09-033-18/+69
| | | | | | | | I've audited the remaining getFunctionInfo call sites. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112936 91177308-0d34-0410-b5e6-96231b3b80d8
* Patch to allow alternative representation of c++Fariborz Jahanian2010-09-034-3/+92
| | | | | | | | | operators (and, or, etc.) to be used as selectors to match g++'s behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112935 91177308-0d34-0410-b5e6-96231b3b80d8
* Static local variables don't result in global constructors being emitted.Anders Carlsson2010-09-033-3/+25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112933 91177308-0d34-0410-b5e6-96231b3b80d8
* Support pointer arithmetic in SimpleSValuator involving direct constants.Ted Kremenek2010-09-031-1/+36
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112932 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove bogus assertions.Ted Kremenek2010-09-031-10/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112931 91177308-0d34-0410-b5e6-96231b3b80d8
* Add optional record of "location" SVals in the environment. When we ↵Ted Kremenek2010-09-034-6/+96
| | | | | | analyzing loads/stores, we lose the location SVal, which makes it difficult to recover in some cases (e.g., for post diagnostics). This is prep for pending changes to GRExprEngine. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112930 91177308-0d34-0410-b5e6-96231b3b80d8
* Add GRState::getSimplifiedSVal(), which provides an API hook for doing ↵Ted Kremenek2010-09-032-2/+45
| | | | | | | | symbol -> constant folding. This isn't used yet, but is prep for some pending optimizations in GRExprEngine. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112929 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix enum: CallEnter/CallExit are StmtPointsTed Kremenek2010-09-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112928 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove now unused function.Anders Carlsson2010-09-031-8/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112927 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a typo.Daniel Dunbar2010-09-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112926 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r112916, it's breaking selfhost pretty badly.John McCall2010-09-033-44/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112925 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "Another i1 vs. i8 type mismatch issue. This time", it breaks some ↵Daniel Dunbar2010-09-032-11/+1
| | | | | | projects. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112922 91177308-0d34-0410-b5e6-96231b3b80d8
* Get rid of the "functions declared 'noreturn' should have a 'void' result ↵Anders Carlsson2010-09-0311-19/+18
| | | | | | | | | | | type" warning. The rationale behind this is that it is normal for callback functions to have a non-void return type and it should still be possible to mark them noreturn. (JavaScriptCore is a good example of this). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112918 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Fix a dependency on the temporary value names.Daniel Dunbar2010-09-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112917 91177308-0d34-0410-b5e6-96231b3b80d8
* It's not safe to use the generic CXXMethodDecl overload of CGT::getFunctionInfoJohn McCall2010-09-033-17/+44
| | | | | | | | | to set up a destructor call, because ABIs can tweak these conventions. Fixes rdar://problem/8386802. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112916 91177308-0d34-0410-b5e6-96231b3b80d8