Sema: extract a check for `isCFError` (NFC)
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 8 Sep 2020 20:06:07 +0000 (20:06 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 8 Sep 2020 20:07:47 +0000 (20:07 +0000)
commitf4ac79a364f2de7270a3238b176e17b40b036305
tree1a66fe84ca01b875784eaaaf9c4e72e5e1102812
parent66310aafa0da47dd4664a1200afc7e22cab15b65
Sema: extract a check for `isCFError` (NFC)

Extract a simple check to check if a `RecordDecl` is a `CFError` Decl.
This is a simple refactoring to prepare for an upcoming change.  NFC.

Patch is extracted from
https://github.com/llvm/llvm-project-staging/commit/8afaf3aad2af43cfedca7a24cd817848c4e95c0c.
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaType.cpp