Adding an STL-like type trait that is duplicated in multiple places in Clang.
authorAaron Ballman <aaron@aaronballman.com>
Sun, 9 Dec 2018 19:53:15 +0000 (19:53 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sun, 9 Dec 2018 19:53:15 +0000 (19:53 +0000)
commit39af9ba544386808164a16d6a9172ee78967aecf
treef2cebc879c73177fb003437a8a0b28beff12e13e
parent7ca55323ce582b19767fbf3a207372c43f728ffc
Adding an STL-like type trait that is duplicated in multiple places in Clang.

This trait is used by several AST visitor classes to control whether the AST is visiting const nodes or non-const nodes. These uses cannot be easily replaced with the STL traits directly due to use of an unspecialized templated when a type is expected (due to the template template parameter involved).

llvm-svn: 348729
llvm/include/llvm/ADT/STLExtras.h