Skip to content
Snippets Groups Projects
  1. Sep 16, 2015
  2. Sep 11, 2015
    • Aaron Ballman's avatar
      Fixed HasDeclarationMatcher to properly convert all types into decls where... · 9912604f
      Aaron Ballman authored
      Fixed HasDeclarationMatcher to properly convert all types into decls where possible. Added objcObjectPointerType(), objcInterfaceDecl(), templateTypeParmType(), injectedClassNameType(), and unresolvedUsingTypenameDecl(). Updated documentation for pointerType() to call out that it does not match ObjCObjectPointerType types. Changed pointsTo() to handle ObjCObjectPointerType as well as PointerType.
      
      While this may seem like a lot of unrelated changes, they all relate back to fixing HasDeclarationMatcher.
      
      This now allows us to write a matcher like:
      
      varDecl(hasType(namedDecl(hasName("Foo"))))
      
      that matches code using typedefs, objc interfaces, template type parameters, injected class names, or unresolved using typenames.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247404 91177308-0d34-0410-b5e6-96231b3b80d8
      9912604f
  3. Sep 08, 2015
  4. Sep 04, 2015
  5. Aug 28, 2015
  6. Aug 27, 2015
  7. Aug 26, 2015
  8. Aug 25, 2015
  9. Aug 24, 2015
  10. Aug 21, 2015
    • Daniel Jasper's avatar
      clang-format: Be more conservative about specially indenting blocks in C++. · 05ed8754
      Daniel Jasper authored
      This is a bit of a step back of what we did in r222531, as there are
      some corner cases in C++, where this kind of formatting is really bad.
      
      Example:
      Before:
        virtual aaaaaaaaaaaaaaaa(std::function<bool()> IsKindWeWant = [&]() {
          return true;
        }, aaaaa aaaaaaaaa);
      
      After:
        virtual aaaaaaaaaaaaaaaa(std::function<bool()> IsKindWeWant =
                                     [&]() { return true; },
                                 aaaaa aaaaaaaaa);
      
      The block formatting logic in JavaScript will probably go some other changes,
      too, and we'll potentially be able to make the rules more consistent again. For
      now, this seems to be the best approach for C++.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245694 91177308-0d34-0410-b5e6-96231b3b80d8
      05ed8754
  11. Aug 18, 2015
  12. Aug 14, 2015
  13. Aug 13, 2015
  14. Aug 11, 2015
  15. Aug 10, 2015
  16. Aug 05, 2015
  17. Jul 28, 2015
  18. Jul 24, 2015
  19. Jul 22, 2015
  20. Jul 21, 2015
  21. Jul 18, 2015
  22. Jul 17, 2015
  23. Jul 16, 2015
  24. Jul 15, 2015
  25. Jul 14, 2015
Loading