diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-02-21 01:47:08 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-02-21 01:47:08 +0000 |
commit | 65124fe81f61eed98b845c87e3a78a780f3deb11 (patch) | |
tree | 2b8502d4a4c19bd089d16c13767674285e237afc /lib/AST | |
parent | 11f0cae4bf4f62dcc706d33c1f795d460cd64816 (diff) |
Rename TypeLoc's isType to isKind
Matches changes made to SVal's similar functions based on Jordan Rose's review
feedback to r175594.
Also change isKind to take a reference rather than a non-null pointer, while I'm
at it. (& make TypeLoc::isKind private)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST')
-rw-r--r-- | lib/AST/TypeLoc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/AST/TypeLoc.cpp b/lib/AST/TypeLoc.cpp index fe66714e4d..03d40309f5 100644 --- a/lib/AST/TypeLoc.cpp +++ b/lib/AST/TypeLoc.cpp @@ -199,9 +199,9 @@ namespace { /// because it's a convenient base class. Ideally we would not accept /// those here, but ideally we would have better implementations for /// them. -bool TypeSpecTypeLoc::isType(const TypeLoc *TL) { - if (TL->getType().hasLocalQualifiers()) return false; - return TSTChecker().Visit(*TL); +bool TypeSpecTypeLoc::isKind(const TypeLoc &TL) { + if (TL.getType().hasLocalQualifiers()) return false; + return TSTChecker().Visit(TL); } // Reimplemented to account for GNU/C++ extension |