Skip to content
Snippets Groups Projects
  1. Aug 02, 2017
    • Vedant Kumar's avatar
      [ubsan] Have -fsanitize=vptr emit a null check if -fsanitize=null isn't available · 63a4e484
      Vedant Kumar authored
      In r309007, I made -fsanitize=null a hard prerequisite for -fsanitize=vptr. I
      did not see the need for the two checks to have separate null checking logic
      for the same pointer. I expected the two checks to either always be enabled
      together, or to be mutually compatible.
      
      In the mailing list discussion re: r309007 it became clear that that isn't the
      case. If a codebase is -fsanitize=vptr clean but not -fsanitize=null clean,
      it's useful to have -fsanitize=vptr emit its own null check. That's what this
      patch does: with it, -fsanitize=vptr can be used without -fsanitize=null.
      
      Differential Revision: https://reviews.llvm.org/D36112
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309846 91177308-0d34-0410-b5e6-96231b3b80d8
      63a4e484
    • Manuel Klimek's avatar
      Unify and simplify the behavior of the hasDeclaration matcher. · 81937d82
      Manuel Klimek authored
      Originally, we weren't able to match on Type nodes themselves (only QualType),
      so the hasDeclaration matcher was initially written to give what we thought are
      reasonable results for QualType matches.
      
      When we chagned the matchers to allow matching on Type nodes, it turned out
      that the hasDeclaration matcher was by chance written templated enough to now
      allow hasDeclaration to also match on (some) Type nodes.
      
      This patch change the hasDeclaration matcher to:
      a) work the same on Type and QualType nodes,
      b) be completely explicit about what nodes we can match instead of just allowing
         anything with a getDecl() to match,
      c) explicitly control desugaring only one level in very specific instances.
      d) adds hasSpecializedTemplate and tagType matchers to allow migrating
        existing use cases that now need more explicit matchers
      
      Note: This patch breaks clang-tools-extra. The corresponding patch there
      is approved and will land in a subsequent patch.
      
      Differential Revision: https://reviews.llvm.org/D27104
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309809 91177308-0d34-0410-b5e6-96231b3b80d8
      81937d82
  2. Jul 31, 2017
  3. Jul 29, 2017
  4. Jul 26, 2017
  5. Jul 25, 2017
  6. Jul 22, 2017
  7. Jul 20, 2017
  8. Jul 19, 2017
  9. Jul 14, 2017
  10. Jul 11, 2017
  11. Jul 07, 2017
  12. Jul 05, 2017
  13. Jul 03, 2017
  14. Jul 01, 2017
  15. Jun 26, 2017
  16. Jun 23, 2017
  17. Jun 19, 2017
  18. Jun 16, 2017
  19. Jun 15, 2017
  20. Jun 13, 2017
  21. Jun 10, 2017
  22. Jun 09, 2017
Loading