Permalink
Commits on Jun 1, 2012
  1. Added a test for ToolInvocation::mapVirtualFile method.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157812 91177308-0d34-0410-b5e6-96231b3b80d8
    alexfh committed Jun 1, 2012
  2. Support C++11 enum forward declarations.

    Part of rdar://11570854
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157787 91177308-0d34-0410-b5e6-96231b3b80d8
    echristo committed Jun 1, 2012
  3. [arcmt] Use CFBridgingRetain/CFBridgingRelease instead of __bridge_re…

    …tained/__bridge_transfer
    
    when migrating.
    
    rdar://11569198
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157785 91177308-0d34-0410-b5e6-96231b3b80d8
    akyrtzi committed Jun 1, 2012
  4. Anonymous union members within a struct are now properly handled as a…

    …n unevaluated field in C++11 mode. This fixes PR12866.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157784 91177308-0d34-0410-b5e6-96231b3b80d8
    AaronBallman committed Jun 1, 2012
Commits on May 31, 2012
  1. In TypoCorrectionConsumer, BestResults to CorrectionResults to lessen

    the confusion among all of the uses of Best* in relation to the set of
    possible typo correction results. Also add a method to return the set of
    typo corrections that have the single best edit distance--it returns the
    second half of the first pair in TypoEditDistanceMap (with
    getBestEditDistance already returning the first half).
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157781 91177308-0d34-0410-b5e6-96231b3b80d8
    Kaelyn Uhrain committed May 31, 2012
  2. objc: properties of NSObject attribute must

    have correct pointer type or issue error,
    instead of crashing in IRGen. // rdar:// 11569860
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157780 91177308-0d34-0410-b5e6-96231b3b80d8
    Fariborz Jahanian committed May 31, 2012
  3. [analyzer] Fix BugType memory leak in IdempotentOperationChecker.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157772 91177308-0d34-0410-b5e6-96231b3b80d8
    tcare committed May 31, 2012
  4. Updating the visualizers to include more datatypes. Patch thanks to J…

    …ay Blanchard.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157763 91177308-0d34-0410-b5e6-96231b3b80d8
    AaronBallman committed May 31, 2012
  5. [analyzer] Cleanup for r157721.

    We should lock the number of elements after the initial parsing is
    complete. Recursive AST visitors in AnalyzesConsumer and CallGarph can
    trigger lazy pch deserialization resulting in more calls to
    HandleTopLevelDecl and appending to the LocalTUDecls list. We should
    ignore those.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157762 91177308-0d34-0410-b5e6-96231b3b80d8
    AnnaZaks committed May 31, 2012
  6. Fix an object lifetime issue in clang/Tooling.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157759 91177308-0d34-0410-b5e6-96231b3b80d8
    alexfh committed May 31, 2012
  7. Allow some BugReports to opt-out of PathDiagnostic callstack pruning …

    …until we have significantly
    
    improved the pruning heuristics.  The current heuristics are pretty good, but they make diagnostics
    for uninitialized variables warnings particularly useless in some cases.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157734 91177308-0d34-0410-b5e6-96231b3b80d8
    tkremenek committed May 31, 2012
  8. Add builtin for pclmulqdq instruction.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157733 91177308-0d34-0410-b5e6-96231b3b80d8
    topperc committed May 31, 2012
Commits on May 30, 2012
  1. Only visit default arguments for template declarations when visiting …

    …the template declaration which introduced them. Patch by Yang Chen!
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157723 91177308-0d34-0410-b5e6-96231b3b80d8
    zygoloid committed May 30, 2012
  2. Change wording of 'memcpy' type mismatch warning and remove fixit.

    As per comments following r157659.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157722 91177308-0d34-0410-b5e6-96231b3b80d8
    AnnaZaks committed May 30, 2012
  3. [analyzer]Fix another occurrence of iterator invalidation (LocalTUDecls)

    Follow up in r155693, r155680.
    
    Prevents a hard to reproduce crash with the following stack trace:
    3  libsystem_c.dylib 0x00007ff55a835050 _sigtramp + 18446744029881443184
    4  clang             0x0000000106218e97 (anonymous
    namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&)
    + 519
    5  clang             0x0000000105cf3002 clang::ParseAST(clang::Sema&,
    bool, bool) + 690
    6  clang             0x00000001059a41d8
    clang::ASTFrontendAction::ExecuteAction() + 312
    7  clang             0x00000001059a3df7 clang::FrontendAction::Execute()
    + 231
    8  clang             0x00000001059b0ecc
    clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 860
    9  clang             0x000000010595e451
    clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 961
    10 clang             0x0000000105947f29 cc1_main(char const**, char
    const**, char const*, void*) + 969
    11 clang             0x0000000105958259 main + 473
    12 clang             0x0000000105947b34 start + 52
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157721 91177308-0d34-0410-b5e6-96231b3b80d8
    AnnaZaks committed May 30, 2012
  4. Add a test for '%@' suggestion for classes.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157718 91177308-0d34-0410-b5e6-96231b3b80d8
    jrose-apple committed May 30, 2012
  5. Disable -Wunique-enum for anonymous enums.

    This is a large class of false positives where anonymous enums are used to
    declare constants (see Clang's Diagnostics.h for example). A small number of
    true positives could probably be found in this bucket by still warning if the
    anonymous enum is used in a declarator (enum { ... } x;) but so far we don't
    believe this to be a source of significant benefit so I haven't bothered to
    preserve those cases.
    
    General offline review/acknowledgment by rtrieu.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157713 91177308-0d34-0410-b5e6-96231b3b80d8
    dwblaikie committed May 30, 2012
  6. TableGen: Remove extraneous '\' at EOL in generated tests.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157700 91177308-0d34-0410-b5e6-96231b3b80d8
    Jim Grosbach committed May 30, 2012
  7. objective-c: revert r157407. It broke a project

    and reported as PR12959. // rdar://11499742
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157697 91177308-0d34-0410-b5e6-96231b3b80d8
    Fariborz Jahanian committed May 30, 2012
  8. Adds a toString method to Replacement, which helps debugging.

    Adds missing header guards to Refactoring.h.
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157694 91177308-0d34-0410-b5e6-96231b3b80d8
    klimek committed May 30, 2012
  9. Fixed a memory leak in clang/Tooling.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157687 91177308-0d34-0410-b5e6-96231b3b80d8
    alexfh committed May 30, 2012
  10. supply a simple-minded testcase for r156813, to check whether the emb…

    …edded montavista gcc toolchain is recognized
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157686 91177308-0d34-0410-b5e6-96231b3b80d8
    ggreif committed May 30, 2012
  11. Clang docs update: list command-line flags that control the size of g…

    …enerated debug information. Reviewed by chandlerc@ and echristo@.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157681 91177308-0d34-0410-b5e6-96231b3b80d8
    Alexey Samsonov committed May 30, 2012
  12. SSE4A should not imply LZCNT and POPCNT. FMA4 should imply SSE4A. Add…

    … missing break at the end of btver1 feature list.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157680 91177308-0d34-0410-b5e6-96231b3b80d8
    topperc committed May 30, 2012
  13. Update FIXME. ABM is already covered by LZCNT and POPCNT.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157676 91177308-0d34-0410-b5e6-96231b3b80d8
    topperc committed May 30, 2012
  14. Mark extrqi and insertqi immediate arguments as being ICE.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157675 91177308-0d34-0410-b5e6-96231b3b80d8
    topperc committed May 30, 2012
  15. Test commit - Fix typo in comment.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157674 91177308-0d34-0410-b5e6-96231b3b80d8
    djasper committed May 30, 2012
  16. Remove some extra braces.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157667 91177308-0d34-0410-b5e6-96231b3b80d8
    echristo committed May 30, 2012
  17. Add new -Wunique-enum which will warn on enums which all elements hav…

    …e the
    
    same value and were initialized with literals.  Clang will warn on code like
    this:
    
    enum A {
      FIRST = 1,
      SECOND = 1
    };
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157666 91177308-0d34-0410-b5e6-96231b3b80d8
    Richard Trieu committed May 30, 2012
  18. Add fixits for memory access warnings.

    Also, do not display the builtin name and macro expansion when the
    function is a builtin.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157659 91177308-0d34-0410-b5e6-96231b3b80d8
    AnnaZaks committed May 30, 2012
Commits on May 29, 2012
  1. objc: position of 'fixit' was off by one.

    This patch fixes it. // rdar://11488351
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157646 91177308-0d34-0410-b5e6-96231b3b80d8
    Fariborz Jahanian committed May 29, 2012
  2. fixes radar no. in this test.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157642 91177308-0d34-0410-b5e6-96231b3b80d8
    Fariborz Jahanian committed May 29, 2012
  3. objective-c: fix a sema and IRGen crash when property

    getter result type is safe but does not match with property 
    type resulting in spurious warning followed by crash in
    IRGen. // rdar://11515196
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157641 91177308-0d34-0410-b5e6-96231b3b80d8
    Fariborz Jahanian committed May 29, 2012
  4. Install ammintrin.h in the cmake build.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157639 91177308-0d34-0410-b5e6-96231b3b80d8
    d0k committed May 29, 2012