summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Tweak the C++11 status prose a bit. We still need better user guidance on ↵Douglas Gregor2011-10-141-2/+1
| | | | | | the standard library issue git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142019 91177308-0d34-0410-b5e6-96231b3b80d8
* Missed tests for half FP supportAnton Korobeynikov2011-10-144-0/+335
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142017 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide half floating point support as a storage only type.Anton Korobeynikov2011-10-1436-43/+224
| | | | | | | Lack of half FP was a regression compared to llvm-gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142016 91177308-0d34-0410-b5e6-96231b3b80d8
* Switch the C++11 status table from a developer-centric list to aDouglas Gregor2011-10-141-587/+318
| | | | | | | | user-centric list, with Clang version numbers, following GCC's lead (and user requests). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142015 91177308-0d34-0410-b5e6-96231b3b80d8
* Attempt to fix Windows buildbot, round 2.Eli Friedman2011-10-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142014 91177308-0d34-0410-b5e6-96231b3b80d8
* Add template instantiation support for AtomicExpr.Eli Friedman2011-10-145-80/+75
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142012 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach the ASTImporter not to import redundant fields.Douglas Gregor2011-10-142-50/+105
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142009 91177308-0d34-0410-b5e6-96231b3b80d8
* Attempt to fix buildbot failure on Windows.Eli Friedman2011-10-141-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142008 91177308-0d34-0410-b5e6-96231b3b80d8
* vfork comes from unistd.hJoerg Sonnenberger2011-10-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142007 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow calling ASTUnit::LoadFromCompilerInvocationAction with a previously ↵Argyrios Kyrtzidis2011-10-142-14/+23
| | | | | | created ASTUnit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142004 91177308-0d34-0410-b5e6-96231b3b80d8
* Misc fixes for atomics. Biggest fix is doing alignment correctly for ↵Eli Friedman2011-10-148-16/+53
| | | | | | _Atomic types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142002 91177308-0d34-0410-b5e6-96231b3b80d8
* -Wc++98-compat: warn on C++11 attributes and alignas.Richard Smith2011-10-143-1/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141999 91177308-0d34-0410-b5e6-96231b3b80d8
* Test for r141985.Richard Smith2011-10-141-0/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141998 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't try to diagnose anything when we're passing incomplete typesDouglas Gregor2011-10-143-2/+17
| | | | | | | | | through varargs. This only happens when we're in an unevaluated context, where we don't want to trigger an error anyway. Fixes PR11131 / <rdar://problem/10288375>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141986 91177308-0d34-0410-b5e6-96231b3b80d8
* Reinstate r141898 (reverted in r141921), without the ↵Richard Smith2011-10-144-6/+18
| | | | | | | | | -Wc++98-compat-variadic-templates flag. Consensus is that -Wc++98-compat is a useful addition to clang, but per-C++11-feature warnings may not be. Original patch by Jeffrey Yasskin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141985 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor static analyzer to use simpler interface to constant expression ↵Richard Smith2011-10-142-42/+17
| | | | | | evaluation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141983 91177308-0d34-0410-b5e6-96231b3b80d8
* [temp.explicit]p1: constexpr cannot be specified in explicit instantiations.Richard Smith2011-10-143-5/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141982 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the CXX_INCLUDE_ROOT case that was out of date with ScanLibDirForGCCTriple.Rafael Espindola2011-10-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141980 91177308-0d34-0410-b5e6-96231b3b80d8
* Harden test for windows paths.Benjamin Kramer2011-10-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141973 91177308-0d34-0410-b5e6-96231b3b80d8
* Change operator<< for raw_ostream and NamedDecl to take a reference instead ↵Benjamin Kramer2011-10-1430-118/+115
| | | | | | | | of a pointer. Passing a pointer was a bad idea as it collides with the overload for void*. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141971 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify code to avoid a useless string copy.Benjamin Kramer2011-10-141-6/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141970 91177308-0d34-0410-b5e6-96231b3b80d8
* Upgrade to PathV2.Benjamin Kramer2011-10-141-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141969 91177308-0d34-0410-b5e6-96231b3b80d8
* Add parens to pacify GCC.Benjamin Kramer2011-10-141-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141968 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix misplaced comment.Fariborz Jahanian2011-10-141-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141967 91177308-0d34-0410-b5e6-96231b3b80d8
* Make value kind based on the return type of the getter, notFariborz Jahanian2011-10-141-4/+4
| | | | | | | | property type, for when getter may be a reference type. // rdar://10188258 revised. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141966 91177308-0d34-0410-b5e6-96231b3b80d8
* [PCH] Serialize info about redeclared objc methods.Argyrios Kyrtzidis2011-10-145-5/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141964 91177308-0d34-0410-b5e6-96231b3b80d8
* Add flags for the remaining shift related warningsJoerg Sonnenberger2011-10-142-5/+5
| | | | | | | (-Wshift-count-negative, -Wshift-count-overflow). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141962 91177308-0d34-0410-b5e6-96231b3b80d8
* objc-arc: Improve arc diagnostic when method is notFariborz Jahanian2011-10-142-2/+18
| | | | | | | found in receiver's class. // rdar://9970739 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141961 91177308-0d34-0410-b5e6-96231b3b80d8
* Add __nodebug__ attribute to functions in arm_neon.hBob Wilson2011-10-141-1/+1
| | | | | | This matches what we do for Intel vector intrinsics. <rdar://problem/10280207> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141958 91177308-0d34-0410-b5e6-96231b3b80d8
* Under ARC, merge the bit corresponding to the ns_returns_retainedDouglas Gregor2011-10-143-0/+23
| | | | | | | | attribute from the first declaration to later declarations. Fixes <rdar://problem/10142572>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141957 91177308-0d34-0410-b5e6-96231b3b80d8
* Only warn in -Wliteral-conversion if the conversion loses informationMatt Beaumont-Gay2011-10-144-35/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141955 91177308-0d34-0410-b5e6-96231b3b80d8
* When declaring an out-of-line template, attempt to rebuild any typesDouglas Gregor2011-10-144-1/+81
| | | | | | | | within the template parameter list that may have changed now that we know the current instantiation. Fixes <rdar://problem/10194295>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141954 91177308-0d34-0410-b5e6-96231b3b80d8
* Added clang_getCompletionAnnotation and clang_getCompletionNumAnnotations toErik Verbruggen2011-10-148-10/+136
| | | | | | | retrieve annotations from completion string. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141953 91177308-0d34-0410-b5e6-96231b3b80d8
* Really protect from infinite loop when there are objc method redeclarations.Argyrios Kyrtzidis2011-10-144-3/+27
| | | | | | Serialization part will come later. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141950 91177308-0d34-0410-b5e6-96231b3b80d8
* Updating the Clang website to refer to C++'11 instead of C++'0xDavid Blaikie2011-10-144-15/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141949 91177308-0d34-0410-b5e6-96231b3b80d8
* Keep track of objc method redeclarations in the same interface.Argyrios Kyrtzidis2011-10-144-1/+41
| | | | | | Avoid possible infinite loop when iterating over an ObjCMethod's redeclarations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141946 91177308-0d34-0410-b5e6-96231b3b80d8
* Use Triple.isOSDarwin() instead of comparing against Triple::Darwin.Bob Wilson2011-10-145-18/+20
| | | | | | | | | There are now separate Triple::MacOSX and Triple::IOS values for the OS so comparing against Triple::Darwin will fail to match those. Note that I changed the expected output for the Driver/rewrite-objc.m test, which had previously not been passing Darwin-specific options with the macosx triple. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141944 91177308-0d34-0410-b5e6-96231b3b80d8
* Update open source static analyzer build.Ted Kremenek2011-10-142-1/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141943 91177308-0d34-0410-b5e6-96231b3b80d8
* Move doxygen comments to pair with the actual values.Ted Kremenek2011-10-141-13/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141942 91177308-0d34-0410-b5e6-96231b3b80d8
* PR11124: Don't overwrite memory outside of a base class when performing ↵Eli Friedman2011-10-144-2/+85
| | | | | | zero-initialization before running its constructor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141933 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix grammaroDouglas Gregor2011-10-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141927 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a preprocessor callback that is invoked every time the 'defined'Douglas Gregor2011-10-142-0/+13
| | | | | | | operator is seen, from Jason Haslam! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141926 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for -std=gnu90 and -std=c++03, for compatibility with modern gcc.Richard Smith2011-10-142-1/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141922 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert the -Wc++98-compat flag because dgregor doesn't like it.Jeffrey Yasskin2011-10-145-34/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141921 91177308-0d34-0410-b5e6-96231b3b80d8
* objc-arc: 'Class' property is implicitly __unsafe_unretained.Fariborz Jahanian2011-10-132-1/+16
| | | | | | | // rdar://10239594 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141915 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename -Wc++0x-compat, -Wc++0x-extensions and -Wc++0x-narrowing from c++0x toRichard Smith2011-10-136-33/+38
| | | | | | | | c++11. The old names are kept for backwards-compatibility. Patch by Ahmed Charles! Names for backwards-compatible DiagGroups removed by me. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141913 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a test case where FileCheck is used to test code corrected by -fixit.Richard Trieu2011-10-131-1/+1
| | | | | | | | | If the code file is not run through the preproccessor to remove comments, then FileCheck will match the strings within the CHECK commands rendering the test useless. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141911 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert newly-added test from -std=c++0x to -std=c++11.Richard Smith2011-10-131-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141904 91177308-0d34-0410-b5e6-96231b3b80d8
* Extend -Wno-sizeof-array-argument to strncpy and friends.Nico Weber2011-10-133-5/+74
| | | | | | | | This finds 2 bugs in chromium and 1 in hunspell, with 0 false positives. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141902 91177308-0d34-0410-b5e6-96231b3b80d8
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-13329-371/+371
| | | | | | | -std=c++0x. Patch by Ahmed Charles! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141900 91177308-0d34-0410-b5e6-96231b3b80d8